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