python-sip/python-sip.spec
Dirk Mueller 400062b4c4 - update to 4.13.1:
- Deprecation warnings can no longer be disabled.
  - Added the all_raise_py_exception argument to the %Module directive.
  - Added the /NoRaisesPyException/ function annotation.
  - Added the /PyName/ typedef annotation.
  - Class templates now allow super-classes to be defined as template
   arguments.
 - Added support for 'public' preceding the name of a class in a super-class
   list.
 - Added support for 'protected' and 'private' preceding the name of a class
   in a super-class list.  Any such super-class will be ignored.

OBS-URL: https://build.opensuse.org/package/show/KDE:Qt/python-sip?expand=0&rev=68
2011-12-23 12:58:15 +00:00

107 lines
3.1 KiB
RPMSpec

#
# spec file for package python-sip
#
# Copyright (c) 2011 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/
#
Name: python-sip
BuildRequires: c++_compiler
BuildRequires: python
BuildRequires: python-devel
Summary: SIP tool to use python sip bindings
License: GPL-2.0 or GPL-3.0 or SIP
Group: Development/Libraries/Python
Version: 4.13.1
Release: 0
%define rversion %version
Url: http://www.riverbankcomputing.com/software/sip/intro
BuildRoot: %{_tmppath}/%{name}-%{version}-build
Source0: http://www.riverbankcomputing.com/static/Downloads/sip4/sip-%{rversion}.tar.gz
Patch0: disable-rpaths.diff
Patch1: build-compare.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.
%package devel
Summary: SIP tool to create python bindings
Requires: %name = %version
Requires: c++_compiler python-devel python-sip-bin
%description devel
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.
This package contains all the developer tools you need to create your
own sip bindings.
%package bin
Summary: SIP tool to create python bindings
Provides: python-sip:/usr/bin/sip
%description bin
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.
This package contains the sip executable
%prep
%setup -q -n sip-%{rversion}
%patch0
%patch1
%build
export CFLAGS="$RPM_OPT_FLAGS"
export CXXFLAGS="$RPM_OPT_FLAGS"
export SUSE_ASNEEDED=0
python configure.py --debug CFLAGS+="$RPM_OPT_FLAGS" CXXFLAGS+="$RPM_OPT_FLAGS"
make %{?jobs:-j %jobs}
%install
make DESTDIR=$RPM_BUILD_ROOT install
mkdir -p $RPM_BUILD_ROOT/usr/share/sip
sed -i 's/"doc" directory/"doc" directory of package %{name}-devel/' README
%clean
rm -rf $RPM_BUILD_ROOT
%files
%defattr(-,root,root)
%doc README
%{py_sitedir}/sip.so
%files bin
%defattr(-,root,root)
/usr/bin/sip
%files devel
%defattr(-,root,root)
%doc NEWS LICENSE doc
%{py_incdir}/sip.h
%{py_sitedir}/sipconfig.py
%{py_sitedir}/sipdistutils.py
/usr/share/sip
%changelog