From 862e5bc3369a6cc69ab9348dd6aeeb09f34fea85 Mon Sep 17 00:00:00 2001 From: Scott Talbert Date: Jul 20 2021 23:59:15 +0000 Subject: Initial package. --- diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..5a04b17 --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +/sip-6.1.1.tar.gz diff --git a/python3.10.patch b/python3.10.patch new file mode 100644 index 0000000..8ca3ee5 --- /dev/null +++ b/python3.10.patch @@ -0,0 +1,9 @@ +diff -up sip-6.1.1/sipbuild/py_versions.py.py310 sip-6.1.1/sipbuild/py_versions.py +--- sip-6.1.1/sipbuild/py_versions.py.py310 2021-06-09 05:59:54.000000000 -0400 ++++ sip-6.1.1/sipbuild/py_versions.py 2021-07-08 18:39:25.600512154 -0400 +@@ -23,4 +23,4 @@ + + # The first and last supported minor versions of Python v3. + FIRST_SUPPORTED_MINOR = 6 +-LAST_SUPPORTED_MINOR = 9 ++LAST_SUPPORTED_MINOR = 10 diff --git a/sip6.spec b/sip6.spec new file mode 100644 index 0000000..d9f5913 --- /dev/null +++ b/sip6.spec @@ -0,0 +1,54 @@ +%global pypi_name sip + +Name: sip6 +Version: 6.1.1 +Release: 1%{?dist} +Summary: SIP - Python/C++ Bindings Generator +%py_provides python3-sip6 +# Remove when F34 is EOL +Provides: sip5%{?_isa} = %{version}-%{release} +Obsoletes: sip5 < 6.0.0 + +# code_generator/parser.{c.h} is GPLv2+ with exceptions (bison) +License: (GPLv2 or GPLv3) and (GPLv2+ with exceptions) +URL: https://www.riverbankcomputing.com/software/sip +Source0: %{pypi_source} +# Enable sip to work on Python 3.10 (already done upstream in next release) +Patch0: python3.10.patch + +BuildRequires: gcc +BuildRequires: python3-devel +BuildRequires: %{py3_dist setuptools toml} + +%global _description %{expand: +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.} + +%description %_description + +%prep +%autosetup -n %{pypi_name}-%{version} -p 1 + +%build +%py3_build + +%install +%py3_install + +%check +%py3_check_import sipbuild sipbuild.distinfo sipbuild.module sipbuild.tools + + +%files +%doc README +%license LICENSE LICENSE-GPL2 LICENSE-GPL3 +%{_bindir}/sip* +%{python3_sitearch}/sip-* +%{python3_sitearch}/sipbuild/ + +%changelog +* Thu Jul 08 2021 Scott Talbert - 6.1.1-1 +- Initial package. diff --git a/sources b/sources new file mode 100644 index 0000000..35a6864 --- /dev/null +++ b/sources @@ -0,0 +1 @@ +SHA512 (sip-6.1.1.tar.gz) = 94e413c3af4dcac9cbd1eef368f4e88c0b3bfe1ad8b97f4a6ec39af1a448fdf1d79f3c845cf8c9b0ed78b04f2a18d176d750a39d13a47f9122e575d034ed88b4