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