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