Use versioned python macros
This commit is contained in:
parent
17359c0696
commit
9c8259ba96
@ -1,8 +1,3 @@
|
|||||||
%if !(0%{?fedora} > 12 || 0%{?rhel} > 5)
|
|
||||||
%{!?python_sitelib: %global python_sitelib %(%{__python} -c "from distutils.sysconfig import get_python_lib; print get_python_lib()")}
|
|
||||||
%{!?python_sitearch: %global python_sitearch %(%{__python} -c "from distutils.sysconfig import get_python_lib; print get_python_lib(1)")}
|
|
||||||
%endif
|
|
||||||
|
|
||||||
Name: python-cpio
|
Name: python-cpio
|
||||||
Version: 0.1
|
Version: 0.1
|
||||||
Release: 29%{?dist}
|
Release: 29%{?dist}
|
||||||
@ -29,10 +24,9 @@ Summary: %summary
|
|||||||
%description -n python2-cpio %_description
|
%description -n python2-cpio %_description
|
||||||
|
|
||||||
%package -n python3-cpio
|
%package -n python3-cpio
|
||||||
Summary: A Python module for accessing cpio archives
|
Summary: %summary
|
||||||
|
|
||||||
%description -n python3-cpio
|
%description -n python3-cpio %_description
|
||||||
This is a Python module for accessing cpio archives.
|
|
||||||
|
|
||||||
%prep
|
%prep
|
||||||
%setup -q
|
%setup -q
|
||||||
@ -49,8 +43,8 @@ This is a Python module for accessing cpio archives.
|
|||||||
%files -n python2-cpio
|
%files -n python2-cpio
|
||||||
%license COPYING.lib
|
%license COPYING.lib
|
||||||
%doc AUTHORS ChangeLog README TODO
|
%doc AUTHORS ChangeLog README TODO
|
||||||
%{python_sitelib}/cpioarchive.py*
|
%{python2_sitelib}/cpioarchive.py*
|
||||||
%{python_sitelib}/*.egg-info
|
%{python2_sitelib}/*.egg-info
|
||||||
|
|
||||||
%files -n python3-cpio
|
%files -n python3-cpio
|
||||||
%license COPYING.lib
|
%license COPYING.lib
|
||||||
|
Loading…
Reference in New Issue
Block a user