diff --git a/python-jsonrpclib.spec b/python-jsonrpclib.spec index 7bc18cc..2bb2ead 100644 --- a/python-jsonrpclib.spec +++ b/python-jsonrpclib.spec @@ -1,6 +1,11 @@ +%if 0%{?rhel} && 0%{?rhel} <= 6 +%{!?__python2: %global __python2 /usr/bin/python2} +%{!?python2_sitelib: %global python2_sitelib %(%{__python2} -c "from %distutils.sysconfig import get_python_lib; print(get_python_lib())")} +%endif + %global srcname jsonrpclib -Name: python-jsonrpclib +Name: python-%{srcname} Version: 0.1.3 Release: 1%{?dist} Summary: JSON-RPC v2.0 client library for Python @@ -11,6 +16,7 @@ Source0: https://pypi.python.org/packages/source/j/%{srcname}/%{srcname}- BuildArch: noarch BuildRequires: python2-devel +BuildRequires: python-setuptools %description This project is an implementation of the JSON-RPC v2.0 specification @@ -22,20 +28,25 @@ This project is an implementation of the JSON-RPC v2.0 specification %build -%{__python} setup.py build +%{__python2} setup.py build %install -rm -rf $RPM_BUILD_ROOT -%{__python} setup.py install --skip-build --root $RPM_BUILD_ROOT +%{__python2} setup.py install --skip-build --root $RPM_BUILD_ROOT %files %doc LICENSE.txt %doc README.txt -%{python_sitelib}/* +%{python2_sitelib}/%{srcname} +%{python2_sitelib}/%{srcname}-%{version}-py%{python2_version}.egg-info %changelog +* Fri Dec 4 2014 Ihar Hrachyshka - 0.1.3-2 +- Added missing python-setuptools build dependency. +- Added python macros for el6. +- Other stylistic changes. + * Thu Aug 7 2014 Ihar Hrachyshka - 0.1.3-1 - Initial package for Fedora