2007-03-14 12:37:24 +01:00
|
|
|
#
|
2011-05-02 18:56:25 +02:00
|
|
|
# spec file for package python-sip
|
2007-03-14 12:37:24 +01:00
|
|
|
#
|
2011-01-07 10:37:01 +01:00
|
|
|
# Copyright (c) 2011 SUSE LINUX Products GmbH, Nuernberg, Germany.
|
2007-03-14 12:37:24 +01:00
|
|
|
#
|
2008-08-10 23:37:59 +02:00
|
|
|
# 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.
|
|
|
|
|
2007-03-14 12:37:24 +01:00
|
|
|
# Please submit bugfixes or comments via http://bugs.opensuse.org/
|
|
|
|
#
|
|
|
|
|
|
|
|
# norootforbuild
|
|
|
|
|
2008-02-15 01:39:15 +01:00
|
|
|
|
2007-03-14 12:37:24 +01:00
|
|
|
Name: python-sip
|
2007-08-13 00:18:13 +02:00
|
|
|
BuildRequires: c++_compiler python python-devel
|
2011-08-17 15:51:09 +02:00
|
|
|
License: GPL-2.0 or GPL-3.0 or SIP
|
2007-03-14 12:37:24 +01:00
|
|
|
Group: Development/Libraries/Python
|
2009-07-25 18:58:06 +02:00
|
|
|
Summary: SIP tool to use python sip bindings
|
2011-08-16 14:28:43 +02:00
|
|
|
Version: 4.12.4
|
2010-10-03 22:37:36 +02:00
|
|
|
Release: 1
|
2009-06-18 01:39:36 +02:00
|
|
|
%define rversion %version
|
2009-07-25 18:58:06 +02:00
|
|
|
Url: http://www.riverbankcomputing.com/software/sip/intro
|
2007-03-14 12:37:24 +01:00
|
|
|
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
2009-05-19 01:29:44 +02:00
|
|
|
Source0: sip-%{rversion}.tar.bz2
|
2007-04-12 18:15:15 +02:00
|
|
|
Patch0: disable-rpaths.diff
|
2011-08-16 14:28:43 +02:00
|
|
|
Patch1: build-compare.diff
|
2007-08-12 11:44:10 +02:00
|
|
|
%py_requires
|
2007-03-14 12:37:24 +01:00
|
|
|
|
|
|
|
%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.
|
|
|
|
|
2009-07-25 18:58:06 +02:00
|
|
|
%package devel
|
2011-08-17 15:51:09 +02:00
|
|
|
License: GPL-2.0 or GPL-3.0 or SIP
|
2009-07-25 18:58:06 +02:00
|
|
|
Group: Development/Libraries/Python
|
|
|
|
Summary: SIP tool to create python bindings
|
|
|
|
Requires: %name = %version
|
2011-08-29 13:40:46 +02:00
|
|
|
Requires: c++_compiler python-devel python-sip-bin
|
2009-07-25 18:58:06 +02:00
|
|
|
|
|
|
|
%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.
|
|
|
|
|
2011-08-29 13:40:46 +02:00
|
|
|
|
|
|
|
%package bin
|
|
|
|
License: GPL-2.0 or GPL-3.0 or SIP
|
|
|
|
Group: Development/Libraries/Python
|
|
|
|
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
|
|
|
|
|
2007-03-14 12:37:24 +01:00
|
|
|
%prep
|
2009-05-19 01:29:44 +02:00
|
|
|
%setup -q -n sip-%{rversion}
|
2007-04-12 18:15:15 +02:00
|
|
|
%patch0
|
2011-08-16 14:28:43 +02:00
|
|
|
%patch1
|
2007-03-14 12:37:24 +01:00
|
|
|
|
|
|
|
%build
|
|
|
|
export CFLAGS="$RPM_OPT_FLAGS"
|
|
|
|
export CXXFLAGS="$RPM_OPT_FLAGS"
|
2009-08-31 21:21:34 +02:00
|
|
|
export SUSE_ASNEEDED=0
|
2009-11-27 13:39:21 +01:00
|
|
|
python configure.py --debug CFLAGS+="$RPM_OPT_FLAGS" CXXFLAGS+="$RPM_OPT_FLAGS"
|
2007-03-14 12:37:24 +01:00
|
|
|
make %{?jobs:-j %jobs}
|
|
|
|
|
|
|
|
%install
|
|
|
|
make DESTDIR=$RPM_BUILD_ROOT install
|
|
|
|
mkdir -p $RPM_BUILD_ROOT/usr/share/sip
|
2009-07-25 18:58:06 +02:00
|
|
|
sed -i 's/"doc" directory/"doc" directory of package %{name}-devel/' README
|
2007-03-14 12:37:24 +01:00
|
|
|
|
|
|
|
%clean
|
|
|
|
rm -rf $RPM_BUILD_ROOT
|
|
|
|
|
|
|
|
%files
|
|
|
|
%defattr(-,root,root)
|
2009-07-25 18:58:06 +02:00
|
|
|
%doc README
|
|
|
|
%{py_sitedir}/sip.so
|
|
|
|
|
2011-08-29 13:40:46 +02:00
|
|
|
%files bin
|
|
|
|
%defattr(-,root,root)
|
|
|
|
/usr/bin/sip
|
|
|
|
|
2009-07-25 18:58:06 +02:00
|
|
|
%files devel
|
|
|
|
%defattr(-,root,root)
|
2010-03-31 19:52:30 +02:00
|
|
|
%doc NEWS LICENSE doc
|
2007-03-14 12:37:24 +01:00
|
|
|
%{py_incdir}/sip.h
|
|
|
|
%{py_sitedir}/sipconfig.py
|
|
|
|
%{py_sitedir}/sipdistutils.py
|
|
|
|
/usr/share/sip
|
2007-12-13 20:23:56 +01:00
|
|
|
|
2007-04-12 18:15:15 +02:00
|
|
|
%changelog
|