obsolete python-sip4 (python 2.7) [release 4.19.24-2mamba;Fri Jan 22 2021]

This commit is contained in:
Silvan Calarco 2024-01-05 16:40:30 +01:00
parent 98b3ff8bb5
commit b221012c51

View File

@ -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 <silvan.calarco@mambasoft.it> 4.19.24-2mamba
- obsolete python-sip4 (python 2.7)
* Wed Jan 06 2021 Automatic Build System <autodist@mambasoft.it> 4.19.24-1mamba
- automatic version update by autodist
* Fri Apr 10 2020 Silvan Calarco <silvan.calarco@mambasoft.it> 4.19.22-1mamba
- update to 4.19.22
- legacy package