From b221012c51fe3f842215943fe776128185419255 Mon Sep 17 00:00:00 2001 From: Silvan Calarco Date: Fri, 5 Jan 2024 16:40:30 +0100 Subject: [PATCH] obsolete python-sip4 (python 2.7) [release 4.19.24-2mamba;Fri Jan 22 2021] --- python-sip4.spec | 37 ++++++++++++++----------------------- 1 file changed, 14 insertions(+), 23 deletions(-) diff --git a/python-sip4.spec b/python-sip4.spec index 1d633f3..0eeaa05 100644 --- a/python-sip4.spec +++ b/python-sip4.spec @@ -1,6 +1,6 @@ Name: python-sip4 -Version: 4.19.22 -Release: 1mamba +Version: 4.19.24 +Release: 2mamba Summary: Python extension module generator for C and C++ libraries Group: System/Libraries/Python Vendor: openmamba @@ -17,7 +17,6 @@ BuildRequires: libpython-devel BuildRequires: libstdc++6-devel ## AUTOBUILDREQ-END BuildRequires: libpython3-devel >= 3.7.4 -Requires: python27 >= %python27_version Requires: sip4 = %{?epoch:%epoch:}%{version}-%{release} Provides: python-sip Obsoletes: python-sip @@ -28,30 +27,16 @@ BuildRoot: %{_tmppath}/%{name}-%{version}-root %description SIP is an extension module generator similar to SWIG but is specifically designed for creating Python modules. -%if "%?with_pyver" -%define pyver %{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: Python %{pyver} extension module generator for C and C++ libraries - -%py_requires - -%description py%{pyver} -SIP is an extension module generator similar to SWIG but is specifically designed for creating Python modules. +%if 0%{?with_pyver} +%define py_requires_append \ +Obsoletes: python-sip4 < 4.19.24 +%pyver_package %endif %package -n sip4 Group: Development/Tools Summary: Python %{pyver} extension module generator for C and C++ libraries +Requires: python-sip4-py3 %description -n sip4 SIP is an extension module generator similar to SWIG but is specifically designed for creating Python modules. @@ -59,7 +44,6 @@ This package provides the sip tool and documentation. %prep %setup -q -n sip-%{version} - tar xf %{SOURCE0} mv sip-%{version} PyQt5 @@ -87,6 +71,7 @@ cd PyQt5 %files %{?with_pyver:py%{pyver}} %defattr(-,root,root) +# PyQt4 %{python_sitearch}/PyQt4/sip.pyi %{python_sitearch}/PyQt4/sip.so %dir %{python_sitearch}/PyQt4_sip-%{version}.dist-info @@ -111,6 +96,12 @@ cd PyQt5 #%doc doc/* %changelog +* Fri Jan 22 2021 Silvan Calarco 4.19.24-2mamba +- obsolete python-sip4 (python 2.7) + +* Wed Jan 06 2021 Automatic Build System 4.19.24-1mamba +- automatic version update by autodist + * Fri Apr 10 2020 Silvan Calarco 4.19.22-1mamba - update to 4.19.22 - legacy package