]>
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} | |
f4ec57ae | 10 | Version: 5.13.0 |
2fdf014f | 11 | Release: 1 |
daa4415e JB |
12 | License: LGPL v3 or GPL v2+ or commercial |
13 | Group: X11/Libraries | |
f4ec57ae JP |
14 | Source0: http://download.qt.io/official_releases/qt/5.13/%{version}/submodules/%{orgname}-everywhere-src-%{version}.tar.xz |
15 | # Source0-md5: 235ecc14211ba03ae7331c175c1b7c78 | |
abfabd27 | 16 | Patch0: remove-compiler-check.patch |
1b8fd16f | 17 | Patch1: x32.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 | |
42 | BuildRequires: harfbuzz-devel >= 1.4.2 | |
43 | BuildRequires: jsoncpp-devel | |
44 | BuildRequires: lcms2-devel | |
45 | BuildRequires: libdrm-devel | |
46 | BuildRequires: libevent-devel | |
47 | BuildRequires: libicu-devel >= 53 | |
48 | BuildRequires: libjpeg-devel | |
49 | BuildRequires: libpng-devel >= 1.6.0 | |
50 | %{?with_system_libvpx:BuildRequires: libvpx-devel >= 1.8.0} | |
51 | BuildRequires: libwebp-devel | |
52 | BuildRequires: libxml2-devel | |
53 | BuildRequires: libxslt-devel | |
54 | BuildRequires: minizip-devel | |
55 | BuildRequires: ninja | |
56 | BuildRequires: nss-devel >= 3.26 | |
57 | BuildRequires: opus-devel | |
58 | BuildRequires: pkgconfig | |
59 | BuildRequires: poppler-cpp-devel | |
60 | BuildRequires: protobuf-devel | |
61 | BuildRequires: pulseaudio-devel >= 0.9.10 | |
62 | BuildRequires: re2-devel | |
63 | BuildRequires: snappy-devel | |
de8a9faa | 64 | %if %{with doc} |
ce64a084 | 65 | BuildRequires: qt5-assistant >= %{version} |
daa4415e | 66 | %endif |
ce64a084 JP |
67 | BuildRequires: qt5-build >= %{version} |
68 | BuildRequires: qt5-qmake >= %{version} | |
daa4415e JB |
69 | BuildRequires: rpmbuild(macros) >= 1.654 |
70 | BuildRequires: tar >= 1:1.22 | |
ce64a084 JP |
71 | BuildRequires: xorg-lib-libX11-devel |
72 | BuildRequires: xorg-lib-libXcomposite-devel | |
73 | BuildRequires: xorg-lib-libXcursor-devel | |
74 | BuildRequires: xorg-lib-libXi-devel | |
75 | BuildRequires: xorg-lib-libXrandr-devel | |
76 | BuildRequires: xorg-lib-libXtst-devel | |
daa4415e | 77 | BuildRequires: xz |
ce64a084 | 78 | BuildRequires: zlib-devel |
2d29c405 | 79 | BuildConflicts: Qt5WebEngine-devel |
daa4415e JB |
80 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) |
81 | ||
82 | %define specflags -fno-strict-aliasing | |
83 | %define qt5dir %{_libdir}/qt5 | |
84 | ||
85 | %description | |
86 | Qt is a cross-platform application and UI framework. Using Qt, you can | |
87 | write web-enabled applications once and deploy them across desktop, | |
88 | mobile and embedded systems without rewriting the source code. | |
89 | ||
90 | This package contains Qt5 WebEngine library. | |
91 | ||
92 | %description -l pl.UTF-8 | |
93 | Qt to wieloplatformowy szkielet aplikacji i interfejsów użytkownika. | |
94 | Przy użyciu Qt można pisać aplikacje powiązane z WWW i wdrażać je w | |
95 | systemach biurkowych, przenośnych i wbudowanych bez przepisywania kodu | |
96 | źródłowego. | |
97 | ||
98 | Ten pakiet zawiera bibliotekę Qt5 WebEngine. | |
99 | ||
100 | %package -n Qt5WebEngine | |
101 | Summary: The Qt5 WebEngine library | |
102 | Summary(pl.UTF-8): Biblioteka Qt5 WebEngine | |
103 | Group: Libraries | |
ce64a084 JP |
104 | Requires: Qt5Core >= %{version} |
105 | Requires: Qt5Network >= %{version} | |
106 | Requires: Qt5Qml >= %{version} | |
daa4415e JB |
107 | |
108 | %description -n Qt5WebEngine | |
109 | Qt5 WebEngine library provides seamless integration of C++ and QML | |
110 | applications with HTML/JavaScript clients. | |
111 | ||
112 | %description -n Qt5WebEngine -l pl.UTF-8 | |
113 | Biblioteka Qt5 WebEngine udostępnia integrację aplikacji C++ i QML z | |
114 | klientami w HTML-u/JavaScripcie. | |
115 | ||
116 | %package -n Qt5WebEngine-devel | |
117 | Summary: Qt5 WebEngine library - development files | |
118 | Summary(pl.UTF-8): Biblioteka Qt5 WebEngine - pliki programistyczne | |
119 | Group: Development/Libraries | |
ce64a084 JP |
120 | Requires: Qt5Core-devel >= %{version} |
121 | Requires: Qt5Network-devel >= %{version} | |
122 | Requires: Qt5Qml-devel >= %{version} | |
daa4415e JB |
123 | Requires: Qt5WebEngine = %{version}-%{release} |
124 | ||
125 | %description -n Qt5WebEngine-devel | |
126 | Qt5 WebEngine library - development files. | |
127 | ||
128 | %description -n Qt5WebEngine-devel -l pl.UTF-8 | |
129 | Biblioteka Qt5 WebEngine - pliki programistyczne. | |
130 | ||
131 | %package doc | |
132 | Summary: Qt5 WebEngine documentation in HTML format | |
133 | Summary(pl.UTF-8): Dokumentacja do biblioteki Qt5 WebEngine w formacie HTML | |
134 | Group: Documentation | |
ce64a084 | 135 | Requires: qt5-doc-common >= %{version} |
daa4415e JB |
136 | %if "%{_rpmversion}" >= "5" |
137 | BuildArch: noarch | |
138 | %endif | |
139 | ||
140 | %description doc | |
141 | Qt5 WebEngine documentation in HTML format. | |
142 | ||
143 | %description doc -l pl.UTF-8 | |
144 | Dokumentacja do biblioteki Qt5 WebEngine w formacie HTML. | |
145 | ||
146 | %package doc-qch | |
147 | Summary: Qt5 WebEngine documentation in QCH format | |
148 | Summary(pl.UTF-8): Dokumentacja do biblioteki Qt5 WebEngine w formacie QCH | |
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-qch | |
156 | Qt5 WebEngine documentation in QCH format. | |
157 | ||
158 | %description doc-qch -l pl.UTF-8 | |
159 | Dokumentacja do biblioteki Qt5 WebEngine w formacie QCH. | |
160 | ||
161 | %package examples | |
162 | Summary: Qt5 WebEngine examples | |
163 | Summary(pl.UTF-8): Przykłady do biblioteki Qt5 WebEngine | |
164 | Group: X11/Development/Libraries | |
165 | %if "%{_rpmversion}" >= "5" | |
166 | BuildArch: noarch | |
167 | %endif | |
168 | ||
169 | %description examples | |
170 | Qt5 WebEngine examples. | |
171 | ||
172 | %description examples -l pl.UTF-8 | |
173 | Przykłady do biblioteki Qt5 WebEngine. | |
174 | ||
175 | %prep | |
7ed59526 | 176 | %setup -q -n %{orgname}-everywhere-src-%{version} |
abfabd27 | 177 | %patch0 -p1 |
06e41866 | 178 | %ifarch x32 |
1b8fd16f | 179 | %patch1 -p1 |
06e41866 | 180 | %endif |
1abc1d3c | 181 | cd ./src/3rdparty/chromium |
1abc1d3c | 182 | |
daa4415e | 183 | %build |
06e41866 JR |
184 | %ifarch x32 |
185 | export V8_TARGET_ARCH="x32" | |
186 | %endif | |
ce64a084 JP |
187 | qmake-qt5 -- \ |
188 | -webengine-ffmpeg \ | |
189 | -webengine-icu | |
1abc1d3c | 190 | %{__make} |
de8a9faa | 191 | %{?with_doc:%{__make} docs} |
daa4415e JB |
192 | |
193 | %install | |
194 | rm -rf $RPM_BUILD_ROOT | |
195 | %{__make} install \ | |
196 | INSTALL_ROOT=$RPM_BUILD_ROOT | |
197 | ||
de8a9faa JR |
198 | %if %{with doc} |
199 | %{__make} install_docs \ | |
daa4415e | 200 | INSTALL_ROOT=$RPM_BUILD_ROOT |
de8a9faa | 201 | %endif |
daa4415e JB |
202 | |
203 | # useless symlinks | |
7ed59526 | 204 | %{__rm} $RPM_BUILD_ROOT%{_libdir}/libQt5*.so.5.?? |
daa4415e JB |
205 | # actually drop *.la, follow policy of not packaging them when *.pc exist |
206 | %{__rm} $RPM_BUILD_ROOT%{_libdir}/libQt5*.la | |
207 | ||
208 | # Prepare some files list | |
209 | ifecho() { | |
210 | r="$RPM_BUILD_ROOT$2" | |
211 | if [ -d "$r" ]; then | |
212 | echo "%%dir $2" >> $1.files | |
213 | elif [ -x "$r" ] ; then | |
214 | echo "%%attr(755,root,root) $2" >> $1.files | |
215 | elif [ -f "$r" ]; then | |
216 | echo "$2" >> $1.files | |
217 | else | |
218 | echo "Error generation $1 files list!" | |
219 | echo "$r: no such file or directory!" | |
220 | return 1 | |
221 | fi | |
222 | } | |
223 | ifecho_tree() { | |
224 | ifecho $1 $2 | |
225 | for f in `find $RPM_BUILD_ROOT$2 -printf "%%P "`; do | |
226 | ifecho $1 $2/$f | |
227 | done | |
228 | } | |
229 | ||
230 | echo "%defattr(644,root,root,755)" > examples.files | |
daa4415e | 231 | ifecho_tree examples %{_examplesdir}/qt5/webengine |
1abc1d3c | 232 | ifecho_tree examples %{_examplesdir}/qt5/webenginewidgets |
daa4415e JB |
233 | |
234 | %clean | |
235 | rm -rf $RPM_BUILD_ROOT | |
236 | ||
237 | %post -n Qt5WebEngine -p /sbin/ldconfig | |
238 | %postun -n Qt5WebEngine -p /sbin/ldconfig | |
239 | ||
240 | %files -n Qt5WebEngine | |
241 | %defattr(644,root,root,755) | |
242 | %attr(755,root,root) %{_libdir}/libQt5WebEngine.so.*.*.* | |
243 | %attr(755,root,root) %ghost %{_libdir}/libQt5WebEngine.so.5 | |
1abc1d3c AM |
244 | %attr(755,root,root) %{_libdir}/libQt5WebEngineCore.so.*.*.* |
245 | %attr(755,root,root) %ghost %{_libdir}/libQt5WebEngineCore.so.5 | |
246 | %attr(755,root,root) %{_libdir}/libQt5WebEngineWidgets.so.*.*.* | |
247 | %attr(755,root,root) %ghost %{_libdir}/libQt5WebEngineWidgets.so.5 | |
daa4415e | 248 | %dir %{qt5dir}/qml/QtWebEngine |
daa4415e JB |
249 | %{qt5dir}/qml/QtWebEngine/plugins.qmltypes |
250 | %{qt5dir}/qml/QtWebEngine/qmldir | |
1abc1d3c AM |
251 | %{qt5dir}/qml/QtWebEngine/Controls1Delegates |
252 | %{qt5dir}/qml/QtWebEngine/Controls2Delegates | |
253 | %attr(755,root,root) %{qt5dir}/qml/QtWebEngine/libqtwebengineplugin.so | |
cdd0ffa8 | 254 | %dir %{_datadir}/qt5/resources |
1abc1d3c AM |
255 | %{_datadir}/qt5/resources/qtwebengine*.pak |
256 | %attr(755,root,root) %{_libdir}/qt5/bin/qwebengine_convert_dict | |
257 | %attr(755,root,root) %{_libdir}/qt5/libexec/QtWebEngineProcess | |
258 | %attr(755,root,root) %{_libdir}/qt5/plugins/designer/libqwebengineview.so | |
daa4415e JB |
259 | |
260 | %files -n Qt5WebEngine-devel | |
261 | %defattr(644,root,root,755) | |
262 | %attr(755,root,root) %{_libdir}/libQt5WebEngine.so | |
1abc1d3c AM |
263 | %attr(755,root,root) %{_libdir}/libQt5WebEngineCore.so |
264 | %attr(755,root,root) %{_libdir}/libQt5WebEngineWidgets.so | |
daa4415e | 265 | %{_libdir}/libQt5WebEngine.prl |
1abc1d3c AM |
266 | %{_libdir}/libQt5WebEngineCore.prl |
267 | %{_libdir}/libQt5WebEngineWidgets.prl | |
daa4415e | 268 | %{_includedir}/qt5/QtWebEngine |
1abc1d3c AM |
269 | %{_includedir}/qt5/QtWebEngineCore |
270 | %{_includedir}/qt5/QtWebEngineWidgets | |
daa4415e | 271 | %{_pkgconfigdir}/Qt5WebEngine.pc |
1abc1d3c AM |
272 | %{_pkgconfigdir}/Qt5WebEngineCore.pc |
273 | %{_pkgconfigdir}/Qt5WebEngineWidgets.pc | |
daa4415e | 274 | %{_libdir}/cmake/Qt5WebEngine |
1abc1d3c AM |
275 | %{_libdir}/cmake/Qt5WebEngineCore |
276 | %{_libdir}/cmake/Qt5WebEngineWidgets | |
277 | %{_libdir}/cmake/Qt5Designer/Qt5Designer_QWebEngineViewPlugin.cmake | |
daa4415e JB |
278 | %{qt5dir}/mkspecs/modules/qt_lib_webengine.pri |
279 | %{qt5dir}/mkspecs/modules/qt_lib_webengine_private.pri | |
1abc1d3c AM |
280 | %{_libdir}/qt5/mkspecs/modules/qt_lib_webenginecore.pri |
281 | %{_libdir}/qt5/mkspecs/modules/qt_lib_webenginecore_private.pri | |
282 | %{_libdir}/qt5/mkspecs/modules/qt_lib_webenginecoreheaders_private.pri | |
283 | %{_libdir}/qt5/mkspecs/modules/qt_lib_webenginewidgets.pri | |
284 | %{_libdir}/qt5/mkspecs/modules/qt_lib_webenginewidgets_private.pri | |
daa4415e | 285 | |
de8a9faa | 286 | %if %{with doc} |
daa4415e JB |
287 | %files doc |
288 | %defattr(644,root,root,755) | |
289 | %{_docdir}/qt5-doc/qtwebengine | |
290 | ||
daa4415e JB |
291 | %files doc-qch |
292 | %defattr(644,root,root,755) | |
293 | %{_docdir}/qt5-doc/qtwebengine.qch | |
294 | %endif | |
295 | ||
296 | %files examples -f examples.files | |
297 | %defattr(644,root,root,755) | |
298 | # XXX: dir shared with qt5-qtbase-examples | |
299 | %dir %{_examplesdir}/qt5 |