[packages/pyotherside] new

qboosh qboosh at pld-linux.org
Sun Feb 4 22:04:14 CET 2024


commit d242352b24a430913fbff7a37a37789150ca6e3d
Author: Jakub Bogusz <qboosh at pld-linux.org>
Date:   Sun Feb 4 21:57:45 2024 +0100

    new

 pyotherside.spec | 110 +++++++++++++++++++++++++++++++++++++++++++++++++++++++
 1 file changed, 110 insertions(+)
---
diff --git a/pyotherside.spec b/pyotherside.spec
new file mode 100644
index 0000000..f715396
--- /dev/null
+++ b/pyotherside.spec
@@ -0,0 +1,110 @@
+#
+# 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
+Name:		pyotherside
+# 1.2.x is the last with python2.7 support
+Version:	1.2.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
+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}
+BuildRequires:	sphinx-pdg-3
+%endif
+BuildRoot:	%{tmpdir}/%{name}-%{version}-root-%(id -u -n)
+
+%description
+A Qt 5 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
+poziomu QML.
+
+%package -n Qt5Qml-module-pyotherside
+Summary:	Asynchronous Python 3 Bindings for Qt 5
+Summary(pl.UTF-8):	Asynchroniczne wiązania Pythona 3 dla Qt 5
+Group:		Libraries
+Requires:	Qt5Qml >= 5.1.0
+
+%description -n Qt5Qml-module-pyotherside
+A Qt 5 QML Plugin that provides access to a Python 3 interpreter from
+QML.
+
+%description -n Qt5Qml-module-pyotherside -l pl.UTF-8
+Wtyczka Qt 5 Qml zapewniająca dostęp do interpretera Pythona 3 z
+poziomu QML.
+
+%package apidocs
+Summary:	API documentation for Python pyotherside module
+Summary(pl.UTF-8):	Dokumentacja API modułu Pythona pyotherside
+Group:		Documentation
+BuildArch:	noarch
+
+%description apidocs
+API documentation for Python pyotherside module.
+
+%description apidocs -l pl.UTF-8
+Dokumentacja API modułu Pythona pyotherside.
+
+%prep
+%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
+
+%{__make}
+
+%if %{with doc}
+%{__make} -C docs html \
+	SPHINXBUILD=sphinx-build-2
+%endif
+
+%install
+rm -rf $RPM_BUILD_ROOT
+
+%{__make} install \
+	INSTALL_ROOT=$RPM_BUILD_ROOT
+
+%clean
+rm -rf $RPM_BUILD_ROOT
+
+%files -n Qt5Qml-module-pyotherside
+%defattr(644,root,root,755)
+%doc LICENSE README
+%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/qmldir
+
+%if %{with doc}
+%files apidocs
+%defattr(644,root,root,755)
+%doc docs/_build/html/{_images,_static,*.html,*.js}
+%endif
================================================================

---- gitweb:

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



More information about the pld-cvs-commit mailing list