File python3-sip.spec of Package python3-sip

#
# spec file for package python-sip (Version 4.8.2)
#
# Copyright (c) 2009 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:           python3-sip
BuildRequires:  c++_compiler python python3-devel
License:        GPL v2 or later
Group:          Development/Libraries/Python
Summary:        SIP tool to create python bindings
Version:        4.8.2
Release:        1
%define rversion 4.8.2
Url:            http://www.riverbankcomputing.co.uk/software/sip/intro
BuildRoot:      %{_tmppath}/%{name}-%{version}-build
Source0:        sip-%{rversion}.tar.bz2
Patch0:         disable-rpaths.diff
%py3_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


%package devel
License:        GPL v2 or later
Group:          Development/Libraries/Python
Summary:        SIP tool to create python bindings
Requires:       %name = %version
# use python 2.x version of /usr/bin/sip
Requires:       python-sip-devel = %{version}

%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.


Authors:
--------
    Riverbank Computing Limited


%prep
%setup -q -n sip-%{rversion}
%patch0

%build
export CFLAGS="$RPM_OPT_FLAGS"
export CXXFLAGS="$RPM_OPT_FLAGS"
python3 configure.py
make %{?jobs:-j %jobs}

%install
make DESTDIR=$RPM_BUILD_ROOT install
# conflicts with python-sip
rm $RPM_BUILD_ROOT/usr/bin/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
%{py3_sitedir}/sip.so

%files devel
%defattr(-,root,root)
%doc NEWS ChangeLog LICENSE doc
%{py3_incdir}/sip.h
%{py3_sitedir}/sipconfig.py
%{py3_sitedir}/sipdistutils.py

%changelog
openSUSE Build Service is sponsored by