]>
Commit | Line | Data |
---|---|---|
06b02645 | 1 | # |
61afc5d4 | 2 | # Conditional build: |
727d1a12 JB |
3 | %bcond_without python2 # CPython 2.x modules |
4 | %bcond_without python3 # CPython 3.x modules | |
5 | %bcond_with enginio # Qt5Enginio support | |
6 | %bcond_without webkit # Qt5WebKit support | |
61afc5d4 | 7 | |
a0dd6b04 JR |
8 | %define module PyQt5 |
9 | # minimal required sip version | |
917ab7d5 | 10 | %define sip_ver 2:4.19.23 |
61afc5d4 | 11 | # last qt version covered by these bindings (minimal required is currently 5.0.0) |
727d1a12 JB |
12 | # %define qt_ver %{version} |
13 | %define qt_ver 5.12.0 | |
14 | %define qtenginio_ver 1:1.6.0 | |
4d758709 | 15 | |
61afc5d4 JB |
16 | Summary: Python 2 bindings for the Qt5 toolkit |
17 | Summary(pl.UTF-8): Wiązania Pythona 2 do toolkitu Qt5 | |
a0dd6b04 | 18 | Name: python-%{module} |
9cee767b JR |
19 | Version: 5.15.6 |
20 | Release: 0.1 | |
61afc5d4 | 21 | License: GPL v3 |
a0dd6b04 | 22 | Group: Libraries/Python |
81965fd2 JB |
23 | #Source0Download: https://pypi.org/simple/PyQt5/ |
24 | Source0: https://files.pythonhosted.org/packages/source/P/PyQt5/PyQt5-%{version}.tar.gz | |
9cee767b | 25 | # Source0-md5: 0c7fca60aa6ee13c235f68576d9c7bed |
8a4f48aa | 26 | Patch0: install.patch |
727d1a12 | 27 | URL: https://riverbankcomputing.com/software/pyqt/intro |
a0dd6b04 | 28 | # most of BR comes from configure.py |
6c47e556 | 29 | BuildRequires: Qt5Bluetooth-devel >= %{qt_ver} |
a0dd6b04 JR |
30 | BuildRequires: Qt5Core-devel >= %{qt_ver} |
31 | BuildRequires: Qt5DBus-devel >= %{qt_ver} | |
6c47e556 | 32 | BuildRequires: Qt5Designer-devel >= %{qt_ver} |
727d1a12 | 33 | %{?with_enginio:BuildRequires: Qt5Enginio-devel >= %{qtenginio_ver}} |
a0dd6b04 | 34 | BuildRequires: Qt5Gui-devel >= %{qt_ver} |
6c47e556 | 35 | BuildRequires: Qt5Help-devel >= %{qt_ver} |
0904a6dd | 36 | BuildRequires: Qt5Location-devel >= %{qt_ver} |
6c47e556 JR |
37 | BuildRequires: Qt5Multimedia-devel >= %{qt_ver} |
38 | BuildRequires: Qt5MultimediaWidgets-devel >= %{qt_ver} | |
a0dd6b04 | 39 | BuildRequires: Qt5Network-devel >= %{qt_ver} |
0904a6dd | 40 | BuildRequires: Qt5Nfc-devel >= %{qt_ver} |
a0dd6b04 | 41 | BuildRequires: Qt5OpenGL-devel >= %{qt_ver} |
6c47e556 | 42 | BuildRequires: Qt5Positioning-devel >= %{qt_ver} |
9cee767b JR |
43 | BuildRequires: Qt5PrintSupport-devel |
44 | BuildRequires: Qt5RemoteObjects-devel >= %{qt_ver} | |
6c47e556 JR |
45 | BuildRequires: Qt5Qml-devel >= %{qt_ver} |
46 | BuildRequires: Qt5Quick-devel >= %{qt_ver} | |
9cee767b | 47 | BuildRequires: Qt5Quick3D-devel >= %{qt_ver} |
6c47e556 JR |
48 | BuildRequires: Qt5Sensors-devel >= %{qt_ver} |
49 | BuildRequires: Qt5SerialPort-devel >= %{qt_ver} | |
a0dd6b04 | 50 | BuildRequires: Qt5Sql-devel >= %{qt_ver} |
6c47e556 | 51 | BuildRequires: Qt5Svg-devel >= %{qt_ver} |
a0dd6b04 | 52 | BuildRequires: Qt5Test-devel >= %{qt_ver} |
8a4f48aa | 53 | BuildRequires: Qt5UiTools-devel >= %{qt_ver} |
0904a6dd | 54 | BuildRequires: Qt5WebChannel-devel >= %{qt_ver} |
d26f705d | 55 | %{?with_webkit:BuildRequires: Qt5WebKit-devel >= %{qt_ver}} |
6c47e556 JR |
56 | BuildRequires: Qt5WebSockets-devel >= %{qt_ver} |
57 | BuildRequires: Qt5Widgets-devel >= %{qt_ver} | |
58 | BuildRequires: Qt5X11Extras-devel >= %{qt_ver} | |
a0dd6b04 | 59 | BuildRequires: Qt5Xml-devel >= %{qt_ver} |
6c47e556 | 60 | BuildRequires: Qt5XmlPatterns-devel >= %{qt_ver} |
0904a6dd | 61 | BuildRequires: dbus-devel >= 1 |
a0dd6b04 | 62 | BuildRequires: pkgconfig |
02074376 | 63 | %if %{with python2} |
c131c8d9 AM |
64 | # configure.py does: "from PyQt5 import sip" but sip doesn't provide PyQt5/__init__.py file, |
65 | # and thus sip cannot be import. That's why we require python-PyQt5 (which provides __init__.py) | |
66 | # here. Only for python2 since python3 can import from directory without __init__.py file. | |
02074376 | 67 | BuildRequires: python-PyQt5 >= 5.11.2 |
a0dd6b04 | 68 | BuildRequires: python-dbus-devel >= 0.80 |
bc2c35c3 | 69 | BuildRequires: python-PyQt5-sip >= %{sip_ver} |
a0dd6b04 | 70 | BuildRequires: python-sip-devel >= %{sip_ver} |
02074376 JP |
71 | %endif |
72 | %if %{with python3} | |
c6597a62 | 73 | BuildRequires: python-dbus-devel >= 0.80 |
ad25adb4 | 74 | BuildRequires: python3-dbus >= 0.80 |
bc2c35c3 | 75 | BuildRequires: python3-PyQt5-sip >= %{sip_ver} |
ad25adb4 | 76 | BuildRequires: python3-sip-devel >= %{sip_ver} |
02074376 | 77 | %endif |
61afc5d4 JB |
78 | BuildRequires: qt5-build >= %{qt_ver} |
79 | BuildRequires: qt5-qmake >= %{qt_ver} | |
a0dd6b04 JR |
80 | BuildRequires: rpm-pythonprov |
81 | BuildRequires: rpmbuild(macros) >= 1.219 | |
a0dd6b04 | 82 | Requires: python-dbus >= 0.80 |
cd4d2f82 | 83 | Requires: python-libs |
bc2c35c3 | 84 | Requires: python-PyQt5-sip >= %{sip_ver} |
a0dd6b04 JR |
85 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) |
86 | ||
a0dd6b04 JR |
87 | %define _sipfilesdir %{_datadir}/sip |
88 | ||
89 | %description | |
90 | PyQt5 is a set of Python bindings for the Qt5 toolkit. The bindings | |
8a4f48aa JR |
91 | are implemented as a set of Python modules: Qt, QtBluetooth, QtCore, |
92 | QtDBus, QtDesigner, QtGui, QtHelp, QtLocation, QtMultimedia, | |
0904a6dd | 93 | QtMultimediaWidgets, QtNetwork, QtNfc, QtOpenGL, QtPositioning, |
027041dc | 94 | QtPrintSupport, QtQml, QtQuick, QtQuickWidgets, QtSensors, |
443e6b04 JP |
95 | QtSerialPort, QtSql, QtSvg, QtTest, QtWebChannel, |
96 | QtWebSockets, QtX11Extras and QtXmlPatterns. | |
027041dc JB |
97 | |
98 | This package contains Python 2 modules. | |
a0dd6b04 JR |
99 | |
100 | %description -l pl.UTF-8 | |
101 | PyQt5 to zbiór dowiązań do Qt5 dla Pythona. Dowiązania zostały | |
8a4f48aa JR |
102 | zaimplementowane jako moduły Pythona: Qt, QtBluetooth, QtCore, QtDBus, |
103 | QtDesigner, QtGui, QtHelp, QtLocation, QtMultimedia, | |
0904a6dd | 104 | QtMultimediaWidgets, QtNetwork, QtNfc, QtOpenGL, QtPositioning, |
027041dc | 105 | QtPrintSupport, QtQml, QtQuick, QtQuickWidgets, QtSensors, |
443e6b04 JP |
106 | QtSerialPort, QtSql, QtSvg, QtTest, QtWebChannel, |
107 | QtWebSockets, QtX11Extras oraz QtXmlPatterns. | |
027041dc JB |
108 | |
109 | Ten pakiet zawiera moduły Pythona 2. | |
61afc5d4 JB |
110 | |
111 | %package uic | |
112 | Summary: pyuic5 development tool for Python 2 | |
113 | Summary(pl.UTF-8): Narzędzie programistyczne pyuic5 dla Pythona 2 | |
114 | Group: Development/Tools | |
115 | Requires: %{name} = %{version}-%{release} | |
116 | ||
117 | %description uic | |
118 | pyuic5 development tool for Python 2. | |
119 | ||
120 | %description uic -l pl.UTF-8 | |
121 | Narzędzie programistyczne pyuic5 dla Pythona 2. | |
122 | ||
123 | %package -n python3-PyQt5 | |
027041dc JB |
124 | Summary: Python 3 bindings for the Qt5 toolkit |
125 | Summary(pl.UTF-8): Wiązania Pythona 3 do toolkitu Qt5 | |
61afc5d4 | 126 | Group: Libraries/Python |
61afc5d4 | 127 | Requires: python3-dbus >= 0.80 |
cd4d2f82 | 128 | Requires: python3-libs |
bc2c35c3 | 129 | Requires: python3-PyQt5-sip >= %{sip_ver} |
61afc5d4 JB |
130 | |
131 | %description -n python3-PyQt5 | |
027041dc | 132 | PyQt5 is a set of Python bindings for the Qt5 toolkit. The bindings |
8a4f48aa JR |
133 | are implemented as a set of Python modules: Qt, QtBluetooth, QtCore, |
134 | QtDBus, QtDesigner, QtGui, QtHelp, QtLocation, QtMultimedia, | |
0904a6dd | 135 | QtMultimediaWidgets, QtNetwork, QtNfc, QtOpenGL, QtPositioning, |
027041dc | 136 | QtPrintSupport, QtQml, QtQuick, QtQuickWidgets, QtSensors, |
443e6b04 JP |
137 | QtSerialPort, QtSql, QtSvg, QtTest, QtWebChannel, |
138 | QtWebSockets, QtX11Extras and QtXmlPatterns. | |
027041dc JB |
139 | |
140 | This package contains Python 3 modules. | |
61afc5d4 JB |
141 | |
142 | %description -n python3-PyQt5 -l pl.UTF-8 | |
027041dc | 143 | PyQt5 to zbiór dowiązań do Qt5 dla Pythona. Dowiązania zostały |
8a4f48aa JR |
144 | zaimplementowane jako moduły Pythona: Qt, QtBluetooth, QtCore, QtDBus, |
145 | QtDesigner, QtGui, QtHelp, QtLocation, QtMultimedia, | |
0904a6dd | 146 | QtMultimediaWidgets, QtNetwork, QtNfc, QtOpenGL, QtPositioning, |
027041dc | 147 | QtPrintSupport, QtQml, QtQuick, QtQuickWidgets, QtSensors, |
443e6b04 JP |
148 | QtSerialPort, QtSql, QtSvg, QtTest, QtWebChannel, |
149 | QtWebSockets, QtX11Extras oraz QtXmlPatterns. | |
027041dc JB |
150 | |
151 | Ten pakiet zawiera moduły Pythona 3. | |
61afc5d4 JB |
152 | |
153 | %package -n python3-PyQt5-uic | |
154 | Summary: pyuic5 development tool for Python 3 | |
155 | Summary(pl.UTF-8): Narzędzie programistyczne pyuic5 dla Pythona 3 | |
156 | Group: Development/Tools | |
157 | Requires: python3-PyQt5 = %{version}-%{release} | |
158 | ||
159 | %description -n python3-PyQt5-uic | |
160 | pyuic5 development tool for Python 3. | |
161 | ||
162 | %description -n python3-PyQt5-uic -l pl.UTF-8 | |
163 | Narzędzie programistyczne pyuic5 dla Pythona 3. | |
a0dd6b04 | 164 | |
a0dd6b04 JR |
165 | %package devel-tools |
166 | Summary: PyQt5 development tools | |
167 | Summary(pl.UTF-8): Narzędzia programistyczne PyQt5 | |
61afc5d4 JB |
168 | Group: Development/Tools |
169 | Requires: Qt5Core >= %{qt_ver} | |
170 | Requires: Qt5Xml >= %{qt_ver} | |
1bef50b0 JK |
171 | %if %{with python2} |
172 | Requires: %{name} = %{version}-%{release} | |
173 | %else | |
174 | Requires: python3-PyQt5 = %{version}-%{release} | |
175 | %endif | |
a0dd6b04 JR |
176 | |
177 | %description devel-tools | |
61afc5d4 JB |
178 | PyQt5 development tools: pylupdate5, pyrcc5. |
179 | ||
180 | Note: this package doesn't depend on Python version. | |
a0dd6b04 JR |
181 | |
182 | %description devel-tools -l pl.UTF-8 | |
61afc5d4 JB |
183 | Narzędzia programistyczne PyQt5: pylupdate5, pyrcc5. |
184 | ||
185 | Uwaga: ten pakiet nie jest zależny od wersji Pythona. | |
a0dd6b04 JR |
186 | |
187 | %package examples | |
188 | Summary: Examples for PyQt5 | |
189 | Summary(pl.UTF-8): Przykłady do PyQt5 | |
190 | Group: Libraries/Python | |
191 | Requires: %{name} = %{version}-%{release} | |
192 | ||
193 | %description examples | |
194 | Examples code demonstrating how to use the Python bindings for Qt5. | |
195 | ||
196 | %description examples -l pl.UTF-8 | |
197 | Przykładowy kod demonstrujący jak używać PyQt5. | |
198 | ||
027041dc JB |
199 | %package -n sip-PyQt5 |
200 | Summary: SIP files needed to build other bindings based on Qt5 | |
201 | Summary(pl.UTF-8): Pliki SIP potrzebne do budowania innych wiązań opartych na Qt5 | |
202 | Group: Development/Languages/Python | |
203 | Requires: sip >= %{sip_ver} | |
204 | Obsoletes: python-PyQt5-devel < 5.3.2-4 | |
205 | ||
206 | %description -n sip-PyQt5 | |
207 | SIP files needed to build other bindings for C++ classes that inherit | |
208 | from any of the Qt5 classes (e.g. KDE or your own). | |
209 | ||
210 | %description -n sip-PyQt5 -l pl.UTF-8 | |
211 | Pliki SIP potrzebne do budowania innych wiązań do klas C++ | |
212 | dziedziczących z dowolnej klasy Qt5 (np. KDE lub własnych). | |
213 | ||
61afc5d4 JB |
214 | %package -n Qt5Designer-plugin-pyqt5 |
215 | Summary: Qt5 Designer plugin for Python plugins with widgets | |
216 | Summary(pl.UTF-8): Wtyczka Qt5 Designera dla wtyczek Pythona zawierających widgety | |
217 | # can build only for one python version | |
218 | %if %{with python2} | |
219 | Requires: %{name} = %{version}-%{release} | |
220 | %else | |
221 | Requires: python3-PyQt5 = %{version}-%{release} | |
222 | %endif | |
223 | ||
224 | %description -n Qt5Designer-plugin-pyqt5 | |
225 | This is the Qt5 Designer plugin that collects all the Python plugins | |
226 | it can find as a widget collection to Designer. | |
227 | ||
228 | %description -n Qt5Designer-plugin-pyqt5 -l pl.UTF-8 | |
229 | Ten pakiet zawiera wtyczkę Qt5 Designera zbierającą wszystkie wtyczki | |
230 | Pythona, które jest w stanie znaleźć, jako zestaw widgetów dla | |
231 | Designera. | |
232 | ||
a0dd6b04 JR |
233 | %package -n qscintilla2-%{module}-api |
234 | Summary: PyQt5 API file for QScintilla | |
235 | Summary(pl.UTF-8): Plik API PyQt5 dla QScintilli | |
236 | Group: Libraries/Python | |
027041dc | 237 | Requires: qscintilla2-qt5 >= 2.2-2 |
a0dd6b04 JR |
238 | |
239 | %description -n qscintilla2-%{module}-api | |
61afc5d4 | 240 | PyQt5 API file can be used by the QScintilla editor component to |
a0dd6b04 JR |
241 | enable the use of auto-completion and call tips when editing PyQt5 |
242 | code. | |
243 | ||
244 | %description -n qscintilla2-%{module}-api -l pl.UTF-8 | |
61afc5d4 | 245 | Plik API PyQt5 może być używany przez komponent edytora QScintilla aby |
a0dd6b04 JR |
246 | umożliwić automatyczne dopełnianie i podpowiedzi przy modyfikowaniu |
247 | kodu wykorzystującego PyQt5. | |
248 | ||
249 | %prep | |
dbc78478 | 250 | %setup -q -n PyQt5-%{version} |
8a4f48aa | 251 | %patch0 -p1 |
a0dd6b04 | 252 | |
565e2779 JP |
253 | grep -rl /usr/bin/env examples | xargs sed -i -e '1{ |
254 | s,^#!.*bin/env python$,#!%{__python}, | |
255 | }' | |
256 | ||
a0dd6b04 | 257 | %build |
61afc5d4 JB |
258 | %if %{with python2} |
259 | install -d build-py2 | |
260 | cd build-py2 | |
261 | %{__python} ../configure.py \ | |
a84a1f69 | 262 | --no-dist-info \ |
61afc5d4 | 263 | --verbose \ |
6c47e556 | 264 | --assume-shared \ |
a0dd6b04 JR |
265 | --confirm-license \ |
266 | -c -j 3 \ | |
267 | -a \ | |
268 | -b %{_bindir} \ | |
269 | -d %{py_sitedir} \ | |
270 | -q "%{_bindir}/qmake-qt5" \ | |
271 | -v %{_sipfilesdir}/%{module} \ | |
272 | LIBDIR_QT="%{_libdir}" \ | |
273 | CC="%{__cc}" \ | |
274 | CXX="%{__cxx}" | |
275 | ||
276 | %{__make} | |
61afc5d4 JB |
277 | cd .. |
278 | %endif | |
279 | ||
280 | %if %{with python3} | |
281 | install -d build-py3 | |
282 | cd build-py3 | |
283 | %{__python3} ../configure.py \ | |
a84a1f69 | 284 | --no-dist-info \ |
61afc5d4 JB |
285 | --verbose \ |
286 | --assume-shared \ | |
287 | --confirm-license \ | |
288 | -c -j 3 \ | |
289 | -a \ | |
290 | -b %{_bindir} \ | |
291 | -d %{py3_sitedir} \ | |
292 | -q "%{_bindir}/qmake-qt5" \ | |
293 | -v %{_sipfilesdir}/%{module} \ | |
294 | LIBDIR_QT="%{_libdir}" \ | |
295 | CC="%{__cc}" \ | |
296 | CXX="%{__cxx}" | |
297 | ||
298 | %{__make} | |
299 | cd .. | |
300 | %endif | |
a0dd6b04 JR |
301 | |
302 | %install | |
303 | rm -rf $RPM_BUILD_ROOT | |
304 | install -d $RPM_BUILD_ROOT%{_examplesdir}/%{name}-%{version} | |
305 | ||
61afc5d4 JB |
306 | %if %{with python3} |
307 | %{__make} -C build-py3 install \ | |
308 | DESTDIR=$RPM_BUILD_ROOT \ | |
309 | INSTALL_ROOT=$RPM_BUILD_ROOT | |
310 | ||
727d1a12 JB |
311 | %py3_comp $RPM_BUILD_ROOT%{py3_sitedir} |
312 | %py3_ocomp $RPM_BUILD_ROOT%{py3_sitedir} | |
313 | ||
61afc5d4 JB |
314 | %{__mv} $RPM_BUILD_ROOT%{_bindir}/pyuic5{,-3} |
315 | %endif | |
316 | ||
317 | %if %{with python2} | |
318 | %{__make} -C build-py2 install \ | |
a0dd6b04 JR |
319 | DESTDIR=$RPM_BUILD_ROOT \ |
320 | INSTALL_ROOT=$RPM_BUILD_ROOT | |
321 | ||
322 | %py_comp $RPM_BUILD_ROOT%{py_sitedir} | |
323 | %py_ocomp $RPM_BUILD_ROOT%{py_sitedir} | |
324 | ||
325 | # don't use py_postclean, leave *.py in %{py_sitedir}/PyQt4/uic/widget-plugins | |
326 | %{__rm} $RPM_BUILD_ROOT%{py_sitedir}/PyQt5/*.py | |
327 | %{__rm} $RPM_BUILD_ROOT%{py_sitedir}/PyQt5/uic/*.py | |
328 | %{__rm} $RPM_BUILD_ROOT%{py_sitedir}/PyQt5/uic/Compiler/*.py | |
329 | %{__rm} $RPM_BUILD_ROOT%{py_sitedir}/PyQt5/uic/Loader/*.py | |
330 | %{__rm} $RPM_BUILD_ROOT%{py_sitedir}/PyQt5/uic/port_v2/*.py | |
331 | %{__rm} $RPM_BUILD_ROOT%{py_sitedir}/PyQt5/uic/port_v3/*.py | |
61afc5d4 | 332 | %endif |
a0dd6b04 JR |
333 | |
334 | cp -R examples/* $RPM_BUILD_ROOT%{_examplesdir}/%{name}-%{version} | |
335 | ||
336 | %clean | |
337 | rm -rf $RPM_BUILD_ROOT | |
338 | ||
61afc5d4 | 339 | %if %{with python2} |
a0dd6b04 JR |
340 | %files |
341 | %defattr(644,root,root,755) | |
342 | %doc NEWS README | |
6c47e556 JR |
343 | %dir %{_libdir}/qt5/plugins/PyQt5 |
344 | %attr(755,root,root) %{_libdir}/qt5/plugins/PyQt5/libpyqt5qmlplugin.so | |
a0dd6b04 | 345 | %dir %{py_sitedir}/PyQt5 |
4d758709 MK |
346 | %attr(755,root,root) %{py_sitedir}/PyQt5/pylupdate.so |
347 | %attr(755,root,root) %{py_sitedir}/PyQt5/pyrcc.so | |
727d1a12 | 348 | %{?with_enginio:%attr(755,root,root) %{py_sitedir}/PyQt5/Enginio.so} |
a0dd6b04 | 349 | %attr(755,root,root) %{py_sitedir}/PyQt5/Qt.so |
61afc5d4 | 350 | %attr(755,root,root) %{py_sitedir}/PyQt5/QtBluetooth.so |
a0dd6b04 JR |
351 | %attr(755,root,root) %{py_sitedir}/PyQt5/QtCore.so |
352 | %attr(755,root,root) %{py_sitedir}/PyQt5/QtDBus.so | |
353 | %attr(755,root,root) %{py_sitedir}/PyQt5/QtDesigner.so | |
354 | %attr(755,root,root) %{py_sitedir}/PyQt5/QtGui.so | |
355 | %attr(755,root,root) %{py_sitedir}/PyQt5/QtHelp.so | |
0904a6dd | 356 | %attr(755,root,root) %{py_sitedir}/PyQt5/QtLocation.so |
6c47e556 JR |
357 | %attr(755,root,root) %{py_sitedir}/PyQt5/QtMultimedia.so |
358 | %attr(755,root,root) %{py_sitedir}/PyQt5/QtMultimediaWidgets.so | |
61afc5d4 | 359 | %attr(755,root,root) %{py_sitedir}/PyQt5/QtNetwork.so |
0904a6dd | 360 | %attr(755,root,root) %{py_sitedir}/PyQt5/QtNfc.so |
61afc5d4 | 361 | %attr(755,root,root) %{py_sitedir}/PyQt5/QtOpenGL.so |
6c47e556 JR |
362 | %attr(755,root,root) %{py_sitedir}/PyQt5/QtPositioning.so |
363 | %attr(755,root,root) %{py_sitedir}/PyQt5/QtPrintSupport.so | |
364 | %attr(755,root,root) %{py_sitedir}/PyQt5/QtQml.so | |
365 | %attr(755,root,root) %{py_sitedir}/PyQt5/QtQuick.so | |
366 | %attr(755,root,root) %{py_sitedir}/PyQt5/QtQuickWidgets.so | |
367 | %attr(755,root,root) %{py_sitedir}/PyQt5/QtSensors.so | |
368 | %attr(755,root,root) %{py_sitedir}/PyQt5/QtSerialPort.so | |
61afc5d4 | 369 | %attr(755,root,root) %{py_sitedir}/PyQt5/QtSql.so |
6c47e556 | 370 | %attr(755,root,root) %{py_sitedir}/PyQt5/QtSvg.so |
61afc5d4 | 371 | %attr(755,root,root) %{py_sitedir}/PyQt5/QtTest.so |
0904a6dd | 372 | %attr(755,root,root) %{py_sitedir}/PyQt5/QtWebChannel.so |
3da9f6d9 | 373 | %if %{with webkit} |
d5e9c8f2 AM |
374 | %attr(755,root,root) %{py_sitedir}/PyQt5/QtWebKit.so |
375 | %attr(755,root,root) %{py_sitedir}/PyQt5/QtWebKitWidgets.so | |
3da9f6d9 | 376 | %endif |
6c47e556 | 377 | %attr(755,root,root) %{py_sitedir}/PyQt5/QtWebSockets.so |
61afc5d4 | 378 | %attr(755,root,root) %{py_sitedir}/PyQt5/QtWidgets.so |
6c47e556 | 379 | %attr(755,root,root) %{py_sitedir}/PyQt5/QtX11Extras.so |
ad25adb4 | 380 | %attr(755,root,root) %{py_sitedir}/PyQt5/QtXml.so |
6c47e556 | 381 | %attr(755,root,root) %{py_sitedir}/PyQt5/QtXmlPatterns.so |
61afc5d4 | 382 | %attr(755,root,root) %{py_sitedir}/PyQt5/_QOpenGLFunctions_2_0.so |
ad25adb4 JR |
383 | %attr(755,root,root) %{py_sitedir}/PyQt5/_QOpenGLFunctions_2_1.so |
384 | %attr(755,root,root) %{py_sitedir}/PyQt5/_QOpenGLFunctions_4_1_Core.so | |
a0dd6b04 | 385 | %{py_sitedir}/PyQt5/__init__.py[co] |
4d758709 MK |
386 | %{py_sitedir}/PyQt5/pyrcc_main.py[co] |
387 | %{py_sitedir}/PyQt5/pylupdate_main.py[co] | |
a0dd6b04 JR |
388 | %attr(755,root,root) %{py_sitedir}/dbus/mainloop/pyqt5.so |
389 | ||
61afc5d4 JB |
390 | %files uic |
391 | %defattr(644,root,root,755) | |
392 | %attr(755,root,root) %{_bindir}/pyuic5 | |
393 | %{py_sitedir}/PyQt5/uic | |
394 | %endif | |
395 | ||
396 | %if %{with python3} | |
397 | %files -n python3-PyQt5 | |
398 | %defattr(644,root,root,755) | |
399 | %if %{without python2} | |
400 | # if not building python2 module, this plugin is built in python3 version | |
401 | %dir %{_libdir}/qt5/plugins/PyQt5 | |
402 | %attr(755,root,root) %{_libdir}/qt5/plugins/PyQt5/libpyqt5qmlplugin.so | |
403 | %endif | |
404 | %dir %{py3_sitedir}/PyQt5 | |
4d758709 MK |
405 | %attr(755,root,root) %{py3_sitedir}/PyQt5/pylupdate.so |
406 | %attr(755,root,root) %{py3_sitedir}/PyQt5/pyrcc.so | |
727d1a12 | 407 | %{?with_enginio:%attr(755,root,root) %{py3_sitedir}/PyQt5/Enginio.so} |
61afc5d4 JB |
408 | %attr(755,root,root) %{py3_sitedir}/PyQt5/Qt.so |
409 | %attr(755,root,root) %{py3_sitedir}/PyQt5/QtBluetooth.so | |
410 | %attr(755,root,root) %{py3_sitedir}/PyQt5/QtCore.so | |
411 | %attr(755,root,root) %{py3_sitedir}/PyQt5/QtDBus.so | |
412 | %attr(755,root,root) %{py3_sitedir}/PyQt5/QtDesigner.so | |
413 | %attr(755,root,root) %{py3_sitedir}/PyQt5/QtGui.so | |
414 | %attr(755,root,root) %{py3_sitedir}/PyQt5/QtHelp.so | |
0904a6dd | 415 | %attr(755,root,root) %{py3_sitedir}/PyQt5/QtLocation.so |
61afc5d4 JB |
416 | %attr(755,root,root) %{py3_sitedir}/PyQt5/QtMultimedia.so |
417 | %attr(755,root,root) %{py3_sitedir}/PyQt5/QtMultimediaWidgets.so | |
418 | %attr(755,root,root) %{py3_sitedir}/PyQt5/QtNetwork.so | |
0904a6dd | 419 | %attr(755,root,root) %{py3_sitedir}/PyQt5/QtNfc.so |
61afc5d4 JB |
420 | %attr(755,root,root) %{py3_sitedir}/PyQt5/QtOpenGL.so |
421 | %attr(755,root,root) %{py3_sitedir}/PyQt5/QtPositioning.so | |
422 | %attr(755,root,root) %{py3_sitedir}/PyQt5/QtPrintSupport.so | |
423 | %attr(755,root,root) %{py3_sitedir}/PyQt5/QtQml.so | |
424 | %attr(755,root,root) %{py3_sitedir}/PyQt5/QtQuick.so | |
425 | %attr(755,root,root) %{py3_sitedir}/PyQt5/QtQuickWidgets.so | |
426 | %attr(755,root,root) %{py3_sitedir}/PyQt5/QtSensors.so | |
427 | %attr(755,root,root) %{py3_sitedir}/PyQt5/QtSerialPort.so | |
428 | %attr(755,root,root) %{py3_sitedir}/PyQt5/QtSql.so | |
429 | %attr(755,root,root) %{py3_sitedir}/PyQt5/QtSvg.so | |
430 | %attr(755,root,root) %{py3_sitedir}/PyQt5/QtTest.so | |
0904a6dd | 431 | %attr(755,root,root) %{py3_sitedir}/PyQt5/QtWebChannel.so |
3da9f6d9 | 432 | %if %{with webkit} |
d5e9c8f2 AM |
433 | %attr(755,root,root) %{py3_sitedir}/PyQt5/QtWebKit.so |
434 | %attr(755,root,root) %{py3_sitedir}/PyQt5/QtWebKitWidgets.so | |
3da9f6d9 | 435 | %endif |
61afc5d4 JB |
436 | %attr(755,root,root) %{py3_sitedir}/PyQt5/QtWebSockets.so |
437 | %attr(755,root,root) %{py3_sitedir}/PyQt5/QtWidgets.so | |
438 | %attr(755,root,root) %{py3_sitedir}/PyQt5/QtX11Extras.so | |
ad25adb4 | 439 | %attr(755,root,root) %{py3_sitedir}/PyQt5/QtXml.so |
61afc5d4 JB |
440 | %attr(755,root,root) %{py3_sitedir}/PyQt5/QtXmlPatterns.so |
441 | %attr(755,root,root) %{py3_sitedir}/PyQt5/_QOpenGLFunctions_2_0.so | |
ad25adb4 JR |
442 | %attr(755,root,root) %{py3_sitedir}/PyQt5/_QOpenGLFunctions_2_1.so |
443 | %attr(755,root,root) %{py3_sitedir}/PyQt5/_QOpenGLFunctions_4_1_Core.so | |
8a4f48aa | 444 | %attr(755,root,root) %{py3_sitedir}/dbus/mainloop/pyqt5.so |
727d1a12 JB |
445 | %{py3_sitedir}/PyQt5/__init__.py |
446 | %{py3_sitedir}/PyQt5/pylupdate_main.py | |
447 | %{py3_sitedir}/PyQt5/pyrcc_main.py | |
448 | %{py3_sitedir}/PyQt5/__pycache__ | |
449 | ||
450 | # annotations (-devel?) | |
451 | %{?with_enginio:%{py3_sitedir}/PyQt5/Enginio.pyi} | |
8a4f48aa JR |
452 | %{py3_sitedir}/PyQt5/QtBluetooth.pyi |
453 | %{py3_sitedir}/PyQt5/QtCore.pyi | |
454 | %{py3_sitedir}/PyQt5/QtDBus.pyi | |
455 | %{py3_sitedir}/PyQt5/QtDesigner.pyi | |
456 | %{py3_sitedir}/PyQt5/QtGui.pyi | |
457 | %{py3_sitedir}/PyQt5/QtHelp.pyi | |
458 | %{py3_sitedir}/PyQt5/QtLocation.pyi | |
459 | %{py3_sitedir}/PyQt5/QtMultimedia.pyi | |
460 | %{py3_sitedir}/PyQt5/QtMultimediaWidgets.pyi | |
461 | %{py3_sitedir}/PyQt5/QtNetwork.pyi | |
462 | %{py3_sitedir}/PyQt5/QtNfc.pyi | |
463 | %{py3_sitedir}/PyQt5/QtOpenGL.pyi | |
464 | %{py3_sitedir}/PyQt5/QtPositioning.pyi | |
465 | %{py3_sitedir}/PyQt5/QtPrintSupport.pyi | |
466 | %{py3_sitedir}/PyQt5/QtQml.pyi | |
467 | %{py3_sitedir}/PyQt5/QtQuick.pyi | |
468 | %{py3_sitedir}/PyQt5/QtQuickWidgets.pyi | |
469 | %{py3_sitedir}/PyQt5/QtSensors.pyi | |
470 | %{py3_sitedir}/PyQt5/QtSerialPort.pyi | |
471 | %{py3_sitedir}/PyQt5/QtSql.pyi | |
472 | %{py3_sitedir}/PyQt5/QtSvg.pyi | |
473 | %{py3_sitedir}/PyQt5/QtTest.pyi | |
474 | %{py3_sitedir}/PyQt5/QtWebChannel.pyi | |
3da9f6d9 | 475 | %if %{with webkit} |
d5e9c8f2 AM |
476 | %{py3_sitedir}/PyQt5/QtWebKit.pyi |
477 | %{py3_sitedir}/PyQt5/QtWebKitWidgets.pyi | |
3da9f6d9 | 478 | %endif |
8a4f48aa JR |
479 | %{py3_sitedir}/PyQt5/QtWebSockets.pyi |
480 | %{py3_sitedir}/PyQt5/QtWidgets.pyi | |
481 | %{py3_sitedir}/PyQt5/QtX11Extras.pyi | |
482 | %{py3_sitedir}/PyQt5/QtXml.pyi | |
483 | %{py3_sitedir}/PyQt5/QtXmlPatterns.pyi | |
61afc5d4 JB |
484 | |
485 | %files -n python3-PyQt5-uic | |
486 | %defattr(644,root,root,755) | |
487 | %attr(755,root,root) %{_bindir}/pyuic5-3 | |
488 | %{py3_sitedir}/PyQt5/uic | |
489 | %endif | |
490 | ||
a0dd6b04 JR |
491 | %files devel-tools |
492 | %defattr(644,root,root,755) | |
493 | %attr(755,root,root) %{_bindir}/pylupdate5 | |
494 | %attr(755,root,root) %{_bindir}/pyrcc5 | |
a0dd6b04 JR |
495 | |
496 | %files examples | |
497 | %defattr(644,root,root,755) | |
498 | %{_examplesdir}/%{name}-%{version} | |
499 | ||
027041dc JB |
500 | %files -n sip-PyQt5 |
501 | %defattr(644,root,root,755) | |
502 | %{_sipfilesdir}/PyQt5 | |
503 | ||
61afc5d4 JB |
504 | %files -n Qt5Designer-plugin-pyqt5 |
505 | %defattr(644,root,root,755) | |
506 | %attr(755,root,root) %{_libdir}/qt5/plugins/designer/libpyqt5.so | |
507 | ||
a0dd6b04 JR |
508 | %files -n qscintilla2-%{module}-api |
509 | %defattr(644,root,root,755) | |
510 | %{_datadir}/qt5/qsci/api/python/PyQt5.api |