2011-08-16 14:28:43 +02:00
|
|
|
#
|
|
|
|
# spec file for package python3-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/
|
|
|
|
#
|
|
|
|
|
|
|
|
|
2011-08-19 15:23:37 +02:00
|
|
|
|
2011-08-16 14:28:43 +02:00
|
|
|
Name: python3-sip
|
2011-11-02 17:04:58 +01:00
|
|
|
Version: 4.13
|
|
|
|
Release: 2
|
2011-11-21 18:02:25 +01:00
|
|
|
License: GPL-2.0 or GPL-3.0 or SIP
|
|
|
|
Summary: SIP tool to use python sip bindings
|
|
|
|
%define rversion %{version}
|
2011-08-16 14:28:43 +02:00
|
|
|
Url: http://www.riverbankcomputing.com/software/sip/intro
|
2011-11-21 18:02:25 +01:00
|
|
|
Group: Development/Libraries/Python
|
2011-08-16 14:28:43 +02:00
|
|
|
Source0: sip-%{rversion}.tar.bz2
|
|
|
|
Patch0: disable-rpaths.diff
|
|
|
|
Patch1: build-compare.diff
|
|
|
|
BuildRequires: c++_compiler
|
2011-11-21 18:02:25 +01:00
|
|
|
BuildRequires: python3
|
|
|
|
BuildRequires: python3-devel
|
|
|
|
Requires(pre): python3
|
2011-09-10 11:46:00 +02:00
|
|
|
Requires: python3
|
2011-11-21 18:02:25 +01:00
|
|
|
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
2011-09-10 11:46:00 +02:00
|
|
|
|
|
|
|
%if 0%{?suse_version} > 1140
|
2011-11-21 18:02:25 +01:00
|
|
|
Requires(pre): python3-base
|
2011-09-10 11:46:00 +02:00
|
|
|
Requires: python3-base
|
|
|
|
%endif
|
2011-08-16 14:28:43 +02:00
|
|
|
|
2011-11-21 18:02:25 +01:00
|
|
|
%global py3_incdir %(python3 -c "import distutils.sysconfig; print(distutils.sysconfig.get_python_inc(True))" 2>/dev/null || echo PYTHON-NOT-FOUND)
|
|
|
|
%global python3_sitearch %(python3 -c "import distutils.sysconfig; print(distutils.sysconfig.get_python_lib(True))" 2>/dev/null || echo PYTHON-NOT-FOUND)
|
2011-08-16 14:28:43 +02: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.
|
|
|
|
|
|
|
|
%package devel
|
2011-08-17 15:51:09 +02:00
|
|
|
License: GPL-2.0 or GPL-3.0 or SIP
|
2011-08-16 14:28:43 +02:00
|
|
|
Summary: SIP tool to create python bindings
|
2011-11-21 18:02:25 +01:00
|
|
|
Group: Development/Libraries/Python
|
|
|
|
Requires: %{name} = %{version}
|
|
|
|
Requires: c++_compiler
|
|
|
|
Requires: python-sip-bin
|
|
|
|
Requires: python3-devel
|
2011-08-16 14:28:43 +02:00
|
|
|
Provides: python3-sip:/usr/bin/sip
|
|
|
|
|
|
|
|
%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.
|
|
|
|
|
2011-11-21 18:02:25 +01:00
|
|
|
This package contains all the developer tools you need to create your
|
2011-08-16 14:28:43 +02:00
|
|
|
own sip bindings.
|
|
|
|
|
|
|
|
%prep
|
|
|
|
%setup -q -n sip-%{rversion}
|
|
|
|
%patch0
|
|
|
|
%patch1
|
|
|
|
|
|
|
|
%build
|
2011-11-21 18:02:25 +01:00
|
|
|
export CFLAGS="%{optflags}"
|
|
|
|
export CXXFLAGS="%{optflags}"
|
2011-08-16 14:28:43 +02:00
|
|
|
export SUSE_ASNEEDED=0
|
2011-11-21 18:02:25 +01:00
|
|
|
python3 configure.py --debug CFLAGS+="%{optflags}" CXXFLAGS+="%{optflags}"
|
|
|
|
make %{?_smp_mflags}
|
2011-08-16 14:28:43 +02:00
|
|
|
|
|
|
|
%install
|
2011-11-21 18:02:25 +01:00
|
|
|
%make_install
|
|
|
|
mkdir -p %{buildroot}%{_datadir}/sip
|
2011-08-16 14:28:43 +02:00
|
|
|
sed -i 's/"doc" directory/"doc" directory of package %{name}-devel/' README
|
2011-08-29 13:40:46 +02:00
|
|
|
# sip executable is provided by python-sip-bin to avoid conflicts
|
2011-11-21 18:02:25 +01:00
|
|
|
rm %{buildroot}%{_bindir}/sip
|
2011-08-16 14:28:43 +02:00
|
|
|
|
|
|
|
%clean
|
2011-11-21 18:02:25 +01:00
|
|
|
rm -rf %{buildroot}
|
2011-08-16 14:28:43 +02:00
|
|
|
|
|
|
|
%files
|
|
|
|
%defattr(-,root,root)
|
|
|
|
%doc README
|
|
|
|
%{python3_sitearch}/sip.so
|
|
|
|
|
|
|
|
%files devel
|
|
|
|
%defattr(-,root,root)
|
|
|
|
%doc NEWS LICENSE doc
|
|
|
|
%{py3_incdir}/sip.h
|
|
|
|
%{python3_sitearch}/sipconfig.py
|
|
|
|
%{python3_sitearch}/sipdistutils.py
|
2011-11-21 18:02:25 +01:00
|
|
|
%{_datadir}/sip
|
2011-08-16 14:28:43 +02:00
|
|
|
|
|
|
|
%changelog
|