update to 5.1.2 [release 5.1.2-1mamba;Fri Apr 10 2020]

This commit is contained in:
Silvan Calarco 2024-01-05 16:40:08 +01:00
parent 6964839a27
commit ac6e93e50c

View File

@ -1,13 +1,14 @@
Name: python-sip Name: python-sip
Version: 4.19.19 Version: 5.1.2
Release: 2mamba Release: 1mamba
Summary: Python extension module generator for C and C++ libraries Summary: Python extension module generator for C and C++ libraries
Group: System/Libraries/Python Group: System/Libraries/Python
Vendor: openmamba Vendor: openmamba
Distribution: openmamba Distribution: openmamba
Packager: Silvan Calarco <silvan.calarco@mambasoft.it> Packager: Silvan Calarco <silvan.calarco@mambasoft.it>
URL: http://www.riverbankcomputing.com/software/sip 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 #Source: http://sourceforge.net/projects/pyqt/files/sip/sip-%{version}/sip-%{version}.tar.gz
License: GPL License: GPL
## AUTOBUILDREQ-BEGIN ## AUTOBUILDREQ-BEGIN
@ -23,16 +24,6 @@ BuildRoot: %{_tmppath}/%{name}-%{version}-root
%description %description
SIP is an extension module generator similar to SWIG but is specifically designed for creating Python modules. 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" %if "%?with_pyver"
%define pyver %{with_pyver} %define pyver %{with_pyver}
%define __python %(rpm --eval %{__python%{with_pyver}}) %define __python %(rpm --eval %{__python%{with_pyver}})
@ -47,6 +38,9 @@ This package contains header files need for development.
%package py%{pyver} %package py%{pyver}
Group: System/Libraries/Python Group: System/Libraries/Python
Summary: Python %{pyver} extension module generator for C and C++ libraries 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 %py_requires
%description py%{pyver} %description py%{pyver}
@ -56,6 +50,7 @@ SIP is an extension module generator similar to SWIG but is specifically designe
%package -n sip %package -n sip
Group: Development/Tools Group: Development/Tools
Summary: Python %{pyver} extension module generator for C and C++ libraries Summary: Python %{pyver} extension module generator for C and C++ libraries
Requires: python-toml-py%{pyver}
%description -n sip %description -n sip
SIP is an extension module generator similar to SWIG but is specifically designed for creating Python modules. 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 %prep
%setup -q -n sip-%{version} %setup -q -n sip-%{version}
tar xf %{SOURCE0}
mv sip-%{version} PyQt5
%build %build
%{__python} configure.py CXXFLAGS="%{optflags}" CFLAGS="%{optflags}" \ CFLAGS="%{optflags}" %{__python} setup.py build
--sip-module=PyQt4.sip -d %{python_sitearch}
%make
cd PyQt5
%{__python} configure.py CXXFLAGS="%{optflags}" CFLAGS="%{optflags}" \
--sip-module=PyQt5.sip
%make
%install %install
[ "%{buildroot}" != / ] && rm -rf "%{buildroot}" [ "%{buildroot}" != / ] && rm -rf "%{buildroot}"
%makeinstall %{__python} setup.py install \
%makeinstall -C PyQt5 -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 %clean
[ "%{buildroot}" != / ] && rm -rf "%{buildroot}" [ "%{buildroot}" != / ] && rm -rf "%{buildroot}"
%files %{?with_pyver:py%{pyver}} %files %{?with_pyver:py%{pyver}} -f %{name}.filelist
%defattr(-,root,root) %defattr(-,root,root)
%{python_sitearch}/PyQt4/sip.pyi %exclude %{_bindir}/*
%{python_sitearch}/PyQt4/sip.so %doc LICENSE LICENSE-GPL2 LICENSE-GPL3
%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
%files -n sip %files -n sip
%defattr(-,root,root) %defattr(-,root,root)
%{_bindir}/sip %{_bindir}/sip5
%if "%?with_pyver" %{_bindir}/sip-*
%{python_inc}/sip.h #%doc NEWS README
%else #%doc doc/*
%{_includedir}/python%{python_version}/sip.h
%endif
%doc NEWS README
%doc doc/*
%changelog %changelog
* Fri Apr 10 2020 Silvan Calarco <silvan.calarco@mambasoft.it> 5.1.2-1mamba
- update to 5.1.2
* Mon Oct 28 2019 Silvan Calarco <silvan.calarco@mambasoft.it> 4.19.19-2mamba * Mon Oct 28 2019 Silvan Calarco <silvan.calarco@mambasoft.it> 4.19.19-2mamba
- package sip binary apart to fix conflicts beteen -devel packages - package sip binary apart to fix conflicts beteen -devel packages