[python-jsonrpclib] Added missing build dependency (python-setuptools).
Ihar Hrachyshka
ihrachyshka at fedoraproject.org
Fri Dec 5 11:43:43 UTC 2014
commit dbcad87152f1aa991b6c9d5cc0d3b20cb18cb28c
Author: Ihar Hrachyshka <ihrachys at redhat.com>
Date: Fri Dec 5 12:43:29 2014 +0100
Added missing build dependency (python-setuptools).
python-jsonrpclib.spec | 21 ++++++++++++++++-----
1 files changed, 16 insertions(+), 5 deletions(-)
---
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 <ihrachys at redhat.com> - 0.1.3-2
+- Added missing python-setuptools build dependency.
+- Added python macros for el6.
+- Other stylistic changes.
+
* Thu Aug 7 2014 Ihar Hrachyshka <ihrachys at redhat.com> - 0.1.3-1
- Initial package for Fedora
More information about the scm-commits
mailing list