[packages/pyotherside] - updated to 1.6.0 (python2 support dropped, qt6 support available)

qboosh qboosh at pld-linux.org
Sun Feb 4 22:12:57 CET 2024


commit cebf9cd9317fea49bd17675e4a15b83550465b69
Author: Jakub Bogusz <qboosh at pld-linux.org>
Date:   Sun Feb 4 22:07:23 2024 +0100

    - updated to 1.6.0 (python2 support dropped, qt6 support available)

 pyotherside.spec | 33 +++++++++++----------------------
 1 file changed, 11 insertions(+), 22 deletions(-)
---
diff --git a/pyotherside.spec b/pyotherside.spec
index f715396..b863f85 100644
--- a/pyotherside.spec
+++ b/pyotherside.spec
@@ -1,29 +1,24 @@
+# TODO: build also Qt6 module
 #
 # Conditional build:
 %bcond_without	doc	# API documentation
-%bcond_with	python2 # build with python2 instead of python3
 
-Summary:	Asynchronous Python 3 Bindings for Qt 5
-Summary(pl.UTF-8):	Asynchroniczne wiązania Pythona 3 dla Qt 5
+Summary:	Asynchronous Python 3 Bindings for Qt 5 and Qt 6
+Summary(pl.UTF-8):	Asynchroniczne wiązania Pythona 3 dla Qt 5 i Qt 6
 Name:		pyotherside
-# 1.2.x is the last with python2.7 support
-Version:	1.2.0
+Version:	1.6.0
 Release:	1
 License:	MIT
 Group:		Libraries
 #Source0Download: https://github.com/thp/pyotherside/tags
 Source0:	https://github.com/thp/pyotherside/archive/%{version}/pyotherside-%{version}.tar.gz
-# Source0-md5:	16cd3ef56667717f56997fce5d7d1cc9
+# Source0-md5:	240fa11fbb774538a3e6f875f1f6d638
 URL:		https://github.com/thp/pyotherside/
 BuildRequires:	Qt5Core-devel >= 5.1.0
 BuildRequires:	Qt5Gui-devel >= 5.1.0
 BuildRequires:	Qt5Qml-devel >= 5.1.0
 BuildRequires:	Qt5Quick-devel >= 5.1.0
-%if %{with python2}
-BuildRequires:	python-devel >= 1:2.7
-%else
 BuildRequires:	python3-devel >= 1:3.3
-%endif
 BuildRequires:	qt5-qmake >= 5.1.0
 BuildRequires:	rpm-build >= 4.6
 %if %{with doc}
@@ -32,11 +27,11 @@ BuildRequires:	sphinx-pdg-3
 BuildRoot:	%{tmpdir}/%{name}-%{version}-root-%(id -u -n)
 
 %description
-A Qt 5 QML Plugin that provides access to a Python 3 interpreter from
+A Qt QML Plugin that provides access to a Python 3 interpreter from
 QML.
 
 %description -l pl.UTF-8
-Wtyczka Qt 5 Qml zapewniająca dostęp do interpretera Pythona 3 z
+Wtyczka Qt Qml zapewniająca dostęp do interpretera Pythona 3 z
 poziomu QML.
 
 %package -n Qt5Qml-module-pyotherside
@@ -69,20 +64,13 @@ Dokumentacja API modułu Pythona pyotherside.
 %setup -q -n pyotherside-%{version}
 
 %build
-qmake-qt5 \
-%if %{with python2}
-	PYTHON_CONFIG=python2-config \
-%else
-%if "%{_ver_ge '%{py3_ver}' '3.8'}" == "1"
-	PYTHON_CONFIG="python3-config --embed" \
-%endif
-%endif
+qmake-qt5
 
 %{__make}
 
 %if %{with doc}
 %{__make} -C docs html \
-	SPHINXBUILD=sphinx-build-2
+	SPHINXBUILD=sphinx-build-3
 %endif
 
 %install
@@ -96,11 +84,12 @@ rm -rf $RPM_BUILD_ROOT
 
 %files -n Qt5Qml-module-pyotherside
 %defattr(644,root,root,755)
-%doc LICENSE README
+%doc LICENSE README.md
 %dir %{_libdir}/qt5/qml/io
 %dir %{_libdir}/qt5/qml/io/thp
 %dir %{_libdir}/qt5/qml/io/thp/pyotherside
 %attr(755,root,root) %{_libdir}/qt5/qml/io/thp/pyotherside/libpyothersideplugin.so
+%{_libdir}/qt5/qml/io/thp/pyotherside/pyotherside.qmltypes
 %{_libdir}/qt5/qml/io/thp/pyotherside/qmldir
 
 %if %{with doc}
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/pyotherside.git/commitdiff/cebf9cd9317fea49bd17675e4a15b83550465b69



More information about the pld-cvs-commit mailing list