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