%define subrel 2 Name: python-sip Summary: Riverbanks's python sip Version: 4.7 Release: %mkrel 1 Epoch: 1 Group: Development/Python URL: http://www.riverbankcomputing.co.uk/sip/index.php Source0: http://www.riverbankcomputing.com/Downloads/sip4/sip-%{version}.tar.gz License: GPL BuildRoot: %_tmppath/%name-%version-%release-root BuildRequires: bzip2-devel %py_requires -d Obsoletes: sip < %version Obsoletes: sip-devel < %version Provides: sip = %version Provides: sip-devel = %version %description SIP is a tool that makes it very easy to create Python bindings for C and C++ libraries. It was originally developed to create PyQt, the Python bindings for the Qt toolkit, but can be used to create bindings for any C or C++ library. %files %defattr(-,root,root) %_bindir/sip %py_platsitedir/s* %py_incdir/sip.h #------------------------------------------------------------ %prep %setup -q -n sip-%version %build python configure.py CFLAGS="%{optflags}" %make %install rm -rf %buildroot make DESTDIR=%buildroot install %clean rm -rf %buildroot %changelog * Thu Jun 05 2008 Funda Wang <fundawang@mandriva.org> 1:4.7-1.2mdv2008.0 + Revision: 215208 - fix sip-devel installation by providing sip-devel besides obsoleting it. - obsoletes old package name sip and sip-devel - use %%optflags when building * Mon Aug 20 2007 Helio Chissini de Castro <helio@mandriva.com> 1:4.7-1mdv2008.0 + Revision: 67983 - Restored external python-sip, to make it available for all python qt3 and python qt4 builds. - import python-sip-4.7-1mdv2008.0