[packages/python-zope.exceptions] python2/python3 bconds fixes
jajcus
jajcus at pld-linux.org
Tue Dec 27 14:56:42 CET 2016
commit 8ba5e1dba601cc5198189b623d725d663e1c48d4
Author: Jacek Konieczny <j.konieczny at eggsoft.pl>
Date: Tue Dec 27 14:56:29 2016 +0100
python2/python3 bconds fixes
python-zope.exceptions.spec | 7 ++++++-
1 file changed, 6 insertions(+), 1 deletion(-)
---
diff --git a/python-zope.exceptions.spec b/python-zope.exceptions.spec
index 606eb9c..c12a81a 100644
--- a/python-zope.exceptions.spec
+++ b/python-zope.exceptions.spec
@@ -15,11 +15,12 @@ Source0: https://pypi.python.org/packages/8f/b7/eba9eca6841fa47d9a30f71a602be761
URL: http://www.zope.org/
BuildRequires: rpm-pythonprov
BuildRequires: rpmbuild(macros) >= 1.710
-%if %{with python}
+%if %{with python2}
BuildRequires: python >= 1:2.6
BuildRequires: python-setuptools
%endif
%if %{with python3}
+BuildRequires: python3
BuildRequires: python3-setuptools
%endif
%pyrequires_eq python-modules
@@ -68,14 +69,18 @@ rm -rf $RPM_BUILD_ROOT
%clean
rm -rf $RPM_BUILD_ROOT
+%if %{with python2}
%files
%defattr(644,root,root,755)
%{py_sitedir}/zope/exceptions
%{py_sitedir}/zope.exceptions-*.egg-info
%{py_sitedir}/zope.exceptions-*-nspkg.pth
+%endif
+%if %{with python3}
%files -n python3-%{module}
%defattr(644,root,root,755)
%{py3_sitedir}/zope/exceptions
%{py3_sitedir}/zope.exceptions-*.egg-info
%{py3_sitedir}/zope.exceptions-*-nspkg.pth
+%endif
================================================================
---- gitweb:
http://git.pld-linux.org/gitweb.cgi/packages/python-zope.exceptions.git/commitdiff/8ba5e1dba601cc5198189b623d725d663e1c48d4
More information about the pld-cvs-commit
mailing list