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