From 001a96d20d2a02bd74911182108171e7185b7bee Mon Sep 17 00:00:00 2001 From: Silvan Calarco Date: Fri, 5 Jan 2024 16:40:08 +0100 Subject: [PATCH] update to 4.16.4 [release 4.16.4-1mamba;Fri Nov 14 2014] --- python-sip.spec | 54 +++++++++++++++++++++++++++++++++++++++---------- 1 file changed, 43 insertions(+), 11 deletions(-) diff --git a/python-sip.spec b/python-sip.spec index 2f70352..0a8e9da 100644 --- a/python-sip.spec +++ b/python-sip.spec @@ -1,5 +1,5 @@ Name: python-sip -Version: 4.16.1 +Version: 4.16.4 Release: 1mamba Summary: Python extension module generator for C and C++ libraries Group: System/Libraries/Python @@ -21,22 +21,41 @@ BuildRoot: %{_tmppath}/%{name}-%{version}-root %description SIP is an extension module generator similar to SWIG but is specifically designed for creating Python modules. -%package devel +%package %{?with_pyver:py%{with_pyver}-}devel Summary: Development files for SIP Group: Development/Libraries Requires: %{name} = %{?epoch:%epoch:}%{version}-%{release} -%description devel +%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}}) +%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. +%endif + %prep %setup -q -n sip-%{version} %build -%{__python27} configure.py CXXFLAGS="%{optflags}" CFLAGS="%{optflags}" \ - -d %{python27_sitearch} +%{__python} configure.py CXXFLAGS="%{optflags}" CFLAGS="%{optflags}" \ + -d %{python_sitearch} %make @@ -49,21 +68,34 @@ install -d -m0755 %{buildroot}%{_datadir}/sip %clean [ "%{buildroot}" != / ] && rm -rf "%{buildroot}" -%files +%files %{?with_pyver:py%{pyver}} %defattr(-,root,root) -%{python27_sitearch}/*.so +%{python_sitearch}/*.so %doc LICENSE* -%files devel +%files %{?with_pyver:py%{pyver}-}devel %defattr(-,root,root) %{_bindir}/sip %dir %{_datadir}/sip -%{_includedir}/python%{python27_version}/sip.h -%{python27_sitearch}/*.py +%if "%?with_pyver" +%{python3_inc}/sip.h +%else +%{_includedir}/python%{python_version}/sip.h +%endif +%{python_sitearch}/*.py %doc NEWS README %doc doc/* %changelog +* Fri Nov 14 2014 Silvan Calarco 4.16.4-1mamba +- update to 4.16.4 + +* Fri Nov 14 2014 Silvan Calarco 4.16.3-2mamba +- -py3 support + +* Sun Sep 21 2014 Automatic Build System 4.16.3-1mamba +- automatic version update by autodist + * Sat Jun 14 2014 Automatic Build System 4.16.1-1mamba - automatic version update by autodist