]>
Commit | Line | Data |
---|---|---|
26d1f228 JR |
1 | %define module PyQt6 |
2 | # minimal required sip version | |
3 | %define sip_ver 6.4 | |
4 | # last qt version covered by these bindings (minimal required is currently 5.0.0) | |
5 | %define qt_ver %{version} | |
6 | ||
7 | Summary: Python bindings for the Qt6 toolkit | |
8 | Summary(pl.UTF-8): Wiązania Pythona do toolkitu Qt6 | |
9 | Name: python3-%{module} | |
7a4e00b9 | 10 | Version: 6.5.2 |
af8efe71 | 11 | Release: 1 |
26d1f228 JR |
12 | License: GPL v3 |
13 | Group: Libraries/Python | |
14 | #Source0Download: https://pypi.org/simple/PyQt6/ | |
15 | Source0: https://files.pythonhosted.org/packages/source/P/PyQt6/PyQt6-%{version}.tar.gz | |
7a4e00b9 | 16 | # Source0-md5: 2615b855c03cbf1454181bae7a5bf833 |
26d1f228 JR |
17 | URL: https://riverbankcomputing.com/software/pyqt/intro |
18 | # most of BR comes from configure.py | |
19 | BuildRequires: Qt6Bluetooth-devel >= %{qt_ver} | |
20 | BuildRequires: Qt6Core-devel >= %{qt_ver} | |
21 | BuildRequires: Qt6DBus-devel >= %{qt_ver} | |
22 | BuildRequires: Qt6Designer-devel >= %{qt_ver} | |
23 | BuildRequires: Qt6Gui-devel >= %{qt_ver} | |
24 | BuildRequires: Qt6Help-devel >= %{qt_ver} | |
25 | BuildRequires: Qt6Multimedia-devel >= %{qt_ver} | |
26 | BuildRequires: Qt6MultimediaWidgets-devel >= %{qt_ver} | |
27 | BuildRequires: Qt6Network-devel >= %{qt_ver} | |
28 | BuildRequires: Qt6Nfc-devel >= %{qt_ver} | |
29 | BuildRequires: Qt6OpenGL-devel >= %{qt_ver} | |
294b2955 | 30 | BuildRequires: Qt6Positioning-devel >= %{qt_ver} |
26d1f228 JR |
31 | BuildRequires: Qt6PrintSupport-devel |
32 | BuildRequires: Qt6RemoteObjects-devel >= %{qt_ver} | |
33 | BuildRequires: Qt6Qml-devel >= %{qt_ver} | |
34 | BuildRequires: Qt6Quick-devel >= %{qt_ver} | |
35 | BuildRequires: Qt6Quick3D-devel >= %{qt_ver} | |
36 | BuildRequires: Qt6Sensors-devel >= %{qt_ver} | |
37 | BuildRequires: Qt6SerialPort-devel >= %{qt_ver} | |
38 | BuildRequires: Qt6Sql-devel >= %{qt_ver} | |
39 | BuildRequires: Qt6Svg-devel >= %{qt_ver} | |
40 | BuildRequires: Qt6Test-devel >= %{qt_ver} | |
41 | BuildRequires: Qt6UiTools-devel >= %{qt_ver} | |
42 | BuildRequires: Qt6WebChannel-devel >= %{qt_ver} | |
43 | BuildRequires: Qt6WebSockets-devel >= %{qt_ver} | |
44 | BuildRequires: Qt6Widgets-devel >= %{qt_ver} | |
45 | BuildRequires: Qt6Xml-devel >= %{qt_ver} | |
46 | BuildRequires: dbus-devel >= 1 | |
47 | BuildRequires: pkgconfig | |
48 | BuildRequires: python3-PyQt-builder | |
49 | BuildRequires: python-dbus-devel >= 0.80 | |
50 | BuildRequires: python3-dbus >= 0.80 | |
8f530cd5 | 51 | BuildRequires: python3-devel |
ff20d881 | 52 | BuildRequires: python3-modules |
26d1f228 | 53 | BuildRequires: qt6-build >= %{qt_ver} |
69f3dd0f | 54 | BuildRequires: rpm-build >= 4.6 |
26d1f228 JR |
55 | BuildRequires: rpm-pythonprov |
56 | BuildRequires: rpmbuild(macros) >= 1.219 | |
57 | BuildRequires: sip6 >= %{sip_ver} | |
58 | Requires: python3-dbus >= 0.80 | |
59 | Requires: python3-libs | |
60 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) | |
61 | ||
5cb2a9b8 JP |
62 | %define _enable_debug_packages 0 |
63 | ||
26d1f228 JR |
64 | %description |
65 | PyQt6 is a set of Python bindings for the Qt6 toolkit. The bindings | |
66 | are implemented as a set of Python modules: Qt, QtBluetooth, QtCore, | |
67 | QtDBus, QtDesigner, QtGui, QtHelp, QtLocation, QtMultimedia, | |
68 | QtMultimediaWidgets, QtNetwork, QtNfc, QtOpenGL, QtPositioning, | |
69 | QtPrintSupport, QtQml, QtQuick, QtQuickWidgets, QtSensors, | |
70 | QtSerialPort, QtSql, QtSvg, QtTest, QtWebChannel, | |
71 | QtWebSockets, QtX11Extras and QtXmlPatterns. | |
72 | ||
73 | %description -l pl.UTF-8 | |
74 | PyQt6 to zbiór dowiązań do Qt6 dla Pythona. Dowiązania zostały | |
75 | zaimplementowane jako moduły Pythona: Qt, QtBluetooth, QtCore, QtDBus, | |
76 | QtDesigner, QtGui, QtHelp, QtLocation, QtMultimedia, | |
77 | QtMultimediaWidgets, QtNetwork, QtNfc, QtOpenGL, QtPositioning, | |
78 | QtPrintSupport, QtQml, QtQuick, QtQuickWidgets, QtSensors, | |
79 | QtSerialPort, QtSql, QtSvg, QtTest, QtWebChannel, | |
80 | QtWebSockets, QtX11Extras oraz QtXmlPatterns. | |
81 | ||
82 | %package uic | |
83 | Summary: pyuic6 development tool for Python | |
84 | Summary(pl.UTF-8): Narzędzie programistyczne pyuic6 dla Pythona | |
85 | Group: Development/Tools | |
86 | Requires: Qt6Core >= %{qt_ver} | |
87 | Requires: Qt6Xml >= %{qt_ver} | |
88 | Requires: %{name} = %{version}-%{release} | |
89 | ||
90 | %description uic | |
91 | pyuic6 development tool for Python. | |
92 | ||
93 | %description uic -l pl.UTF-8 | |
94 | Narzędzie programistyczne pyuic6 dla Pythona. | |
95 | ||
96 | %package devel-tools | |
97 | Summary: PyQt6 development tools | |
98 | Summary(pl.UTF-8): Narzędzia programistyczne PyQt6 | |
99 | Group: Development/Tools | |
100 | Requires: python3-PyQt6 = %{version}-%{release} | |
101 | ||
102 | %description devel-tools | |
103 | PyQt6 development tools: pylupdate5, pyrcc5. | |
104 | ||
105 | Note: this package doesn't depend on Python version. | |
106 | ||
107 | %description devel-tools -l pl.UTF-8 | |
108 | Narzędzia programistyczne PyQt6: pylupdate5, pyrcc5. | |
109 | ||
110 | Uwaga: ten pakiet nie jest zależny od wersji Pythona. | |
111 | ||
112 | %package examples | |
113 | Summary: Examples for PyQt6 | |
114 | Summary(pl.UTF-8): Przykłady do PyQt6 | |
115 | Group: Libraries/Python | |
116 | Requires: %{name} = %{version}-%{release} | |
69f3dd0f | 117 | BuildArch: noarch |
26d1f228 JR |
118 | |
119 | %description examples | |
120 | Examples code demonstrating how to use the Python bindings for Qt6. | |
121 | ||
122 | %description examples -l pl.UTF-8 | |
123 | Przykładowy kod demonstrujący jak używać PyQt6. | |
124 | ||
125 | %package -n sip-PyQt6 | |
126 | Summary: SIP files needed to build other bindings based on Qt6 | |
127 | Summary(pl.UTF-8): Pliki SIP potrzebne do budowania innych wiązań opartych na Qt6 | |
128 | Group: Development/Languages/Python | |
129 | Requires: sip6 >= %{sip_ver} | |
130 | ||
131 | %description -n sip-PyQt6 | |
132 | SIP files needed to build other bindings for C++ classes that inherit | |
133 | from any of the Qt6 classes (e.g. KDE or your own). | |
134 | ||
135 | %description -n sip-PyQt6 -l pl.UTF-8 | |
136 | Pliki SIP potrzebne do budowania innych wiązań do klas C++ | |
137 | dziedziczących z dowolnej klasy Qt6 (np. KDE lub własnych). | |
138 | ||
139 | %package -n Qt6Designer-plugin-pyqt6 | |
140 | Summary: Qt6 Designer plugin for Python plugins with widgets | |
141 | Summary(pl.UTF-8): Wtyczka Qt6 Designera dla wtyczek Pythona zawierających widgety | |
142 | Requires: python3-PyQt6 = %{version}-%{release} | |
143 | ||
144 | %description -n Qt6Designer-plugin-pyqt6 | |
145 | This is the Qt6 Designer plugin that collects all the Python plugins | |
146 | it can find as a widget collection to Designer. | |
147 | ||
148 | %description -n Qt6Designer-plugin-pyqt6 -l pl.UTF-8 | |
149 | Ten pakiet zawiera wtyczkę Qt6 Designera zbierającą wszystkie wtyczki | |
150 | Pythona, które jest w stanie znaleźć, jako zestaw widgetów dla | |
151 | Designera. | |
152 | ||
153 | %prep | |
154 | %setup -q -n PyQt6-%{version} | |
155 | ||
156 | grep -rl /usr/bin/env examples | xargs sed -i -e '1{ | |
157 | s,^#!.*bin/env python$,#!%{__python3}, | |
158 | }' | |
159 | ||
160 | %build | |
161 | sip-build --build-dir build-py3 \ | |
162 | --jobs %{__jobs} \ | |
163 | --verbose \ | |
164 | --confirm-license \ | |
165 | --pep484-pyi \ | |
166 | --qmake="%{_bindir}/qmake-qt6" \ | |
167 | --scripts-dir=%{_bindir} | |
168 | ||
169 | %install | |
170 | rm -rf $RPM_BUILD_ROOT | |
171 | install -d $RPM_BUILD_ROOT%{_examplesdir}/%{name}-%{version} | |
172 | ||
173 | %{__make} -C build-py3 install \ | |
174 | DESTDIR=$RPM_BUILD_ROOT \ | |
175 | INSTALL_ROOT=$RPM_BUILD_ROOT | |
176 | ||
177 | %py3_comp $RPM_BUILD_ROOT%{py3_sitedir} | |
178 | %py3_ocomp $RPM_BUILD_ROOT%{py3_sitedir} | |
179 | ||
180 | cp -R examples/* $RPM_BUILD_ROOT%{_examplesdir}/%{name}-%{version} | |
181 | ||
182 | %clean | |
183 | rm -rf $RPM_BUILD_ROOT | |
184 | ||
185 | %files | |
186 | %defattr(644,root,root,755) | |
187 | %dir %{_libdir}/qt6/plugins/PyQt6 | |
188 | %attr(755,root,root) %{_libdir}/qt6/plugins/PyQt6/libpyqt6qmlplugin.so | |
189 | %dir %{py3_sitedir}/PyQt6 | |
190 | %attr(755,root,root) %{py3_sitedir}/PyQt6/QtBluetooth.abi3.so | |
191 | %attr(755,root,root) %{py3_sitedir}/PyQt6/QtCore.abi3.so | |
192 | %attr(755,root,root) %{py3_sitedir}/PyQt6/QtDBus.abi3.so | |
193 | %attr(755,root,root) %{py3_sitedir}/PyQt6/QtDesigner.abi3.so | |
194 | %attr(755,root,root) %{py3_sitedir}/PyQt6/QtGui.abi3.so | |
195 | %attr(755,root,root) %{py3_sitedir}/PyQt6/QtHelp.abi3.so | |
196 | %attr(755,root,root) %{py3_sitedir}/PyQt6/QtMultimedia.abi3.so | |
197 | %attr(755,root,root) %{py3_sitedir}/PyQt6/QtMultimediaWidgets.abi3.so | |
198 | %attr(755,root,root) %{py3_sitedir}/PyQt6/QtNetwork.abi3.so | |
199 | %attr(755,root,root) %{py3_sitedir}/PyQt6/QtNfc.abi3.so | |
200 | %attr(755,root,root) %{py3_sitedir}/PyQt6/QtOpenGL.abi3.so | |
201 | %attr(755,root,root) %{py3_sitedir}/PyQt6/QtOpenGLWidgets.abi3.so | |
202 | %attr(755,root,root) %{py3_sitedir}/PyQt6/QtPositioning.abi3.so | |
203 | %attr(755,root,root) %{py3_sitedir}/PyQt6/QtPrintSupport.abi3.so | |
204 | %attr(755,root,root) %{py3_sitedir}/PyQt6/QtQml.abi3.so | |
205 | %attr(755,root,root) %{py3_sitedir}/PyQt6/QtQuick.abi3.so | |
206 | %attr(755,root,root) %{py3_sitedir}/PyQt6/QtQuick3D.abi3.so | |
207 | %attr(755,root,root) %{py3_sitedir}/PyQt6/QtQuickWidgets.abi3.so | |
208 | %attr(755,root,root) %{py3_sitedir}/PyQt6/QtRemoteObjects.abi3.so | |
209 | %attr(755,root,root) %{py3_sitedir}/PyQt6/QtSensors.abi3.so | |
210 | %attr(755,root,root) %{py3_sitedir}/PyQt6/QtSerialPort.abi3.so | |
211 | %attr(755,root,root) %{py3_sitedir}/PyQt6/QtSql.abi3.so | |
212 | %attr(755,root,root) %{py3_sitedir}/PyQt6/QtSvg.abi3.so | |
213 | %attr(755,root,root) %{py3_sitedir}/PyQt6/QtSvgWidgets.abi3.so | |
214 | %attr(755,root,root) %{py3_sitedir}/PyQt6/QtTest.abi3.so | |
215 | %attr(755,root,root) %{py3_sitedir}/PyQt6/QtWebChannel.abi3.so | |
216 | %attr(755,root,root) %{py3_sitedir}/PyQt6/QtWebSockets.abi3.so | |
217 | %attr(755,root,root) %{py3_sitedir}/PyQt6/QtWidgets.abi3.so | |
218 | %attr(755,root,root) %{py3_sitedir}/PyQt6/QtXml.abi3.so | |
219 | %attr(755,root,root) %{py3_sitedir}/dbus/mainloop/pyqt6.abi3.so | |
220 | %{py3_sitedir}/PyQt6/__init__.py | |
221 | %{py3_sitedir}/PyQt6/__pycache__ | |
222 | ||
223 | # annotations (-devel?) | |
224 | %{py3_sitedir}/PyQt6-%{version}.dist-info | |
225 | %{py3_sitedir}/PyQt6/QtBluetooth.pyi | |
226 | %{py3_sitedir}/PyQt6/QtCore.pyi | |
227 | %{py3_sitedir}/PyQt6/QtDBus.pyi | |
228 | %{py3_sitedir}/PyQt6/QtDesigner.pyi | |
229 | %{py3_sitedir}/PyQt6/QtGui.pyi | |
230 | %{py3_sitedir}/PyQt6/QtHelp.pyi | |
231 | %{py3_sitedir}/PyQt6/QtMultimedia.pyi | |
232 | %{py3_sitedir}/PyQt6/QtMultimediaWidgets.pyi | |
233 | %{py3_sitedir}/PyQt6/QtNetwork.pyi | |
234 | %{py3_sitedir}/PyQt6/QtNfc.pyi | |
235 | %{py3_sitedir}/PyQt6/QtOpenGL.pyi | |
236 | %{py3_sitedir}/PyQt6/QtOpenGLWidgets.pyi | |
237 | %{py3_sitedir}/PyQt6/QtPositioning.pyi | |
238 | %{py3_sitedir}/PyQt6/QtPrintSupport.pyi | |
239 | %{py3_sitedir}/PyQt6/QtQml.pyi | |
240 | %{py3_sitedir}/PyQt6/QtQuick.pyi | |
241 | %{py3_sitedir}/PyQt6/QtQuick3D.pyi | |
242 | %{py3_sitedir}/PyQt6/QtQuickWidgets.pyi | |
243 | %{py3_sitedir}/PyQt6/QtRemoteObjects.pyi | |
244 | %{py3_sitedir}/PyQt6/QtSensors.pyi | |
245 | %{py3_sitedir}/PyQt6/QtSerialPort.pyi | |
246 | %{py3_sitedir}/PyQt6/QtSql.pyi | |
247 | %{py3_sitedir}/PyQt6/QtSvg.pyi | |
248 | %{py3_sitedir}/PyQt6/QtSvgWidgets.pyi | |
249 | %{py3_sitedir}/PyQt6/QtTest.pyi | |
250 | %{py3_sitedir}/PyQt6/QtWebChannel.pyi | |
251 | %{py3_sitedir}/PyQt6/QtWebSockets.pyi | |
252 | %{py3_sitedir}/PyQt6/QtWidgets.pyi | |
253 | %{py3_sitedir}/PyQt6/QtXml.pyi | |
254 | %{py3_sitedir}/PyQt6/py.typed | |
255 | ||
256 | %files uic | |
257 | %defattr(644,root,root,755) | |
258 | %attr(755,root,root) %{_bindir}/pyuic6 | |
259 | %{py3_sitedir}/PyQt6/uic | |
260 | ||
261 | %files devel-tools | |
262 | %defattr(644,root,root,755) | |
263 | %attr(755,root,root) %{_bindir}/pylupdate6 | |
264 | %{py3_sitedir}/PyQt6/lupdate | |
265 | ||
266 | %files examples | |
267 | %defattr(644,root,root,755) | |
268 | %{_examplesdir}/%{name}-%{version} | |
269 | ||
270 | %files -n sip-PyQt6 | |
271 | %defattr(644,root,root,755) | |
272 | %{py3_sitedir}/PyQt6/bindings | |
273 | %{py3_sitedir}/PyQt6/sip.pyi | |
274 | ||
275 | %files -n Qt6Designer-plugin-pyqt6 | |
276 | %defattr(644,root,root,755) | |
277 | %attr(755,root,root) %{_libdir}/qt6/plugins/designer/libpyqt6.so |