commit 60fd7abfb0269ebebf88ca8f77286cd429941c0c Author: Jacek Konieczny <j.koniec...@eggsoft.pl> Date: Fri May 4 10:18:18 2018 +0200
Python3 support added Release: 2 python-zope.component.spec | 46 +++++++++++++++++++++++++++++++++++++++++++--- 1 file changed, 43 insertions(+), 3 deletions(-) --- diff --git a/python-zope.component.spec b/python-zope.component.spec index ae06f32..f0bfc4f 100644 --- a/python-zope.component.spec +++ b/python-zope.component.spec @@ -1,9 +1,14 @@ +# +# Conditional build: +%bcond_without python2 # CPython 2.x module +%bcond_without python3 # CPython 3.x module + %define module zope.component Summary: Core of the Zope Component Architecture Summary(pl.UTF-8): Rdzeń Zope Component Architecture Name: python-%{module} Version: 4.4.1 -Release: 1 +Release: 2 License: ZPL 2.1 Group: Libraries/Python Source0: https://files.pythonhosted.org/packages/source/z/zope.component/zope.component-%{version}.tar.gz @@ -30,24 +35,59 @@ Core of the Zope Component Architecture. %description -l pl.UTF-8 Rdzeń architektury komponentowej Zope Component Architecture. +%package -n python3-zope.component +Summary: Core of the Zope Component Architecture +Summary(pl.UTF-8): Rdzeń Zope Component Architecture +Group: Libraries/Python + +%description -n python3-zope.component +Core of the Zope Component Architecture. + +%description -n python3-zope.component -l pl.UTF-8 +Rdzeń architektury komponentowej Zope Component Architecture. + %prep %setup -q -n zope.component-%{version} %build -%py_build +%if %{with python2} +%py_build %{?with_tests:test} +%endif + +%if %{with python3} +%py3_build %{?with_tests:test} +%endif %install rm -rf $RPM_BUILD_ROOT + +%if %{with python2} %py_install \ - --install-purelib=%{py_sitedir} \ + --install-purelib=%{py_sitedir} %py_postclean +%endif + +%if %{with python3} +%py3_install \ + --install-purelib=%{py3_sitedir} +%endif %clean rm -rf $RPM_BUILD_ROOT %files %defattr(644,root,root,755) +%if %{with python2} %{py_sitedir}/zope/component %{py_sitedir}/zope.component-*.egg-info %{py_sitedir}/zope.component-*-nspkg.pth +%endif + +%files -n python3-zope.component +%defattr(644,root,root,755) +%if %{with python3} +%{py3_sitedir}/zope/component +%{py3_sitedir}/zope.component-*.egg-info +%{py3_sitedir}/zope.component-*-nspkg.pth +%endif ================================================================ ---- gitweb: http://git.pld-linux.org/gitweb.cgi/packages/python-zope.component.git/commitdiff/60fd7abfb0269ebebf88ca8f77286cd429941c0c _______________________________________________ pld-cvs-commit mailing list pld-cvs-commit@lists.pld-linux.org http://lists.pld-linux.org/mailman/listinfo/pld-cvs-commit