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
|
|
|
#
|
2021-07-05 19:54:11 +02:00
|
|
|
# Copyright (c) 2021 SUSE LLC
|
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.
|
|
|
|
|
2018-10-22 07:00:23 +02:00
|
|
|
# Please submit bugfixes or comments via https://bugs.opensuse.org/
|
2007-03-14 12:37:24 +01:00
|
|
|
#
|
|
|
|
|
2012-04-24 22:22:11 +02:00
|
|
|
|
2021-07-05 19:54:11 +02:00
|
|
|
%if 0%{?suse_version} <= 1500
|
|
|
|
%define sipN sip4
|
|
|
|
%else
|
|
|
|
%define sipN sip6
|
|
|
|
%endif
|
|
|
|
|
|
|
|
# query the default provider and assume that all installed python flavors have the same version
|
|
|
|
%define Nversion %(rpm -q --qf '%%{version}' --whatprovides python3-%{sipN}-devel)
|
|
|
|
%{?!python_module:%define python_module() python3-%{**}}
|
2020-11-05 11:42:18 +01:00
|
|
|
%define skip_python2 1
|
2021-07-05 19:54:11 +02:00
|
|
|
%define plainpython python
|
2007-03-14 12:37:24 +01:00
|
|
|
Name: python-sip
|
2021-07-05 19:54:11 +02:00
|
|
|
Version: %{Nversion}
|
2012-04-24 22:22:11 +02:00
|
|
|
Release: 0
|
2020-11-05 11:42:18 +01:00
|
|
|
Summary: A Python bindings generator for C/C++ libraries
|
2018-10-22 07:00:23 +02:00
|
|
|
License: GPL-2.0-only OR GPL-3.0-only OR SUSE-SIP
|
2007-03-14 12:37:24 +01:00
|
|
|
Group: Development/Libraries/Python
|
2019-02-13 10:56:44 +01:00
|
|
|
URL: https://www.riverbankcomputing.com/software/sip
|
2021-07-05 19:54:11 +02:00
|
|
|
Source0: README.SUSE
|
|
|
|
BuildRequires: %{python_module %{sipN}-devel}
|
2017-03-11 20:15:23 +01:00
|
|
|
BuildRequires: python-rpm-macros
|
2021-07-05 19:54:11 +02:00
|
|
|
BuildArch: noarch
|
|
|
|
%requires_eq python-%{sipN}
|
2017-03-11 20:15:23 +01:00
|
|
|
%python_subpackages
|
2007-03-14 12:37:24 +01:00
|
|
|
|
|
|
|
%description
|
2021-07-05 19:54:11 +02:00
|
|
|
SIP is a collection of tools that makes it very easy to create Python
|
|
|
|
bindings for C and C++ libraries. It was originally developed in 1998
|
|
|
|
to create PyQt, the Python bindings for the Qt toolkit, but can be used
|
|
|
|
to create bindings for any C or C++ library. For example it is also used
|
|
|
|
to generate wxPython, the Python bindings for wxWidgets.
|
2007-03-14 12:37:24 +01:00
|
|
|
|
2009-07-25 18:58:06 +02:00
|
|
|
%package devel
|
2020-11-16 15:44:31 +01:00
|
|
|
Summary: A Python bindings generator for C/C++ libraries
|
2012-02-20 13:20:38 +01:00
|
|
|
Group: Development/Libraries/Python
|
2021-07-05 19:54:11 +02:00
|
|
|
%requires_eq python-%{sipN}-devel
|
2009-07-25 18:58:06 +02:00
|
|
|
|
|
|
|
%description devel
|
2021-07-05 19:54:11 +02:00
|
|
|
SIP is a collection of tools that makes it very easy to create Python
|
|
|
|
bindings for C and C++ libraries. It was originally developed in 1998
|
|
|
|
to create PyQt, the Python bindings for the Qt toolkit, but can be used
|
|
|
|
to create bindings for any C or C++ library. For example it is also used
|
|
|
|
to generate wxPython, the Python bindings for wxWidgets.
|
2009-07-25 18:58:06 +02:00
|
|
|
|
2012-04-24 22:22:11 +02:00
|
|
|
This package contains all the developer tools you need to create your
|
2021-07-05 19:54:11 +02:00
|
|
|
own sip bindings in the currently default version. Look for
|
|
|
|
%{python_prefix}-sip<N>-devel, if you need to build a package with a
|
|
|
|
specific version of SIP v<N>.
|
2009-07-25 18:58:06 +02:00
|
|
|
|
2020-11-05 11:42:18 +01:00
|
|
|
%package -n python-sip-doc
|
|
|
|
Summary: A Python bindings generator for C/C++ libraries -- common documentation
|
2017-03-30 02:23:34 +02:00
|
|
|
Group: Development/Libraries/Python
|
2020-11-05 11:42:18 +01:00
|
|
|
Provides: %{python_module sip-doc = %{version}-%{release}}
|
2021-07-05 19:54:11 +02:00
|
|
|
%requires_eq %{plainpython}-%{sipN}-doc
|
2017-03-11 20:15:23 +01:00
|
|
|
|
2020-11-05 11:42:18 +01:00
|
|
|
%description -n python-sip-doc
|
2017-03-11 20:15:23 +01:00
|
|
|
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.
|
|
|
|
|
2021-07-05 19:54:11 +02:00
|
|
|
This package contains the documentation and example files in the
|
|
|
|
currently default version. Look for %{python_prefix}-sip<N>-devel,
|
|
|
|
if you need to build a package with a specific version of SIP v<N>.
|
2017-03-11 20:15:23 +01:00
|
|
|
|
2007-03-14 12:37:24 +01:00
|
|
|
%prep
|
2021-07-05 19:54:11 +02:00
|
|
|
%setup -q -T -c
|
|
|
|
cp %{SOURCE0} .
|
2007-03-14 12:37:24 +01:00
|
|
|
|
2017-03-11 20:15:23 +01:00
|
|
|
%build
|
2021-07-05 19:54:11 +02:00
|
|
|
:
|
2018-10-22 07:00:23 +02:00
|
|
|
|
2017-03-11 20:15:23 +01:00
|
|
|
%install
|
2021-07-05 19:54:11 +02:00
|
|
|
:
|
|
|
|
|
|
|
|
%files %{python_files}
|
|
|
|
%doc README.SUSE
|
2009-07-25 18:58:06 +02:00
|
|
|
|
2017-03-11 20:15:23 +01:00
|
|
|
%files %{python_files devel}
|
2021-07-05 19:54:11 +02:00
|
|
|
%doc README.SUSE
|
2020-11-05 11:42:18 +01:00
|
|
|
|
2020-11-16 23:00:20 +01:00
|
|
|
%files -n python-sip-doc
|
2021-07-05 19:54:11 +02:00
|
|
|
%doc README.SUSE
|
2017-03-11 20:15:23 +01:00
|
|
|
|
2007-04-12 18:15:15 +02:00
|
|
|
%changelog
|