[packages/sip5] - new

baggins baggins at pld-linux.org
Wed Jun 23 16:22:39 CEST 2021


commit f1c1a96a18b333c91edd23720e415819d61ad570
Author: Jan Rękorajski <baggins at pld-linux.org>
Date:   Wed Jun 23 16:22:19 2021 +0200

    - new

 python3.10.patch |  9 +++++++++
 sip5.spec        | 58 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++
 2 files changed, 67 insertions(+)
---
diff --git a/sip5.spec b/sip5.spec
new file mode 100644
index 0000000..98c3465
--- /dev/null
+++ b/sip5.spec
@@ -0,0 +1,58 @@
+Summary:	SIP - Python/C++ Bindings Generator
+Name:		sip5
+Version:	5.5.0
+Release:	1
+License:	GPL v2
+#Source0Download:        https://pypi.org/project/sip/
+Source0:	https://files.pythonhosted.org/packages/source/s/sip/sip-%{version}.tar.gz
+# Source0-md5:	657c52aff0a180fc0f481e210bc9a2ba
+URL:		https://www.riverbankcomputing.com/software/sip
+Patch0:		python3.10.patch
+BuildRequires:	python3-devel
+BuildRequires:	python3-setuptools
+BuildRoot:	%{tmpdir}/%{name}-%{version}-root-%(id -u -n)
+
+%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.
+
+%prep
+%setup -q -n sip-%{version}
+%patch0 -p1
+
+%build
+%py3_build
+
+%install
+rm -rf $RPM_BUILD_ROOT
+%py3_install
+
+%{__rm} -r $RPM_BUILD_ROOT%{py3_sitedir}/sipbuild/module/source
+
+%clean
+rm -rf $RPM_BUILD_ROOT
+
+%files
+%defattr(644,root,root,755)
+%doc README
+%attr(755,root,root) %{_bindir}/sip*
+%dir %{py3_sitedir}/sipbuild
+%{py3_sitedir}/sip-%{version}-py*.egg-info
+%{py3_sitedir}/sipbuild/*.py
+%attr(755,root,root) %{py3_sitedir}/sipbuild/*.so
+%{py3_sitedir}/sipbuild/__pycache__
+%dir %{py3_sitedir}/sipbuild/distinfo
+%{py3_sitedir}/sipbuild/distinfo/*.py
+%{py3_sitedir}/sipbuild/distinfo/__pycache__
+%dir %{py3_sitedir}/sipbuild/legacy
+%{py3_sitedir}/sipbuild/legacy/*.py
+%{py3_sitedir}/sipbuild/legacy/__pycache__
+%dir %{py3_sitedir}/sipbuild/module
+%{py3_sitedir}/sipbuild/module/*.py
+%{py3_sitedir}/sipbuild/module/__pycache__
+%dir %{py3_sitedir}/sipbuild/tools
+%{py3_sitedir}/sipbuild/tools/*.py
+%{py3_sitedir}/sipbuild/tools/__pycache__
diff --git a/python3.10.patch b/python3.10.patch
new file mode 100644
index 0000000..04c5b64
--- /dev/null
+++ b/python3.10.patch
@@ -0,0 +1,9 @@
+diff -up sip-5.5.0/sipbuild/py_versions.py.py310 sip-5.5.0/sipbuild/py_versions.py
+--- sip-5.5.0/sipbuild/py_versions.py.py310	2020-11-23 08:21:33.000000000 -0500
++++ sip-5.5.0/sipbuild/py_versions.py	2021-06-14 22:08:07.070489670 -0400
+@@ -23,4 +23,4 @@
+ 
+ # The first and last supported minor versions of Python v3.
+ FIRST_SUPPORTED_MINOR = 5
+-LAST_SUPPORTED_MINOR = 9
++LAST_SUPPORTED_MINOR = 10
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/sip5.git/commitdiff/f1c1a96a18b333c91edd23720e415819d61ad570



More information about the pld-cvs-commit mailing list