From ac6e93e50cfd7421246f2adfbe62727a03809451 Mon Sep 17 00:00:00 2001 From: Silvan Calarco Date: Fri, 5 Jan 2024 16:40:08 +0100 Subject: [PATCH] update to 5.1.2 [release 5.1.2-1mamba;Fri Apr 10 2020] --- python-sip.spec | 83 ++++++++++++++++--------------------------------- 1 file changed, 26 insertions(+), 57 deletions(-) diff --git a/python-sip.spec b/python-sip.spec index a69e8da..e042f1a 100644 --- a/python-sip.spec +++ b/python-sip.spec @@ -1,13 +1,14 @@ Name: python-sip -Version: 4.19.19 -Release: 2mamba +Version: 5.1.2 +Release: 1mamba Summary: Python extension module generator for C and C++ libraries Group: System/Libraries/Python Vendor: openmamba Distribution: openmamba Packager: Silvan Calarco URL: http://www.riverbankcomputing.com/software/sip -Source: https://www.riverbankcomputing.com/static/Downloads/sip/%{version}/sip-%{version}.tar.gz +Source: https://pypi.debian.net/sip/sip-%{version}.tar.gz +#Source: https://www.riverbankcomputing.com/static/Downloads/sip/%{version}/sip-%{version}.tar.gz #Source: http://sourceforge.net/projects/pyqt/files/sip/sip-%{version}/sip-%{version}.tar.gz License: GPL ## AUTOBUILDREQ-BEGIN @@ -23,16 +24,6 @@ BuildRoot: %{_tmppath}/%{name}-%{version}-root %description SIP is an extension module generator similar to SWIG but is specifically designed for creating Python modules. -%package %{?with_pyver:py%{with_pyver}-}devel -Summary: Development files for SIP -Group: Development/Libraries -Requires: %{name} = %{?epoch:%epoch:}%{version}-%{release} -Requires: sip = %{?epoch:%epoch:}%{version}-%{release} - -%description %{?with_pyver:py%{with_pyver}-}devel -SIP is an extension module generator similar to SWIG but is specifically designed for creating Python modules. -This package contains header files need for development. - %if "%?with_pyver" %define pyver %{with_pyver} %define __python %(rpm --eval %{__python%{with_pyver}}) @@ -47,6 +38,9 @@ This package contains header files need for development. %package py%{pyver} Group: System/Libraries/Python Summary: Python %{pyver} extension module generator for C and C++ libraries +Provides: python-sip-%{?with_pyver:py%{with_pyver}-}devel +Obsoletes: python-sip-%{?with_pyver:py%{with_pyver}-}devel +Requires: sip = %{?epoch:%epoch:}%{version}-%{release} %py_requires %description py%{pyver} @@ -56,6 +50,7 @@ SIP is an extension module generator similar to SWIG but is specifically designe %package -n sip Group: Development/Tools Summary: Python %{pyver} extension module generator for C and C++ libraries +Requires: python-toml-py%{pyver} %description -n sip SIP is an extension module generator similar to SWIG but is specifically designed for creating Python modules. @@ -64,65 +59,39 @@ This package provides the sip tool and documentation. %prep %setup -q -n sip-%{version} -tar xf %{SOURCE0} -mv sip-%{version} PyQt5 - %build -%{__python} configure.py CXXFLAGS="%{optflags}" CFLAGS="%{optflags}" \ - --sip-module=PyQt4.sip -d %{python_sitearch} - -%make - -cd PyQt5 -%{__python} configure.py CXXFLAGS="%{optflags}" CFLAGS="%{optflags}" \ - --sip-module=PyQt5.sip - -%make +CFLAGS="%{optflags}" %{__python} setup.py build %install [ "%{buildroot}" != / ] && rm -rf "%{buildroot}" -%makeinstall -%makeinstall -C PyQt5 +%{__python} setup.py install \ + -O1 --skip-build \ + --root="%{buildroot}" \ + --install-headers=%{python_inc} \ + --install-lib=%{python_sitearch} \ + --record=%{name}.filelist -#install -d -m0755 %{buildroot}%{_datadir}/sip +sed -i "s,.*/man/.*,&.gz," %{name}.filelist %clean [ "%{buildroot}" != / ] && rm -rf "%{buildroot}" -%files %{?with_pyver:py%{pyver}} +%files %{?with_pyver:py%{pyver}} -f %{name}.filelist %defattr(-,root,root) -%{python_sitearch}/PyQt4/sip.pyi -%{python_sitearch}/PyQt4/sip.so -%dir %{python_sitearch}/PyQt4_sip-%{version}.dist-info -%{python_sitearch}/PyQt4_sip-%{version}.dist-info/* -%{python_sitearch}/*.py* -# for PyQt5 -%{python_sitearch}/PyQt5/sip.so -%{python_sitearch}/PyQt5/sip.pyi -%dir %{python_sitearch}/PyQt5_sip-%{version}.dist-info -%{python_sitearch}/PyQt5_sip-%{version}.dist-info/* -%doc LICENSE* - -%files %{?with_pyver:py%{pyver}-}devel -%defattr(-,root,root) -%if "%?with_pyver" -%{python_inc}/sip.h -%else -%{_includedir}/python%{python_version}/sip.h -%endif +%exclude %{_bindir}/* +%doc LICENSE LICENSE-GPL2 LICENSE-GPL3 %files -n sip %defattr(-,root,root) -%{_bindir}/sip -%if "%?with_pyver" -%{python_inc}/sip.h -%else -%{_includedir}/python%{python_version}/sip.h -%endif -%doc NEWS README -%doc doc/* +%{_bindir}/sip5 +%{_bindir}/sip-* +#%doc NEWS README +#%doc doc/* %changelog +* Fri Apr 10 2020 Silvan Calarco 5.1.2-1mamba +- update to 5.1.2 + * Mon Oct 28 2019 Silvan Calarco 4.19.19-2mamba - package sip binary apart to fix conflicts beteen -devel packages