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