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