1 # TODO: build also Qt6 module
4 %bcond_without doc # API documentation
6 Summary: Asynchronous Python 3 Bindings for Qt 5 and Qt 6
7 Summary(pl.UTF-8): Asynchroniczne wiązania Pythona 3 dla Qt 5 i Qt 6
13 #Source0Download: https://github.com/thp/pyotherside/tags
14 Source0: https://github.com/thp/pyotherside/archive/%{version}/pyotherside-%{version}.tar.gz
15 # Source0-md5: 240fa11fbb774538a3e6f875f1f6d638
16 URL: https://github.com/thp/pyotherside/
17 BuildRequires: Qt5Core-devel >= 5.1.0
18 BuildRequires: Qt5Gui-devel >= 5.1.0
19 BuildRequires: Qt5Qml-devel >= 5.1.0
20 BuildRequires: Qt5Quick-devel >= 5.1.0
21 BuildRequires: python3-devel >= 1:3.3
22 BuildRequires: qt5-qmake >= 5.1.0
23 BuildRequires: rpm-build >= 4.6
25 BuildRequires: sphinx-pdg-3
27 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
30 A Qt QML Plugin that provides access to a Python 3 interpreter from
33 %description -l pl.UTF-8
34 Wtyczka Qt Qml zapewniająca dostęp do interpretera Pythona 3 z
37 %package -n Qt5Qml-module-pyotherside
38 Summary: Asynchronous Python 3 Bindings for Qt 5
39 Summary(pl.UTF-8): Asynchroniczne wiązania Pythona 3 dla Qt 5
41 Requires: Qt5Qml >= 5.1.0
43 %description -n Qt5Qml-module-pyotherside
44 A Qt 5 QML Plugin that provides access to a Python 3 interpreter from
47 %description -n Qt5Qml-module-pyotherside -l pl.UTF-8
48 Wtyczka Qt 5 Qml zapewniająca dostęp do interpretera Pythona 3 z
52 Summary: API documentation for Python pyotherside module
53 Summary(pl.UTF-8): Dokumentacja API modułu Pythona pyotherside
58 API documentation for Python pyotherside module.
60 %description apidocs -l pl.UTF-8
61 Dokumentacja API modułu Pythona pyotherside.
64 %setup -q -n pyotherside-%{version}
72 %{__make} -C docs html \
73 SPHINXBUILD=sphinx-build-3
77 rm -rf $RPM_BUILD_ROOT
80 INSTALL_ROOT=$RPM_BUILD_ROOT
83 rm -rf $RPM_BUILD_ROOT
85 %files -n Qt5Qml-module-pyotherside
86 %defattr(644,root,root,755)
87 %doc LICENSE README.md
88 %dir %{_libdir}/qt5/qml/io
89 %dir %{_libdir}/qt5/qml/io/thp
90 %dir %{_libdir}/qt5/qml/io/thp/pyotherside
91 %attr(755,root,root) %{_libdir}/qt5/qml/io/thp/pyotherside/libpyothersideplugin.so
92 %{_libdir}/qt5/qml/io/thp/pyotherside/pyotherside.qmltypes
93 %{_libdir}/qt5/qml/io/thp/pyotherside/qmldir
97 %defattr(644,root,root,755)
98 %doc docs/_build/html/{_images,_static,*.html,*.js}