File python-sip.spec of Package python-sip

#
# spec file for package python-sip (Version 4.7.7)
#
# Copyright (c) 2008 SUSE LINUX Products GmbH, Nuernberg, Germany.
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
# upon. The license for this file, and modifications and additions to the
# file, is the same license as for the pristine package itself (unless the
# license for the pristine package is not an Open Source License, in which
# case the license is the MIT License). An "Open Source License" is a
# license that conforms to the Open Source Definition (Version 1.9)
# published by the Open Source Initiative.

# Please submit bugfixes or comments via http://bugs.opensuse.org/
#

# norootforbuild


Name:           python-sip
BuildRequires:  c++_compiler python python-devel
License:        GPL v2 or later
Group:          Development/Libraries/Python
Summary:        SIP tool to create python bindings
Version:        4.7.7
Release:        1
Url:            http://www.riverbankcomputing.co.uk/sip/
BuildRoot:      %{_tmppath}/%{name}-%{version}-build
Source0:        sip-%{version}.tar.bz2
Patch0:         disable-rpaths.diff
%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
* Sun Aug 10 2008 dmueller@suse.de
- update to 4.7.7:
  * C++ structs are now properly handled as a class with
  a default public  section
  * sip.dump() now includes the objects first child wrapper
* Tue May 27 2008 dmueller@suse.de
- update to 4.7.6:
  * generator fixes for being able to bind Qt 4.4
* Wed Feb 13 2008 dmueller@suse.de
- update to 4.7.4:
  * The build system handles the directory structure used by Leopard's Python
  installation.
  * Added support for /Transfer/ as a constructor ann
* Thu Dec 13 2007 dmueller@suse.de
- update to 4.7.3:
  * Added support for automatically generating missing complementary
  comparision operators.  Note that this introduces a potential compatibility
  problem - see the documentation for details.
  * Added the SingleShot argument annotation.
  * Added the TransferThis function annotation.
* Mon Oct 01 2007 stbinner@suse.de
- update to 4.7.1: minor bugfixes
* Fri Aug 17 2007 dmueller@suse.de
- remove conflict as it is now common base for qt 3.x
  and qt 4.x (#300041)
* Sun Aug 12 2007 dmueller@suse.de
- %%py_requires no longer has buildrequires
* 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)
openSUSE Build Service is sponsored by