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