From e5cbd780ae89492661cf63054bd060d9ee406ab4 Mon Sep 17 00:00:00 2001 From: Silvan Calarco Date: Fri, 5 Jan 2024 16:40:08 +0100 Subject: [PATCH] restore build of PtQt4 module [release 4.19.13-2mamba;Sun Jan 06 2019] --- python-sip.spec | 93 ++++++++++++++++++++++++++++++++++++++++++++----- 1 file changed, 85 insertions(+), 8 deletions(-) diff --git a/python-sip.spec b/python-sip.spec index 0a8e9da..1b247f6 100644 --- a/python-sip.spec +++ b/python-sip.spec @@ -1,6 +1,6 @@ Name: python-sip -Version: 4.16.4 -Release: 1mamba +Version: 4.19.13 +Release: 2mamba Summary: Python extension module generator for C and C++ libraries Group: System/Libraries/Python Vendor: openmamba @@ -53,40 +53,117 @@ SIP is an extension module generator similar to SWIG but is specifically designe %prep %setup -q -n sip-%{version} +tar xf %{SOURCE0} +mv sip-%{version} PyQt5 + %build %{__python} configure.py CXXFLAGS="%{optflags}" CFLAGS="%{optflags}" \ - -d %{python_sitearch} + --sip-module=PyQt4.sip -d %{python_sitearch} + +%make + +cd PyQt5 +%{__python} configure.py CXXFLAGS="%{optflags}" CFLAGS="%{optflags}" \ + --sip-module=PyQt5.sip %make %install [ "%{buildroot}" != / ] && rm -rf "%{buildroot}" %makeinstall +%makeinstall -C PyQt5 -install -d -m0755 %{buildroot}%{_datadir}/sip +#install -d -m0755 %{buildroot}%{_datadir}/sip %clean [ "%{buildroot}" != / ] && rm -rf "%{buildroot}" %files %{?with_pyver:py%{pyver}} %defattr(-,root,root) -%{python_sitearch}/*.so +%{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) %{_bindir}/sip -%dir %{_datadir}/sip %if "%?with_pyver" -%{python3_inc}/sip.h +%{python_inc}/sip.h %else %{_includedir}/python%{python_version}/sip.h %endif -%{python_sitearch}/*.py %doc NEWS README %doc doc/* %changelog +* Sun Jan 06 2019 Silvan Calarco 4.19.13-2mamba +- restore build of PtQt4 module + +* Fri Oct 05 2018 Automatic Build System 4.19.13-1mamba +- automatic version update by autodist + +* Wed Sep 19 2018 Silvan Calarco 4.19.12-2mamba +- rebuilt also with python36 + +* Thu Jul 19 2018 Automatic Build System 4.19.12-1mamba +- automatic version update by autodist + +* Sat Apr 14 2018 Automatic Build System 4.19.8-1mamba +- automatic version update by autodist + +* Sat Jan 27 2018 Automatic Build System 4.19.7-1mamba +- automatic version update by autodist + +* Wed Dec 27 2017 Automatic Build System 4.19.6-1mamba +- automatic version update by autodist + +* Wed Nov 08 2017 Automatic Build System 4.19.5-1mamba +- automatic version update by autodist + +* Wed Aug 09 2017 Automatic Build System 4.19.3-1mamba +- automatic version update by autodist + +* Sun Mar 05 2017 Automatic Build System 4.19.1-1mamba +- automatic version update by autodist + +* Wed Jan 25 2017 Automatic Build System 4.19-1mamba +- automatic version update by autodist + +* Fri Sep 23 2016 Automatic Build System 4.18.1-1mamba +- automatic version update by autodist + +* Wed Apr 20 2016 Automatic Build System 4.18-2mamba +- automatic version update by autodist + +* Wed Apr 20 2016 Automatic Build System 4.18-1mamba +- automatic version update by autodist + +* Fri Mar 11 2016 Automatic Build System 4.17-1mamba +- automatic version update by autodist + +* Tue Jan 26 2016 Automatic Build System 4.16.9-2mamba +- automatic version update by autodist + +* Tue Jan 26 2016 Automatic Build System 4.16.9-1mamba +- automatic version update by autodist + +* Tue Mar 31 2015 Automatic Build System 4.16.7-1mamba +- automatic update by autodist + +* Sun Mar 01 2015 Automatic Build System 4.16.6-1mamba +- automatic version update by autodist + +* Thu Dec 25 2014 Automatic Build System 4.16.5-1mamba +- automatic version update by autodist + * Fri Nov 14 2014 Silvan Calarco 4.16.4-1mamba - update to 4.16.4