]>
Commit | Line | Data |
---|---|---|
daa4415e JB |
1 | # |
2 | # Conditional build: | |
de8a9faa | 3 | %bcond_without doc # Documentation |
37b97c17 | 4 | %bcond_without system_libvpx # Build with system libvpx |
daa4415e JB |
5 | |
6 | %define orgname qtwebengine | |
daa4415e JB |
7 | Summary: The Qt5 WebEngine library |
8 | Summary(pl.UTF-8): Biblioteka Qt5 WebEngine | |
9 | Name: qt5-%{orgname} | |
e5ae5bcf | 10 | Version: 5.15.1 |
0131022a | 11 | Release: 2 |
daa4415e JB |
12 | License: LGPL v3 or GPL v2+ or commercial |
13 | Group: X11/Libraries | |
c91e1c7d | 14 | Source0: http://download.qt.io/official_releases/qt/5.15/%{version}/submodules/%{orgname}-everywhere-src-%{version}.tar.xz |
e5ae5bcf | 15 | # Source0-md5: e37c44664e8a55471b92b07695f7f7db |
6b0906cb | 16 | Patch0: x32.patch |
daa4415e | 17 | URL: http://www.qt.io/ |
ce64a084 JP |
18 | BuildRequires: Mesa-khrplatform-devel |
19 | BuildRequires: Qt5Core-devel >= %{version} | |
20 | BuildRequires: Qt5Designer-devel >= %{version} | |
21 | BuildRequires: Qt5Gui-devel >= %{version} | |
22 | BuildRequires: Qt5Network-devel >= %{version} | |
23 | BuildRequires: Qt5Positioning-devel >= %{version} | |
24 | BuildRequires: Qt5PrintSupport-devel >= %{version} | |
25 | BuildRequires: Qt5Qml-devel >= %{version} | |
26 | BuildRequires: Qt5Quick-devel >= %{version} | |
8eb70dcd | 27 | BuildRequires: Qt5Svg-devel >= %{version} |
ce64a084 JP |
28 | BuildRequires: Qt5UiTools-devel >= %{version} |
29 | BuildRequires: Qt5WebChannel-devel >= %{version} | |
30 | BuildRequires: Qt5WebSockets-devel >= %{version} | |
31 | BuildRequires: Qt5Widgets-devel >= %{version} | |
32 | BuildRequires: alsa-lib-devel >= 1.0.10 | |
33 | BuildRequires: bison | |
34 | BuildRequires: dbus-devel | |
35 | BuildRequires: ffmpeg-devel | |
36 | BuildRequires: flex | |
37 | BuildRequires: fontconfig-devel | |
38 | BuildRequires: freetype-devel >= 2.4.2 | |
39 | BuildRequires: glib2-devel >= 1:2.32.0 | |
40 | BuildRequires: glibc-misc >= 2.17 | |
41 | BuildRequires: gperf | |
c91e1c7d | 42 | BuildRequires: harfbuzz-devel >= 2.2.0 |
ce64a084 JP |
43 | BuildRequires: jsoncpp-devel |
44 | BuildRequires: lcms2-devel | |
45 | BuildRequires: libdrm-devel | |
46 | BuildRequires: libevent-devel | |
c91e1c7d | 47 | BuildRequires: libicu-devel >= 64 |
ce64a084 JP |
48 | BuildRequires: libjpeg-devel |
49 | BuildRequires: libpng-devel >= 1.6.0 | |
0725f1e0 JP |
50 | BuildRequires: libstdc++-devel |
51 | BuildRequires: libstdc++-static | |
ce64a084 JP |
52 | %{?with_system_libvpx:BuildRequires: libvpx-devel >= 1.8.0} |
53 | BuildRequires: libwebp-devel | |
54 | BuildRequires: libxml2-devel | |
55 | BuildRequires: libxslt-devel | |
56 | BuildRequires: minizip-devel | |
57 | BuildRequires: ninja | |
e5ae5bcf | 58 | BuildRequires: nodejs |
ce64a084 | 59 | BuildRequires: nss-devel >= 3.26 |
c91e1c7d | 60 | BuildRequires: opus-devel >= 1.3.1 |
ce64a084 JP |
61 | BuildRequires: pkgconfig |
62 | BuildRequires: poppler-cpp-devel | |
63 | BuildRequires: protobuf-devel | |
64 | BuildRequires: pulseaudio-devel >= 0.9.10 | |
65 | BuildRequires: re2-devel | |
66 | BuildRequires: snappy-devel | |
de8a9faa | 67 | %if %{with doc} |
ce64a084 | 68 | BuildRequires: qt5-assistant >= %{version} |
daa4415e | 69 | %endif |
ce64a084 JP |
70 | BuildRequires: qt5-build >= %{version} |
71 | BuildRequires: qt5-qmake >= %{version} | |
daa4415e JB |
72 | BuildRequires: rpmbuild(macros) >= 1.654 |
73 | BuildRequires: tar >= 1:1.22 | |
ce64a084 JP |
74 | BuildRequires: xorg-lib-libX11-devel |
75 | BuildRequires: xorg-lib-libXcomposite-devel | |
76 | BuildRequires: xorg-lib-libXcursor-devel | |
77 | BuildRequires: xorg-lib-libXi-devel | |
78 | BuildRequires: xorg-lib-libXrandr-devel | |
79 | BuildRequires: xorg-lib-libXtst-devel | |
c91e1c7d | 80 | BuildRequires: xorg-lib-libxkbcommon-devel |
daa4415e | 81 | BuildRequires: xz |
ce64a084 | 82 | BuildRequires: zlib-devel |
2d29c405 | 83 | BuildConflicts: Qt5WebEngine-devel |
c91e1c7d JP |
84 | Requires: alsa-lib >= 1.0.10 |
85 | Requires: freetype >= 2.4.2 | |
86 | Requires: harfbuzz >= 2.2.0 | |
87 | Requires: libicu >= 64 | |
88 | Requires: libpng >= 1.6.0 | |
89 | %{?with_system_libvpx:Requires: libvpx >= 1.8.0} | |
90 | Requires: nss >= 3.26 | |
91 | Requires: opus >= 1.3.1 | |
92 | Requires: pulseaudio-libs >= 0.9.10 | |
daa4415e JB |
93 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) |
94 | ||
95 | %define specflags -fno-strict-aliasing | |
96 | %define qt5dir %{_libdir}/qt5 | |
97 | ||
98 | %description | |
99 | Qt is a cross-platform application and UI framework. Using Qt, you can | |
100 | write web-enabled applications once and deploy them across desktop, | |
101 | mobile and embedded systems without rewriting the source code. | |
102 | ||
103 | This package contains Qt5 WebEngine library. | |
104 | ||
105 | %description -l pl.UTF-8 | |
106 | Qt to wieloplatformowy szkielet aplikacji i interfejsów użytkownika. | |
107 | Przy użyciu Qt można pisać aplikacje powiązane z WWW i wdrażać je w | |
108 | systemach biurkowych, przenośnych i wbudowanych bez przepisywania kodu | |
109 | źródłowego. | |
110 | ||
111 | Ten pakiet zawiera bibliotekę Qt5 WebEngine. | |
112 | ||
113 | %package -n Qt5WebEngine | |
114 | Summary: The Qt5 WebEngine library | |
115 | Summary(pl.UTF-8): Biblioteka Qt5 WebEngine | |
116 | Group: Libraries | |
ce64a084 JP |
117 | Requires: Qt5Core >= %{version} |
118 | Requires: Qt5Network >= %{version} | |
119 | Requires: Qt5Qml >= %{version} | |
daa4415e JB |
120 | |
121 | %description -n Qt5WebEngine | |
122 | Qt5 WebEngine library provides seamless integration of C++ and QML | |
123 | applications with HTML/JavaScript clients. | |
124 | ||
125 | %description -n Qt5WebEngine -l pl.UTF-8 | |
126 | Biblioteka Qt5 WebEngine udostępnia integrację aplikacji C++ i QML z | |
127 | klientami w HTML-u/JavaScripcie. | |
128 | ||
129 | %package -n Qt5WebEngine-devel | |
130 | Summary: Qt5 WebEngine library - development files | |
131 | Summary(pl.UTF-8): Biblioteka Qt5 WebEngine - pliki programistyczne | |
132 | Group: Development/Libraries | |
ce64a084 JP |
133 | Requires: Qt5Core-devel >= %{version} |
134 | Requires: Qt5Network-devel >= %{version} | |
135 | Requires: Qt5Qml-devel >= %{version} | |
daa4415e JB |
136 | Requires: Qt5WebEngine = %{version}-%{release} |
137 | ||
138 | %description -n Qt5WebEngine-devel | |
139 | Qt5 WebEngine library - development files. | |
140 | ||
141 | %description -n Qt5WebEngine-devel -l pl.UTF-8 | |
142 | Biblioteka Qt5 WebEngine - pliki programistyczne. | |
143 | ||
144 | %package doc | |
145 | Summary: Qt5 WebEngine documentation in HTML format | |
146 | Summary(pl.UTF-8): Dokumentacja do biblioteki Qt5 WebEngine w formacie HTML | |
147 | Group: Documentation | |
ce64a084 | 148 | Requires: qt5-doc-common >= %{version} |
daa4415e JB |
149 | %if "%{_rpmversion}" >= "5" |
150 | BuildArch: noarch | |
151 | %endif | |
152 | ||
153 | %description doc | |
154 | Qt5 WebEngine documentation in HTML format. | |
155 | ||
156 | %description doc -l pl.UTF-8 | |
157 | Dokumentacja do biblioteki Qt5 WebEngine w formacie HTML. | |
158 | ||
159 | %package doc-qch | |
160 | Summary: Qt5 WebEngine documentation in QCH format | |
161 | Summary(pl.UTF-8): Dokumentacja do biblioteki Qt5 WebEngine w formacie QCH | |
162 | Group: Documentation | |
ce64a084 | 163 | Requires: qt5-doc-common >= %{version} |
daa4415e JB |
164 | %if "%{_rpmversion}" >= "5" |
165 | BuildArch: noarch | |
166 | %endif | |
167 | ||
168 | %description doc-qch | |
169 | Qt5 WebEngine documentation in QCH format. | |
170 | ||
171 | %description doc-qch -l pl.UTF-8 | |
172 | Dokumentacja do biblioteki Qt5 WebEngine w formacie QCH. | |
173 | ||
174 | %package examples | |
175 | Summary: Qt5 WebEngine examples | |
176 | Summary(pl.UTF-8): Przykłady do biblioteki Qt5 WebEngine | |
177 | Group: X11/Development/Libraries | |
178 | %if "%{_rpmversion}" >= "5" | |
179 | BuildArch: noarch | |
180 | %endif | |
181 | ||
182 | %description examples | |
183 | Qt5 WebEngine examples. | |
184 | ||
185 | %description examples -l pl.UTF-8 | |
186 | Przykłady do biblioteki Qt5 WebEngine. | |
187 | ||
c91e1c7d JP |
188 | %package -n Qt5Pdf |
189 | Summary: The Qt5 Pdf library | |
190 | Summary(pl.UTF-8): Biblioteka Qt5 Pdf | |
191 | Group: Libraries | |
192 | Requires: Qt5Core >= %{version} | |
193 | Requires: Qt5Gui >= %{version} | |
194 | Requires: Qt5Network >= %{version} | |
195 | Requires: Qt5Qml >= %{version} | |
196 | Requires: Qt5Widgets >= %{version} | |
197 | ||
198 | %description -n Qt5Pdf | |
199 | Qt5 Pdf module contains classes and functions for rendering PDF | |
200 | documents. | |
201 | ||
202 | %description -n Qt5Pdf -l pl.UTF-8 | |
203 | Moduł Qt5 Pdf zawiera klasy i funkcje do renderowania dokumentów PDF. | |
204 | ||
205 | %package -n Qt5Pdf-devel | |
206 | Summary: Qt5 Pdf library - development files | |
207 | Summary(pl.UTF-8): Biblioteka Qt5 Pdf - pliki programistyczne | |
208 | Group: Development/Libraries | |
209 | Requires: Qt5Core-devel >= %{version} | |
210 | Requires: Qt5Gui-devel >= %{version} | |
211 | Requires: Qt5Network-devel >= %{version} | |
212 | Requires: Qt5Pdf = %{version}-%{release} | |
213 | Requires: Qt5Qml-devel >= %{version} | |
214 | Requires: Qt5Widgets-devel >= %{version} | |
215 | ||
216 | %description -n Qt5Pdf-devel | |
217 | Qt5 Pdf library - development files. | |
218 | ||
219 | %description -n Qt5Pdf-devel -l pl.UTF-8 | |
220 | Biblioteka Qt5 Pdf - pliki programistyczne. | |
221 | ||
daa4415e | 222 | %prep |
7ed59526 | 223 | %setup -q -n %{orgname}-everywhere-src-%{version} |
06e41866 | 224 | %ifarch x32 |
6b0906cb | 225 | %patch0 -p1 |
06e41866 | 226 | %endif |
1abc1d3c | 227 | |
daa4415e | 228 | %build |
06e41866 JR |
229 | %ifarch x32 |
230 | export V8_TARGET_ARCH="x32" | |
231 | %endif | |
ce64a084 JP |
232 | qmake-qt5 -- \ |
233 | -webengine-ffmpeg \ | |
2d011345 | 234 | -webengine-icu \ |
e5ae5bcf JP |
235 | -webengine-opus \ |
236 | -webengine-proprietary-codecs \ | |
237 | -webengine-webp \ | |
238 | -webengine-webrtc | |
0a1dd662 | 239 | %{?__jobs:NINJAJOBS="-j %__jobs"} \ |
1abc1d3c | 240 | %{__make} |
de8a9faa | 241 | %{?with_doc:%{__make} docs} |
daa4415e JB |
242 | |
243 | %install | |
244 | rm -rf $RPM_BUILD_ROOT | |
245 | %{__make} install \ | |
246 | INSTALL_ROOT=$RPM_BUILD_ROOT | |
247 | ||
de8a9faa JR |
248 | %if %{with doc} |
249 | %{__make} install_docs \ | |
daa4415e | 250 | INSTALL_ROOT=$RPM_BUILD_ROOT |
de8a9faa | 251 | %endif |
daa4415e JB |
252 | |
253 | # useless symlinks | |
7ed59526 | 254 | %{__rm} $RPM_BUILD_ROOT%{_libdir}/libQt5*.so.5.?? |
daa4415e JB |
255 | # actually drop *.la, follow policy of not packaging them when *.pc exist |
256 | %{__rm} $RPM_BUILD_ROOT%{_libdir}/libQt5*.la | |
257 | ||
258 | # Prepare some files list | |
259 | ifecho() { | |
260 | r="$RPM_BUILD_ROOT$2" | |
261 | if [ -d "$r" ]; then | |
262 | echo "%%dir $2" >> $1.files | |
263 | elif [ -x "$r" ] ; then | |
264 | echo "%%attr(755,root,root) $2" >> $1.files | |
265 | elif [ -f "$r" ]; then | |
266 | echo "$2" >> $1.files | |
267 | else | |
268 | echo "Error generation $1 files list!" | |
269 | echo "$r: no such file or directory!" | |
270 | return 1 | |
271 | fi | |
272 | } | |
273 | ifecho_tree() { | |
274 | ifecho $1 $2 | |
275 | for f in `find $RPM_BUILD_ROOT$2 -printf "%%P "`; do | |
276 | ifecho $1 $2/$f | |
277 | done | |
278 | } | |
279 | ||
280 | echo "%defattr(644,root,root,755)" > examples.files | |
daa4415e | 281 | ifecho_tree examples %{_examplesdir}/qt5/webengine |
1abc1d3c | 282 | ifecho_tree examples %{_examplesdir}/qt5/webenginewidgets |
daa4415e JB |
283 | |
284 | %clean | |
285 | rm -rf $RPM_BUILD_ROOT | |
286 | ||
287 | %post -n Qt5WebEngine -p /sbin/ldconfig | |
288 | %postun -n Qt5WebEngine -p /sbin/ldconfig | |
289 | ||
c91e1c7d JP |
290 | %post -n Qt5Pdf -p /sbin/ldconfig |
291 | %postun -n Qt5Pdf -p /sbin/ldconfig | |
292 | ||
daa4415e JB |
293 | %files -n Qt5WebEngine |
294 | %defattr(644,root,root,755) | |
295 | %attr(755,root,root) %{_libdir}/libQt5WebEngine.so.*.*.* | |
296 | %attr(755,root,root) %ghost %{_libdir}/libQt5WebEngine.so.5 | |
1abc1d3c AM |
297 | %attr(755,root,root) %{_libdir}/libQt5WebEngineCore.so.*.*.* |
298 | %attr(755,root,root) %ghost %{_libdir}/libQt5WebEngineCore.so.5 | |
299 | %attr(755,root,root) %{_libdir}/libQt5WebEngineWidgets.so.*.*.* | |
300 | %attr(755,root,root) %ghost %{_libdir}/libQt5WebEngineWidgets.so.5 | |
daa4415e | 301 | %dir %{qt5dir}/qml/QtWebEngine |
daa4415e JB |
302 | %{qt5dir}/qml/QtWebEngine/plugins.qmltypes |
303 | %{qt5dir}/qml/QtWebEngine/qmldir | |
1abc1d3c AM |
304 | %{qt5dir}/qml/QtWebEngine/Controls1Delegates |
305 | %{qt5dir}/qml/QtWebEngine/Controls2Delegates | |
306 | %attr(755,root,root) %{qt5dir}/qml/QtWebEngine/libqtwebengineplugin.so | |
cdd0ffa8 | 307 | %dir %{_datadir}/qt5/resources |
1abc1d3c AM |
308 | %{_datadir}/qt5/resources/qtwebengine*.pak |
309 | %attr(755,root,root) %{_libdir}/qt5/bin/qwebengine_convert_dict | |
310 | %attr(755,root,root) %{_libdir}/qt5/libexec/QtWebEngineProcess | |
311 | %attr(755,root,root) %{_libdir}/qt5/plugins/designer/libqwebengineview.so | |
daa4415e JB |
312 | |
313 | %files -n Qt5WebEngine-devel | |
314 | %defattr(644,root,root,755) | |
315 | %attr(755,root,root) %{_libdir}/libQt5WebEngine.so | |
1abc1d3c AM |
316 | %attr(755,root,root) %{_libdir}/libQt5WebEngineCore.so |
317 | %attr(755,root,root) %{_libdir}/libQt5WebEngineWidgets.so | |
daa4415e | 318 | %{_libdir}/libQt5WebEngine.prl |
1abc1d3c AM |
319 | %{_libdir}/libQt5WebEngineCore.prl |
320 | %{_libdir}/libQt5WebEngineWidgets.prl | |
daa4415e | 321 | %{_includedir}/qt5/QtWebEngine |
1abc1d3c AM |
322 | %{_includedir}/qt5/QtWebEngineCore |
323 | %{_includedir}/qt5/QtWebEngineWidgets | |
daa4415e | 324 | %{_pkgconfigdir}/Qt5WebEngine.pc |
1abc1d3c AM |
325 | %{_pkgconfigdir}/Qt5WebEngineCore.pc |
326 | %{_pkgconfigdir}/Qt5WebEngineWidgets.pc | |
daa4415e | 327 | %{_libdir}/cmake/Qt5WebEngine |
1abc1d3c AM |
328 | %{_libdir}/cmake/Qt5WebEngineCore |
329 | %{_libdir}/cmake/Qt5WebEngineWidgets | |
330 | %{_libdir}/cmake/Qt5Designer/Qt5Designer_QWebEngineViewPlugin.cmake | |
daa4415e JB |
331 | %{qt5dir}/mkspecs/modules/qt_lib_webengine.pri |
332 | %{qt5dir}/mkspecs/modules/qt_lib_webengine_private.pri | |
1abc1d3c AM |
333 | %{_libdir}/qt5/mkspecs/modules/qt_lib_webenginecore.pri |
334 | %{_libdir}/qt5/mkspecs/modules/qt_lib_webenginecore_private.pri | |
335 | %{_libdir}/qt5/mkspecs/modules/qt_lib_webenginecoreheaders_private.pri | |
336 | %{_libdir}/qt5/mkspecs/modules/qt_lib_webenginewidgets.pri | |
337 | %{_libdir}/qt5/mkspecs/modules/qt_lib_webenginewidgets_private.pri | |
daa4415e | 338 | |
de8a9faa | 339 | %if %{with doc} |
daa4415e JB |
340 | %files doc |
341 | %defattr(644,root,root,755) | |
342 | %{_docdir}/qt5-doc/qtwebengine | |
343 | ||
daa4415e JB |
344 | %files doc-qch |
345 | %defattr(644,root,root,755) | |
346 | %{_docdir}/qt5-doc/qtwebengine.qch | |
347 | %endif | |
348 | ||
349 | %files examples -f examples.files | |
350 | %defattr(644,root,root,755) | |
351 | # XXX: dir shared with qt5-qtbase-examples | |
352 | %dir %{_examplesdir}/qt5 | |
c91e1c7d JP |
353 | |
354 | %files -n Qt5Pdf | |
355 | %defattr(644,root,root,755) | |
356 | %attr(755,root,root) %{_libdir}/libQt5Pdf.so.*.*.* | |
357 | %attr(755,root,root) %ghost %{_libdir}/libQt5Pdf.so.5 | |
358 | %attr(755,root,root) %{_libdir}/libQt5PdfWidgets.so.*.*.* | |
359 | %attr(755,root,root) %ghost %{_libdir}/libQt5PdfWidgets.so.5 | |
360 | %dir %{qt5dir}/qml/QtQuick/Pdf | |
361 | %{qt5dir}/qml/QtQuick/Pdf/plugins.qmltypes | |
362 | %{qt5dir}/qml/QtQuick/Pdf/qmldir | |
363 | %{qt5dir}/qml/QtQuick/Pdf/qml | |
364 | %attr(755,root,root) %{qt5dir}/qml/QtQuick/Pdf/libpdfplugin.so | |
365 | %attr(755,root,root) %{_libdir}/qt5/plugins/imageformats/libqpdf.so | |
366 | ||
367 | %files -n Qt5Pdf-devel | |
368 | %defattr(644,root,root,755) | |
369 | %attr(755,root,root) %{_libdir}/libQt5Pdf.so | |
370 | %attr(755,root,root) %{_libdir}/libQt5PdfWidgets.so | |
371 | %{_libdir}/libQt5Pdf.prl | |
372 | %{_libdir}/libQt5PdfWidgets.prl | |
373 | %{_includedir}/qt5/QtPdf | |
374 | %{_includedir}/qt5/QtPdfWidgets | |
375 | %{_pkgconfigdir}/Qt5Pdf.pc | |
376 | %{_pkgconfigdir}/Qt5PdfWidgets.pc | |
377 | %{_libdir}/cmake/Qt5Gui/Qt5Gui_QPdfPlugin.cmake | |
378 | %{_libdir}/cmake/Qt5Pdf | |
379 | %{_libdir}/cmake/Qt5PdfWidgets | |
380 | %{qt5dir}/mkspecs/modules/qt_lib_pdf.pri | |
381 | %{qt5dir}/mkspecs/modules/qt_lib_pdf_private.pri | |
382 | %{qt5dir}/mkspecs/modules/qt_lib_pdfwidgets.pri | |
383 | %{qt5dir}/mkspecs/modules/qt_lib_pdfwidgets_private.pri |