From 1d87daf53d8751be01476d5489aac841019a9312 Mon Sep 17 00:00:00 2001 From: Silvan Calarco Date: Fri, 5 Jan 2024 16:56:37 +0100 Subject: [PATCH] add requirements in py3* packages [release 4.6.1-2mamba;Sat Apr 11 2020] --- python-zope-component.spec | 32 +++++++++++++++++++++++++++++--- 1 file changed, 29 insertions(+), 3 deletions(-) diff --git a/python-zope-component.spec b/python-zope-component.spec index 5a08c5e..10a9762 100644 --- a/python-zope-component.spec +++ b/python-zope-component.spec @@ -1,6 +1,6 @@ Name: python-zope-component Version: 4.6.1 -Release: 1mamba +Release: 2mamba Summary: Zope Component Architecture Group: System/Libraries Vendor: openmamba @@ -25,8 +25,31 @@ BuildRoot: %{_tmppath}/%{name}-%{version}-root %description %{summary}. -%if 0%{?with_pyver} -%pyver_package +%if "%?with_pyver" +%define pyver %{with_pyver} +%define pyappend py%{with_pyver} +%define __python %(rpm --eval %{__python%{with_pyver}}) +%define python_sitearch %(rpm --eval %{python%{with_pyver}_sitearch}) +%define python_sitelib %(rpm --eval %{python%{with_pyver}_sitelib}) +%define python_inc %(rpm --eval %{python%{with_pyver}_inc}) +%define python_version %(rpm --eval %{python%{with_pyver}_version}) +%define python_provides %(rpm --eval %{python%{with_pyver}_provides}) +%define python_requires %(rpm --eval %{python%{with_pyver}_requires}) +%define py_requires %(rpm --eval %{py%{with_pyver}_requires}) + +%package py%{pyver} +Group: System/Libraries/Python +Summary: %{summary} +Requires: python-zope-deferredimport-%{?pyappend} +Requires: python-zope-deprecation-%{?pyappend} +Requires: python-zope-interface-%{?pyappend} +Requires: python-zope-event-%{?pyappend} +Requires: python-zope-hookable-%{?pyappend} +Requires: python-zope-proxy-%{?pyappend} +%py_requires + +%description py%{pyver} +%{summary}. %endif %prep @@ -50,6 +73,9 @@ CFLAGS="%{optflags}" %{__python} setup.py build %defattr(-,root,root) %changelog +* Sat Apr 11 2020 Silvan Calarco 4.6.1-2mamba +- add requirements in py3* packages + * Mon Mar 23 2020 Automatic Build System 4.6.1-1mamba - automatic version update by autodist