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