Sync from SUSE:SLFO:Main python-sip6 revision 185e3c05dc7560008aa84d347b0c9067

This commit is contained in:
Adrian Schröter 2024-05-03 23:01:17 +02:00
commit 6f964064bc
5 changed files with 1590 additions and 0 deletions

23
.gitattributes vendored Normal file
View File

@ -0,0 +1,23 @@
## Default LFS
*.7z filter=lfs diff=lfs merge=lfs -text
*.bsp filter=lfs diff=lfs merge=lfs -text
*.bz2 filter=lfs diff=lfs merge=lfs -text
*.gem filter=lfs diff=lfs merge=lfs -text
*.gz filter=lfs diff=lfs merge=lfs -text
*.jar filter=lfs diff=lfs merge=lfs -text
*.lz filter=lfs diff=lfs merge=lfs -text
*.lzma filter=lfs diff=lfs merge=lfs -text
*.obscpio filter=lfs diff=lfs merge=lfs -text
*.oxt filter=lfs diff=lfs merge=lfs -text
*.pdf filter=lfs diff=lfs merge=lfs -text
*.png filter=lfs diff=lfs merge=lfs -text
*.rpm filter=lfs diff=lfs merge=lfs -text
*.tbz filter=lfs diff=lfs merge=lfs -text
*.tbz2 filter=lfs diff=lfs merge=lfs -text
*.tgz filter=lfs diff=lfs merge=lfs -text
*.ttf filter=lfs diff=lfs merge=lfs -text
*.txz filter=lfs diff=lfs merge=lfs -text
*.whl filter=lfs diff=lfs merge=lfs -text
*.xz filter=lfs diff=lfs merge=lfs -text
*.zip filter=lfs diff=lfs merge=lfs -text
*.zst filter=lfs diff=lfs merge=lfs -text

1340
python-sip6.changes Normal file

File diff suppressed because it is too large Load Diff

134
python-sip6.spec Normal file
View File

@ -0,0 +1,134 @@
#
# spec file for package python-sip6
#
# Copyright (c) 2023 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-sip6
Version: 6.7.12
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
URL: https://www.riverbankcomputing.com/software/sip
Source0: https://files.pythonhosted.org/packages/source/s/sip/sip-%{version}.tar.gz
Patch0: support-python3.6.patch
BuildRequires: %{python_module devel >= 3.6}
BuildRequires: %{python_module packaging}
BuildRequires: %{python_module ply}
BuildRequires: %{python_module setuptools}
BuildRequires: %{python_module tomli if %python-base < 3.11}
BuildRequires: c++_compiler
BuildRequires: fdupes
BuildRequires: python-rpm-macros
%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
Requires: python-devel >= 3.6
%if %{python_version_nodots} <= 36
Requires: python-dataclasses
%endif
Requires: python-packaging
Requires: python-ply
Requires: python-setuptools
Requires: (python-tomli if python-base < 3.11)
Requires(post): update-alternatives
Requires(postun):update-alternatives
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
%python_build
%install
%python_install
%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
%python_expand %fdupes %{buildroot}%{$python_sitearch}
%fdupes -s doc
%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
%{python_sitearch}/sipbuild
%{python_sitearch}/sip-%{version}*-info
%if 0%{?suse_version} > 1500
%files -n python-sip6-doc
%license LICENSE*
%doc doc/
%endif
%changelog

BIN
sip-6.7.12.tar.gz (Stored with Git LFS) Normal file

Binary file not shown.

90
support-python3.6.patch Normal file
View File

@ -0,0 +1,90 @@
Index: sip-6.7.12/PKG-INFO
===================================================================
--- sip-6.7.12.orig/PKG-INFO
+++ sip-6.7.12/PKG-INFO
@@ -9,7 +9,7 @@ License: SIP
Platform: X11
Platform: macOS
Platform: Windows
-Requires-Python: >=3.7
+Requires-Python: >=3.6
License-File: LICENSE
License-File: LICENSE-GPL2
License-File: LICENSE-GPL3
Index: sip-6.7.12/setup.py
===================================================================
--- sip-6.7.12.orig/setup.py
+++ sip-6.7.12/setup.py
@@ -50,7 +50,7 @@ setup(
name='sip',
version=version,
license='SIP',
- python_requires='>=3.7',
+ python_requires='>=3.6',
install_requires=['packaging', 'ply', 'setuptools',
'tomli;python_version<"3.11"'],
packages=find_packages(),
Index: sip-6.7.12/sipbuild/py_versions.py
===================================================================
--- sip-6.7.12.orig/sipbuild/py_versions.py
+++ sip-6.7.12/sipbuild/py_versions.py
@@ -22,4 +22,4 @@
# The oldest supported minor version of Python v3.
-OLDEST_SUPPORTED_MINOR = 7
+OLDEST_SUPPORTED_MINOR = 6
Index: sip-6.7.12/sipbuild/module/source/12/setup.py.in
===================================================================
--- sip-6.7.12.orig/sipbuild/module/source/12/setup.py.in
+++ sip-6.7.12/sipbuild/module/source/12/setup.py.in
@@ -40,6 +40,6 @@ setup(
name='@SIP_MODULE_PROJECT_NAME@',
version='@SIP_MODULE_VERSION@',
license='SIP',
- python_requires='>=3.7',
+ python_requires='>=3.6',
ext_modules=[module]
)
Index: sip-6.7.12/sipbuild/module/source/12/sip.h.in
===================================================================
--- sip-6.7.12.orig/sipbuild/module/source/12/sip.h.in
+++ sip-6.7.12/sipbuild/module/source/12/sip.h.in
@@ -24,8 +24,8 @@
#include <Python.h>
/* Sanity check on the Python version. */
-#if PY_VERSION_HEX < 0x03070000
-#error "This version of @_SIP_MODULE_FQ_NAME@ requires Python v3.7 or later"
+#if PY_VERSION_HEX < 0x03060000
+#error "This version of @_SIP_MODULE_FQ_NAME@ requires Python v3.6 or later"
#endif
Index: sip-6.7.12/sipbuild/module/source/13/setup.py.in
===================================================================
--- sip-6.7.12.orig/sipbuild/module/source/13/setup.py.in
+++ sip-6.7.12/sipbuild/module/source/13/setup.py.in
@@ -40,6 +40,6 @@ setup(
name='@SIP_MODULE_PROJECT_NAME@',
version='@SIP_MODULE_VERSION@',
license='SIP',
- python_requires='>=3.7',
+ python_requires='>=3.6',
ext_modules=[module]
)
Index: sip-6.7.12/sipbuild/module/source/13/sip.h.in
===================================================================
--- sip-6.7.12.orig/sipbuild/module/source/13/sip.h.in
+++ sip-6.7.12/sipbuild/module/source/13/sip.h.in
@@ -24,8 +24,8 @@
#include <Python.h>
/* Sanity check on the Python version. */
-#if PY_VERSION_HEX < 0x03070000
-#error "This version of @_SIP_MODULE_FQ_NAME@ requires Python v3.7 or later"
+#if PY_VERSION_HEX < 0x03060000
+#error "This version of @_SIP_MODULE_FQ_NAME@ requires Python v3.6 or later"
#endif