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