python-qt5-sip/python-qt5-sip.spec
Benjamin Greiner f74a2a1694 - Add patch to fix license in setup.py and PKG-INFO files. I
contacted upstream (Phil Thompson) and he confirmed that
  pyqt6-sip is now licensed just as BSD-2-Clause and setup.py needs
  fixing. Considering the sources of pyqt6-sip and pyqt5-sip had
  the same license related changes, I added the following patch
  to fix this here too:
  * fix-license-in-setup_py.patch
- Rebase patch:
  * support-python3.6.patch

OBS-URL: https://build.opensuse.org/package/show/KDE:Qt:PyQt/python-qt5-sip?expand=0&rev=14
2025-01-22 12:31:18 +00:00

65 lines
2.1 KiB
RPMSpec

#
# spec file for package python-qt5-sip
#
# Copyright (c) 2021 SUSE LLC
#
# 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-qt5-sip
Version: 12.16.1
Release: 0
License: BSD-2-Clause
Summary: The sip module support for PyQt5
URL: https://github.com/Python-SIP/sip
Group: Development/Languages/Python
Source0: https://files.pythonhosted.org/packages/source/P/PyQt5-sip/pyqt5_sip-%{version}.tar.gz
Patch0: fix-license-in-setup_py.patch
# PATCH-FIX-OPENSUSE Set minimum python version to 3.6 to support Leap distribution
Patch100: support-python3.6.patch
BuildRequires: %{python_module devel >= 3.6}
BuildRequires: %{python_module setuptools >= 30.3}
BuildRequires: fdupes
BuildRequires: python-rpm-macros
Provides: python-PyQt5-sip = %{version}-%{release}
%python_subpackages
%description
The sip extension module provides support for the PyQt5 package.
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. For example, it is also used to
create wxPython, the Python bindings for the wxWidget toolkit.
%prep
%autosetup -p1 -n pyqt5_sip-%{version}
%build
%python_build
%install
%python_install
%python_expand %fdupes %{buildroot}%{$python_sitearch}
%files %{python_files}
%license LICENSE
%dir %{python_sitearch}/PyQt5
%{python_sitearch}/PyQt5/sip*
%{python_sitearch}/PyQt5_sip-%{version}*info
%changelog