[packages/python-zope-base] - package both arch and noarch base - rel 7
baggins
baggins at pld-linux.org
Tue Mar 9 22:29:32 CET 2021
commit b1389b8b41fc058a9eb3672cdafe400ac3179089
Author: Jan Rękorajski <baggins at pld-linux.org>
Date: Tue Mar 9 22:29:09 2021 +0100
- package both arch and noarch base
- rel 7
python-zope-base.spec | 19 ++++++++++---------
1 file changed, 10 insertions(+), 9 deletions(-)
---
diff --git a/python-zope-base.spec b/python-zope-base.spec
index 2e9da5f..5af6796 100644
--- a/python-zope-base.spec
+++ b/python-zope-base.spec
@@ -7,7 +7,7 @@ Summary: Common dirs for Zope libraries
Summary(pl.UTF-8): Katalogi wspólne dla bibliotek Zope
Name: python-zope-base
Version: 1.0
-Release: 6
+Release: 7
License: Public Domain
Group: Libraries/Python
BuildRequires: rpm-pythonprov
@@ -22,7 +22,6 @@ BuildRequires: python3-modules
%endif
Obsoletes: Zope-dirs
Provides: Zope-dirs
-BuildArch: noarch
BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
# nothing to put there
@@ -49,19 +48,19 @@ Katalogi wspólne dla bibliotek Zope.
%install
rm -rf $RPM_BUILD_ROOT
-install -d $RPM_BUILD_ROOT{%{py_sitescriptdir},%{py3_sitescriptdir}}/zope
+install -d $RPM_BUILD_ROOT{%{py_sitescriptdir},%{py3_sitescriptdir},%{py_sitedir},%{py3_sitedir}}/zope
%if %{with python2}
-touch $RPM_BUILD_ROOT%{py_sitescriptdir}/zope/__init__.py
-%py_comp $RPM_BUILD_ROOT%{py_sitescriptdir}/zope
-%py_ocomp $RPM_BUILD_ROOT%{py_sitescriptdir}/zope
+touch $RPM_BUILD_ROOT{%{py_sitescriptdir},%{py_sitedir}}/zope/__init__.py
+%py_comp $RPM_BUILD_ROOT{%{py_sitescriptdir},%{py_sitedir}}/zope
+%py_ocomp $RPM_BUILD_ROOT{%{py_sitescriptdir},%{py_sitedir}}/zope
%py_postclean
%endif
%if %{with python3}
-touch $RPM_BUILD_ROOT%{py3_sitescriptdir}/zope/__init__.py
-%py3_comp $RPM_BUILD_ROOT%{py3_sitescriptdir}/zope
-%py3_ocomp $RPM_BUILD_ROOT%{py3_sitescriptdir}/zope
+touch $RPM_BUILD_ROOT{%{py3_sitescriptdir},%{py3_sitedir}}/zope/__init__.py
+%py3_comp $RPM_BUILD_ROOT{%{py3_sitescriptdir},%{py3_sitedir}}/zope
+%py3_ocomp $RPM_BUILD_ROOT{%{py3_sitescriptdir},%{py3_sitedir}}/zope
%endif
%clean
@@ -70,11 +69,13 @@ rm -rf $RPM_BUILD_ROOT
%if %{with python2}
%files
%defattr(644,root,root,755)
+%{py_sitedir}/zope
%{py_sitescriptdir}/zope
%endif
%if %{with python3}
%files -n python3-zope-base
%defattr(644,root,root,755)
+%{py3_sitedir}/zope
%{py3_sitescriptdir}/zope
%endif
================================================================
---- gitweb:
http://git.pld-linux.org/gitweb.cgi/packages/python-zope-base.git/commitdiff/b1389b8b41fc058a9eb3672cdafe400ac3179089
More information about the pld-cvs-commit
mailing list