python-sip/python-sip.spec

320 lines
11 KiB
RPMSpec

Name: python-sip
Version: 4.19.19
Release: 2mamba
Summary: Python extension module generator for C and C++ libraries
Group: System/Libraries/Python
Vendor: openmamba
Distribution: openmamba
Packager: Silvan Calarco <silvan.calarco@mambasoft.it>
URL: http://www.riverbankcomputing.com/software/sip
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
BuildRequires: glibc-devel
BuildRequires: libgcc
BuildRequires: libpython-devel
BuildRequires: libstdc++6-devel
## AUTOBUILDREQ-END
BuildRequires: libpython3-devel >= 3.7.4
Requires: python27 >= %python27_version
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}})
%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
%package -n sip
Group: Development/Tools
Summary: Python %{pyver} extension module generator for C and C++ libraries
%description -n sip
SIP is an extension module generator similar to SWIG but is specifically designed for creating Python modules.
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
%install
[ "%{buildroot}" != / ] && rm -rf "%{buildroot}"
%makeinstall
%makeinstall -C PyQt5
#install -d -m0755 %{buildroot}%{_datadir}/sip
%clean
[ "%{buildroot}" != / ] && rm -rf "%{buildroot}"
%files %{?with_pyver:py%{pyver}}
%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
%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/*
%changelog
* Mon Oct 28 2019 Silvan Calarco <silvan.calarco@mambasoft.it> 4.19.19-2mamba
- package sip binary apart to fix conflicts beteen -devel packages
* Sat Oct 26 2019 Silvan Calarco <silvan.calarco@mambasoft.it> 4.19.19-1mamba
- update to 4.19.19
* Thu Aug 08 2019 Silvan Calarco <silvan.calarco@mambasoft.it> 4.19.18-2mamba
- rebuilt with python3 3.7.4
* Fri Aug 02 2019 Silvan Calarco <silvan.calarco@mambasoft.it> 4.19.18-1mamba
- update to 4.19.18
* Sun Jan 06 2019 Silvan Calarco <silvan.calarco@mambasoft.it> 4.19.13-2mamba
- restore build of PtQt4 module
* Fri Oct 05 2018 Automatic Build System <autodist@mambasoft.it> 4.19.13-1mamba
- automatic version update by autodist
* Wed Sep 19 2018 Silvan Calarco <silvan.calarco@mambasoft.it> 4.19.12-2mamba
- rebuilt also with python36
* Thu Jul 19 2018 Automatic Build System <autodist@mambasoft.it> 4.19.12-1mamba
- automatic version update by autodist
* Sat Apr 14 2018 Automatic Build System <autodist@mambasoft.it> 4.19.8-1mamba
- automatic version update by autodist
* Sat Jan 27 2018 Automatic Build System <autodist@mambasoft.it> 4.19.7-1mamba
- automatic version update by autodist
* Wed Dec 27 2017 Automatic Build System <autodist@mambasoft.it> 4.19.6-1mamba
- automatic version update by autodist
* Wed Nov 08 2017 Automatic Build System <autodist@mambasoft.it> 4.19.5-1mamba
- automatic version update by autodist
* Wed Aug 09 2017 Automatic Build System <autodist@mambasoft.it> 4.19.3-1mamba
- automatic version update by autodist
* Sun Mar 05 2017 Automatic Build System <autodist@mambasoft.it> 4.19.1-1mamba
- automatic version update by autodist
* Wed Jan 25 2017 Automatic Build System <autodist@mambasoft.it> 4.19-1mamba
- automatic version update by autodist
* Fri Sep 23 2016 Automatic Build System <autodist@mambasoft.it> 4.18.1-1mamba
- automatic version update by autodist
* Wed Apr 20 2016 Automatic Build System <autodist@mambasoft.it> 4.18-2mamba
- automatic version update by autodist
* Wed Apr 20 2016 Automatic Build System <autodist@mambasoft.it> 4.18-1mamba
- automatic version update by autodist
* Fri Mar 11 2016 Automatic Build System <autodist@mambasoft.it> 4.17-1mamba
- automatic version update by autodist
* Tue Jan 26 2016 Automatic Build System <autodist@mambasoft.it> 4.16.9-2mamba
- automatic version update by autodist
* Tue Jan 26 2016 Automatic Build System <autodist@mambasoft.it> 4.16.9-1mamba
- automatic version update by autodist
* Tue Mar 31 2015 Automatic Build System <autodist@mambasoft.it> 4.16.7-1mamba
- automatic update by autodist
* Sun Mar 01 2015 Automatic Build System <autodist@mambasoft.it> 4.16.6-1mamba
- automatic version update by autodist
* Thu Dec 25 2014 Automatic Build System <autodist@mambasoft.it> 4.16.5-1mamba
- automatic version update by autodist
* Fri Nov 14 2014 Silvan Calarco <silvan.calarco@mambasoft.it> 4.16.4-1mamba
- update to 4.16.4
* Fri Nov 14 2014 Silvan Calarco <silvan.calarco@mambasoft.it> 4.16.3-2mamba
- -py3 support
* Sun Sep 21 2014 Automatic Build System <autodist@mambasoft.it> 4.16.3-1mamba
- automatic version update by autodist
* Sat Jun 14 2014 Automatic Build System <autodist@mambasoft.it> 4.16.1-1mamba
- automatic version update by autodist
* Thu Mar 27 2014 Automatic Build System <autodist@mambasoft.it> 4.15.5-1mamba
- automatic version update by autodist
* Thu Jan 09 2014 Automatic Build System <autodist@mambasoft.it> 4.15.4-1mamba
- automatic version update by autodist
* Wed Oct 16 2013 Automatic Build System <autodist@mambasoft.it> 4.15.3-1mamba
- automatic version update by autodist
* Mon Sep 30 2013 Stefano Cotta Ramusino <stefano.cotta@openmamba.org> 4.15.2-1mamba
- update to 4.15.2
* Tue Jun 18 2013 Automatic Build System <autodist@mambasoft.it> 4.14.7-1mamba
- automatic version update by autodist
* Fri May 17 2013 Silvan Calarco <silvan.calarco@mambasoft.it> 4.14.6-2mamba
- rebuilt with python 2.7
* Mon Apr 22 2013 Automatic Build System <autodist@mambasoft.it> 4.14.6-1mamba
- automatic version update by autodist
* Thu Mar 28 2013 Automatic Build System <autodist@mambasoft.it> 4.14.5-1mamba
- automatic version update by autodist
* Sat Mar 09 2013 Automatic Build System <autodist@mambasoft.it> 4.14.4-1mamba
- automatic version update by autodist
* Mon Feb 25 2013 Automatic Build System <autodist@mambasoft.it> 4.14.3-1mamba
- automatic version update by autodist
* Sun Dec 09 2012 Automatic Build System <autodist@mambasoft.it> 4.14.2-1mamba
- automatic version update by autodist
* Fri Nov 02 2012 Automatic Build System <autodist@mambasoft.it> 4.14.1-1mamba
- automatic version update by autodist
* Thu Oct 18 2012 Automatic Build System <autodist@mambasoft.it> 4.14-1mamba
- update to 4.14
* Sat Aug 11 2012 Silvan Calarco <silvan.calarco@mambasoft.it> 4.13.3-1mamba
- update to 4.13.3
* Wed Jun 13 2012 Automatic Build System <autodist@mambasoft.it> 4.13.2-1mamba
- automatic version update by autodist
* Sun Aug 21 2011 Stefano Cotta Ramusino <stefano.cotta@openmamba.org> 4.12.4-1mamba
- update to 4.12.4
* Sun Jun 19 2011 Automatic Build System <autodist@mambasoft.it> 4.12.3-1mamba
- automatic update by autodist
* Wed May 18 2011 Stefano Cotta Ramusino <stefano.cotta@openmamba.org> 4.12.2-1mamba
- update to 4.12.2
* Tue Feb 01 2011 Automatic Build System <autodist@mambasoft.it> 4.12.1-1mamba
- automatic update by autodist
* Fri Dec 31 2010 Automatic Build System <autodist@mambasoft.it> 4.12-1mamba
- automatic update by autodist
* Sat Oct 30 2010 Silvan Calarco <silvan.calarco@mambasoft.it> 4.11.2-2mamba
- rebuilt with libqt 4.7.0
* Thu Oct 28 2010 Silvan Calarco <silvan.calarco@mambasoft.it> 4.11.2-1mamba
- update to 4.11.2
* Sun Oct 03 2010 Automatic Build System <autodist@mambasoft.it> 4.11.1-1mamba
- automatic update by autodist
* Mon Aug 16 2010 Automatic Build System <autodist@mambasoft.it> 4.10.5-1mamba
- automatic update by autodist
* Tue Jul 13 2010 Automatic Build System <autodist@mambasoft.it> 4.10.3-1mamba
- automatic update by autodist
* Wed May 05 2010 Stefano Cotta Ramusino <stefano.cotta@openmamba.org> 4.10.2-1mamba
- update to 4.10.2
* Fri Apr 02 2010 Davide Madrisan <davide.madrisan@gmail.com> 4.10.1-1mamba
- update to 4.10.1
* Tue Mar 09 2010 Stefano Cotta Ramusino <stefano.cotta@openmamba.org> 4.10-2mamba
- added devel package
* Tue Jan 26 2010 Automatic Build System <autodist@mambasoft.it> 4.10-1mamba
- automatic update by autodist
* Wed Oct 28 2009 Ercole 'ercolinux' Carpanetto <ercole69@gmail.com> 4.9.1-1mamba
- update to 4.9.1
* Wed Aug 12 2009 Silvan Calarco <silvan.calarco@mambasoft.it> 4.8.2-1mamba
- update to 4.8.2
* Fri Dec 05 2008 Silvan Calarco <silvan.calarco@mambasoft.it> 4.7.9-1mamba
- update to 4.7.9
* Mon Nov 10 2008 Silvan Calarco <silvan.calarco@mambasoft.it> 4.7.8-1mamba
- update to 4.7.8
* Wed Aug 13 2008 gil <puntogil@libero.it> 4.7.7-1mamba
- update to 4.7.7
* Fri May 09 2008 Silvan Calarco <silvan.calarco@mambasoft.it> 4.7.4-1mamba
- update to 4.7.4
* Fri Oct 05 2007 Silvan Calarco <silvan.calarco@mambasoft.it> 4.7.1-1mamba
- update to 4.7.1
* Mon Jul 10 2006 Silvan Calarco <silvan.calarco@mambasoft.it> 4.4.5-1qilnx
- package created by autospec