# # spec file for package python-sip (Version 4.7) # # Copyright (c) 2007 SUSE LINUX Products GmbH, Nuernberg, Germany. # This file and all modifications and additions to the pristine # package are under the same license as the package itself. # # Please submit bugfixes or comments via http://bugs.opensuse.org/ # # norootforbuild Name: python-sip BuildRequires: c++_compiler python License: GPL v2 or later Group: Development/Libraries/Python Summary: SIP tool to create python bindings Version: 4.7 Release: 5 URL: http://www.riverbankcomputing.co.uk/sip/ BuildRoot: %{_tmppath}/%{name}-%{version}-build Source0: sip-%{version}.tar.bz2 Patch0: disable-rpaths.diff Conflicts: python-qt < 4.0.0 %py_requires %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. Authors: -------- RIVERBANK COMPUTING LIMITED %prep %setup -q -n sip-%{version} %patch0 %build export CFLAGS="$RPM_OPT_FLAGS" export CXXFLAGS="$RPM_OPT_FLAGS" python configure.py make %{?jobs:-j %jobs} %install make DESTDIR=$RPM_BUILD_ROOT install mkdir -p $RPM_BUILD_ROOT/usr/share/sip %clean rm -rf $RPM_BUILD_ROOT %files %defattr(-,root,root) %doc ChangeLog README TODO /usr/bin/sip %{py_incdir}/sip.h %{py_sitedir}/sip.so %{py_sitedir}/sipconfig.py %{py_sitedir}/sipdistutils.py /usr/share/sip %changelog * Sat Aug 11 2007 - dmueller@suse.de - add conflict against python-qt 3.x versions * Fri Aug 03 2007 - dmueller@suse.de - update to 4.7: * Added %%PickleCode to allow handwritten code to pickle a wrapped C++ instance or C structure. * Added %%CompositeModule to create modules that are composites of ordinary modules. * Added %%ConsolidatedModule (and the -p command line option) to create modules that contain all the wrapper code on behalf of ordinary modules. * Added the dump() function to the sip module. * Added sipTransferBreak() to the SIP API. * Added support for /Transfer/ as a function annotation. * Wed Apr 11 2007 - dmueller@suse.de - update to 4.6: * Added support for wchar_t. * The -g command line option releases the GIL whenever a call is made to the * wrapped library. * Added the /HoldGIL/ annotation to explicitly retain the GIL when calling a particular function in the wrapped library. * Added sipFindClass() and sipFindNamedEnum() to the public API. */TransferThis/ may be specified more than once. * Added support for __truediv__ and __itruediv__. * Fri Jan 26 2007 - dmueller@suse.de - Initial package (4.5.2)