- release 2 (by relup.sh)
[packages/qt5-qtwebengine.git] / qt5-qtwebengine.spec
1 #
2 # Conditional build:
3 %bcond_without  doc     # Documentation
4 %bcond_without  system_libvpx   # Build with system libvpx
5
6 %define         orgname         qtwebengine
7 Summary:        The Qt5 WebEngine library
8 Summary(pl.UTF-8):      Biblioteka Qt5 WebEngine
9 Name:           qt5-%{orgname}
10 Version:        5.15.2
11 Release:        2
12 License:        LGPL v3 or GPL v2+ or commercial
13 Group:          X11/Libraries
14 Source0:        http://download.qt.io/official_releases/qt/5.15/%{version}/submodules/%{orgname}-everywhere-src-%{version}.tar.xz
15 # Source0-md5:  c88cbe3158feb20c4feb3d54262feb23
16 Patch0:         x32.patch
17 URL:            http://www.qt.io/
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:  Qt5Svg-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
42 BuildRequires:  harfbuzz-devel >= 2.2.0
43 BuildRequires:  jsoncpp-devel
44 BuildRequires:  lcms2-devel
45 BuildRequires:  libdrm-devel
46 BuildRequires:  libevent-devel
47 BuildRequires:  libicu-devel >= 64
48 BuildRequires:  libjpeg-devel
49 BuildRequires:  libpng-devel >= 1.6.0
50 BuildRequires:  libstdc++-devel
51 BuildRequires:  libstdc++-static
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:  nodejs
59 BuildRequires:  nss-devel >= 3.26
60 BuildRequires:  opus-devel >= 1.3.1
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
67 %if %{with doc}
68 BuildRequires:  qt5-assistant >= %{version}
69 %endif
70 BuildRequires:  qt5-build >= %{version}
71 BuildRequires:  qt5-qmake >= %{version}
72 BuildRequires:  rpmbuild(macros) >= 1.654
73 BuildRequires:  tar >= 1:1.22
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
80 BuildRequires:  xorg-lib-libxkbcommon-devel
81 BuildRequires:  xz
82 BuildRequires:  zlib-devel
83 BuildConflicts: Qt5WebEngine-devel
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
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
117 Requires:       Qt5Core >= %{version}
118 Requires:       Qt5Network >= %{version}
119 Requires:       Qt5Qml >= %{version}
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
133 Requires:       Qt5Core-devel >= %{version}
134 Requires:       Qt5Network-devel >= %{version}
135 Requires:       Qt5Qml-devel >= %{version}
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
148 Requires:       qt5-doc-common >= %{version}
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
163 Requires:       qt5-doc-common >= %{version}
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
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
222 %prep
223 %setup -q -n %{orgname}-everywhere-src-%{version}
224 %ifarch x32
225 %patch0 -p1
226 %endif
227
228 %build
229 %ifarch x32
230 export V8_TARGET_ARCH="x32"
231 %endif
232 qmake-qt5 -- \
233         -webengine-ffmpeg \
234         -webengine-icu \
235         -webengine-opus \
236         -webengine-proprietary-codecs \
237         -webengine-webp \
238         -webengine-webrtc
239 %{?__jobs:NINJAJOBS="-j %__jobs"} \
240 %{__make}
241 %{?with_doc:%{__make} docs}
242
243 %install
244 rm -rf $RPM_BUILD_ROOT
245 %{__make} install \
246         INSTALL_ROOT=$RPM_BUILD_ROOT
247
248 %if %{with doc}
249 %{__make} install_docs \
250         INSTALL_ROOT=$RPM_BUILD_ROOT
251 %endif
252
253 # useless symlinks
254 %{__rm} $RPM_BUILD_ROOT%{_libdir}/libQt5*.so.5.??
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
281 ifecho_tree examples %{_examplesdir}/qt5/webengine
282 ifecho_tree examples %{_examplesdir}/qt5/webenginewidgets
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
290 %post   -n Qt5Pdf -p /sbin/ldconfig
291 %postun -n Qt5Pdf -p /sbin/ldconfig
292
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
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
301 %dir %{qt5dir}/qml/QtWebEngine
302 %{qt5dir}/qml/QtWebEngine/plugins.qmltypes
303 %{qt5dir}/qml/QtWebEngine/qmldir
304 %{qt5dir}/qml/QtWebEngine/Controls1Delegates
305 %{qt5dir}/qml/QtWebEngine/Controls2Delegates
306 %attr(755,root,root) %{qt5dir}/qml/QtWebEngine/libqtwebengineplugin.so
307 %dir %{_datadir}/qt5/resources
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
312
313 %files -n Qt5WebEngine-devel
314 %defattr(644,root,root,755)
315 %attr(755,root,root) %{_libdir}/libQt5WebEngine.so
316 %attr(755,root,root) %{_libdir}/libQt5WebEngineCore.so
317 %attr(755,root,root) %{_libdir}/libQt5WebEngineWidgets.so
318 %{_libdir}/libQt5WebEngine.prl
319 %{_libdir}/libQt5WebEngineCore.prl
320 %{_libdir}/libQt5WebEngineWidgets.prl
321 %{_includedir}/qt5/QtWebEngine
322 %{_includedir}/qt5/QtWebEngineCore
323 %{_includedir}/qt5/QtWebEngineWidgets
324 %{_pkgconfigdir}/Qt5WebEngine.pc
325 %{_pkgconfigdir}/Qt5WebEngineCore.pc
326 %{_pkgconfigdir}/Qt5WebEngineWidgets.pc
327 %{_libdir}/cmake/Qt5WebEngine
328 %{_libdir}/cmake/Qt5WebEngineCore
329 %{_libdir}/cmake/Qt5WebEngineWidgets
330 %{_libdir}/cmake/Qt5Designer/Qt5Designer_QWebEngineViewPlugin.cmake
331 %{qt5dir}/mkspecs/modules/qt_lib_webengine.pri
332 %{qt5dir}/mkspecs/modules/qt_lib_webengine_private.pri
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
338
339 %if %{with doc}
340 %files doc
341 %defattr(644,root,root,755)
342 %{_docdir}/qt5-doc/qtwebengine
343
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
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
This page took 0.216355 seconds and 3 git commands to generate.