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