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