2024-05-03 23:01:17 +02:00
|
|
|
#
|
|
|
|
# spec file for package python-sip6
|
|
|
|
#
|
2024-08-21 17:21:37 +02:00
|
|
|
# Copyright (c) 2024 SUSE LLC
|
2024-05-03 23:01:17 +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.
|
|
|
|
|
|
|
|
# Please submit bugfixes or comments via https://bugs.opensuse.org/
|
|
|
|
#
|
|
|
|
|
|
|
|
|
|
|
|
%{?sle15_python_module_pythons}
|
|
|
|
Name: python-sip6
|
2024-09-11 10:22:47 +02:00
|
|
|
Version: 6.8.3
|
2024-05-03 23:01:17 +02:00
|
|
|
Release: 0
|
|
|
|
Summary: A Python bindings generator for C/C++ libraries
|
|
|
|
License: GPL-2.0-only OR GPL-3.0-only OR SUSE-SIP
|
|
|
|
Group: Development/Libraries/Python
|
2024-09-11 10:22:47 +02:00
|
|
|
URL: https://github.com/Python-SIP/sip
|
2024-05-03 23:01:17 +02:00
|
|
|
Source0: https://files.pythonhosted.org/packages/source/s/sip/sip-%{version}.tar.gz
|
2024-08-21 17:21:37 +02:00
|
|
|
BuildRequires: %{python_module base >= 3.8}
|
2024-05-03 23:01:17 +02:00
|
|
|
BuildRequires: %{python_module packaging}
|
2024-08-21 17:21:37 +02:00
|
|
|
BuildRequires: %{python_module pip}
|
2024-05-03 23:01:17 +02:00
|
|
|
BuildRequires: %{python_module setuptools}
|
|
|
|
BuildRequires: %{python_module tomli if %python-base < 3.11}
|
2024-08-21 17:21:37 +02:00
|
|
|
BuildRequires: %{python_module wheel}
|
2024-05-03 23:01:17 +02:00
|
|
|
BuildRequires: fdupes
|
|
|
|
BuildRequires: python-rpm-macros
|
2024-08-21 17:21:37 +02:00
|
|
|
BuildArch: noarch
|
2024-05-03 23:01:17 +02:00
|
|
|
|
|
|
|
%python_subpackages
|
|
|
|
|
|
|
|
%description
|
|
|
|
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.
|
|
|
|
|
|
|
|
%package devel
|
|
|
|
Summary: A Python bindings generator for C/C++ libraries
|
|
|
|
Group: Development/Libraries/Python
|
|
|
|
Requires: c++_compiler
|
2024-08-21 17:21:37 +02:00
|
|
|
Requires: python-base >= 3.8
|
2024-05-03 23:01:17 +02:00
|
|
|
Requires: python-packaging
|
|
|
|
Requires: python-setuptools
|
|
|
|
Requires: (python-tomli if python-base < 3.11)
|
|
|
|
Requires(post): update-alternatives
|
2024-09-11 10:22:47 +02:00
|
|
|
Requires(postun): update-alternatives
|
2024-05-03 23:01:17 +02:00
|
|
|
Conflicts: python-sip-impl
|
|
|
|
# boo#1190441: remove erroneously created non-devel python3X-sip metapackages.
|
|
|
|
# In order not to remove SIPv4 and possible future packages, we have to explicitly
|
|
|
|
# name the only version which made it into Factory.
|
|
|
|
Obsoletes: python-sip = 6.1.1
|
|
|
|
Provides: python-sip-devel = %{version}-%{release}
|
|
|
|
Provides: python-sip-impl = %{version}-%{release}
|
|
|
|
|
|
|
|
%description devel
|
|
|
|
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.
|
|
|
|
|
|
|
|
This package contains all the developer tools you need to create your
|
|
|
|
own sip bindings.
|
|
|
|
|
|
|
|
%if 0%{?suse_version} > 1500
|
|
|
|
%package -n python-sip6-doc
|
|
|
|
Summary: A Python bindings generator for C/C++ libraries -- common documentation
|
|
|
|
Group: Development/Libraries/Python
|
|
|
|
Provides: %{python_module sip6-doc = %{version}-%{release}}
|
|
|
|
|
|
|
|
%description -n python-sip6-doc
|
|
|
|
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 documentation and example files.
|
|
|
|
%endif
|
|
|
|
|
|
|
|
%prep
|
|
|
|
%autosetup -p1 -n sip-%{version}
|
|
|
|
|
|
|
|
%build
|
2024-08-21 17:21:37 +02:00
|
|
|
%pyproject_wheel
|
2024-05-03 23:01:17 +02:00
|
|
|
|
|
|
|
%install
|
2024-08-21 17:21:37 +02:00
|
|
|
%pyproject_install
|
2024-05-03 23:01:17 +02:00
|
|
|
%python_clone -a %{buildroot}%{_bindir}/sip-build
|
|
|
|
%python_clone -a %{buildroot}%{_bindir}/sip-distinfo
|
|
|
|
%python_clone -a %{buildroot}%{_bindir}/sip-install
|
|
|
|
%python_clone -a %{buildroot}%{_bindir}/sip-module
|
|
|
|
%python_clone -a %{buildroot}%{_bindir}/sip-sdist
|
|
|
|
%python_clone -a %{buildroot}%{_bindir}/sip-wheel
|
2024-08-21 17:21:37 +02:00
|
|
|
%python_expand %fdupes %{buildroot}%{$python_sitelib}
|
2024-05-03 23:01:17 +02:00
|
|
|
%fdupes -s doc
|
|
|
|
|
2024-09-11 10:22:47 +02:00
|
|
|
%check
|
|
|
|
# No upstream tests available. Appease rpmlint no-%%check-section
|
|
|
|
|
2024-05-03 23:01:17 +02:00
|
|
|
%post devel
|
|
|
|
%python_install_alternative sip-build sip-distinfo sip-install sip-module sip-sdist sip-wheel
|
|
|
|
|
|
|
|
%postun devel
|
|
|
|
%python_uninstall_alternative sip-build
|
|
|
|
|
|
|
|
%files %{python_files devel}
|
|
|
|
%license LICENSE*
|
|
|
|
%python_alternative %{_bindir}/sip-build
|
|
|
|
%python_alternative %{_bindir}/sip-distinfo
|
|
|
|
%python_alternative %{_bindir}/sip-install
|
|
|
|
%python_alternative %{_bindir}/sip-module
|
|
|
|
%python_alternative %{_bindir}/sip-sdist
|
|
|
|
%python_alternative %{_bindir}/sip-wheel
|
2024-08-21 17:21:37 +02:00
|
|
|
%{python_sitelib}/sipbuild
|
|
|
|
%{python_sitelib}/sip-%{version}.dist-info
|
2024-05-03 23:01:17 +02:00
|
|
|
|
|
|
|
%if 0%{?suse_version} > 1500
|
|
|
|
%files -n python-sip6-doc
|
|
|
|
%license LICENSE*
|
|
|
|
%doc doc/
|
|
|
|
%endif
|
|
|
|
|
|
|
|
%changelog
|