Skip to content
This repository has been archived by the owner on Dec 7, 2022. It is now read-only.

Commit

Permalink
Merge pull request #38 from pcreech/el7-pscl-pyanyjson
Browse files Browse the repository at this point in the history
Add python-anyjson to pulp-scl
  • Loading branch information
pcreech committed Nov 15, 2016
2 parents 8985282 + 31e582f commit 8678424
Showing 1 changed file with 47 additions and 0 deletions.
47 changes: 47 additions & 0 deletions rpms/pulp-scl-python-anyjson/pulp-scl-python-anyjson.spec
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


0 comments on commit 8678424

Please sign in to comment.