This repository has been archived by the owner on Dec 7, 2022. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 13
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #38 from pcreech/el7-pscl-pyanyjson
Add python-anyjson to pulp-scl
- Loading branch information
Showing
1 changed file
with
47 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,47 @@ | ||
%{?scl:%scl_package python-anyjson} | ||
%{!?scl:%global pkg_name %{name}} | ||
|
||
%global srcname anyjson | ||
|
||
Name: %{?scl_prefix}python-anyjson | ||
Version: 0.3.3 | ||
Release: 1%{?dist} | ||
Summary: Wraps the best available JSON implementation available | ||
|
||
License: BSD | ||
URL: http://pypi.python.org/pypi/anyjson | ||
Source0: http://pypi.python.org/packages/source/a/%{srcname}/%{srcname}-%{version}.tar.gz | ||
|
||
BuildRequires: %{?scl_prefix_python}python-devel | ||
BuildRequires: %{?scl_prefix_python}python-setuptools | ||
%{?scl:BuildRequires: %{scl}-build %{scl}-runtime} | ||
|
||
%{?scl:Requires: %{scl}-runtime} | ||
|
||
%description | ||
Anyjson loads whichever is the fastest JSON module installed and | ||
provides a uniform API regardless of which JSON implementation is used. | ||
|
||
%prep | ||
%setup -q -n %{srcname}-%{version} | ||
|
||
%build | ||
%{?scl:scl enable %{scl} "} | ||
%{__python} setup.py build | ||
%{?scl:"} | ||
|
||
%install | ||
%{?scl:scl enable %{scl} "} | ||
%{__python} setup.py install --no-compile --root %{buildroot} --install-purelib %{python_sitelib} | ||
%{?scl:"} | ||
|
||
%files | ||
%doc CHANGELOG README LICENSE | ||
%{python_sitelib}/%{srcname} | ||
%{python_sitelib}/%{srcname}*.egg-info | ||
|
||
%changelog | ||
* Wed Nov 09 2016 Patrick Creech <pcreech@redhat.com> - 0.3.3-1 | ||
- Initial build | ||
|
||
|