]>
Commit | Line | Data |
---|---|---|
68e7984a | 1 | # TODO: |
1239c82a JB |
2 | # - opencl support (BR: OpenCL-devel, WEBKIT_CONFIG+=opencl) ? |
3 | # - seccomp support (BR: libseccomp-devel, WEBKIT_CONFIG+=seccomp_filters) ? | |
5da6712d JB |
4 | # - system leveldb (requires memenv helper library) |
5 | # NOTE: not splitting WebKit/WebKitWidgets, interdependencies are not clear | |
6 | # (e.g. WebProcess requires WebKitWidgets) | |
0ca16147 | 7 | # - switch to building using cmake directly, reenable doc |
50a36e1f JB |
8 | # |
9 | # Conditional build: | |
b0970bd0 ER |
10 | %bcond_with bootstrap # disable features to able to build without installed qt5 |
11 | # -- build targets | |
0ca16147 | 12 | %bcond_with doc # Documentation |
b0970bd0 | 13 | # -- features |
1239c82a | 14 | %bcond_with qtmultimedia # QtMultimedia support |
68e7984a | 15 | |
b0970bd0 | 16 | %if %{with bootstrap} |
cbf6f77b | 17 | %undefine with_doc |
b0970bd0 ER |
18 | %endif |
19 | ||
b320c168 JR |
20 | # it's not possible to build this with debuginfo on 32bit archs due to |
21 | # memory constraints during linking | |
22 | %ifarch %{ix86} x32 | |
23 | %define _enable_debug_packages 0 | |
24 | %endif | |
25 | ||
f0b9aa9b JP |
26 | %define snap alpha3 |
27 | %define rel 1 | |
0ca16147 | 28 | |
5da6712d | 29 | %define orgname qtwebkit |
0ca16147 AM |
30 | %define qtbase_ver 5.11 |
31 | %define qtdeclarative_ver 5.11 | |
32 | %define qtlocation_ver 5.11 | |
33 | %define qtmultimedia_ver 5.11 | |
34 | %define qtsensors_ver 5.11 | |
35 | %define qttools_ver 5.11 | |
50a36e1f JB |
36 | Summary: The Qt5 WebKit libraries |
37 | Summary(pl.UTF-8): Biblioteki Qt5 WebKit | |
68e7984a | 38 | Name: qt5-%{orgname} |
0ca16147 | 39 | Version: 5.212.0 |
ce0cee87 | 40 | Release: 0.%{snap}.%{rel} |
1239c82a | 41 | License: LGPL v2+ |
68e7984a | 42 | Group: X11/Libraries |
f0b9aa9b JP |
43 | Source0: https://github.com/qtwebkit/qtwebkit/releases/download/qtwebkit-%{version}-%{snap}/qtwebkit-%{version}-%{snap}.tar.xz |
44 | # Source0-md5: 5e7ade75ad0df9047826e625e4f262fc | |
aeb8c59d | 45 | Patch0: icu65.patch |
0ca16147 | 46 | # from FC |
0ca16147 | 47 | Patch102: qtwebkit-5.212.0_cmake_cmp0071.patch |
9f9a5867 | 48 | Patch108: x32.patch |
0ca16147 | 49 | URL: https://github.com/annulen/webkit |
5da6712d JB |
50 | BuildRequires: OpenGL-devel |
51 | BuildRequires: Qt5Core-devel >= %{qtbase_ver} | |
52 | BuildRequires: Qt5Gui-devel >= %{qtbase_ver} | |
1239c82a | 53 | %{?with_qtmultimedia:BuildRequires: Qt5MultimediaWidgets-devel >= %{qtmultimedia_ver}} |
5da6712d JB |
54 | BuildRequires: Qt5Network-devel >= %{qtbase_ver} |
55 | BuildRequires: Qt5OpenGL-devel >= %{qtbase_ver} | |
1239c82a | 56 | BuildRequires: Qt5Positioning-devel >= %{qtlocation_ver} |
5da6712d JB |
57 | BuildRequires: Qt5PrintSupport-devel >= %{qtbase_ver} |
58 | BuildRequires: Qt5Qml-devel >= %{qtdeclarative_ver} | |
59 | BuildRequires: Qt5Quick-devel >= %{qtdeclarative_ver} | |
1239c82a | 60 | BuildRequires: Qt5Sensors-devel >= %{qtsensors_ver} |
5da6712d JB |
61 | BuildRequires: Qt5Sql-devel >= %{qtbase_ver} |
62 | BuildRequires: Qt5Widgets-devel >= %{qtbase_ver} | |
f2d76ab3 | 63 | BuildRequires: Qt5WebChannel-devel >= %{qtbase_ver} |
5da6712d | 64 | BuildRequires: glib2-devel >= 2.0 |
4b19fed1 | 65 | BuildRequires: gperf |
5da6712d JB |
66 | BuildRequires: gstreamer-devel >= 1.0 |
67 | BuildRequires: gstreamer-plugins-base-devel >= 1.0 | |
68 | BuildRequires: libicu-devel | |
69 | BuildRequires: libjpeg-devel | |
70 | BuildRequires: libpng-devel | |
71 | BuildRequires: libwebp-devel | |
72 | BuildRequires: libxml2-devel >= 2.0 | |
73 | BuildRequires: libxslt-devel | |
74 | BuildRequires: pkgconfig | |
50a36e1f | 75 | BuildRequires: rpmbuild(macros) >= 1.654 |
cbf6f77b | 76 | %if %{with doc} |
50a36e1f JB |
77 | BuildRequires: qt5-assistant >= %{qttools_ver} |
78 | %endif | |
79 | BuildRequires: qt5-build >= %{qtbase_ver} | |
80 | BuildRequires: qt5-qmake >= %{qtbase_ver} | |
68e7984a | 81 | BuildRequires: rpmbuild(macros) >= 1.654 |
5da6712d | 82 | BuildRequires: sqlite3-devel >= 3 |
983a5b21 | 83 | BuildRequires: tar >= 1:1.22 |
5da6712d JB |
84 | BuildRequires: xorg-lib-libX11-devel |
85 | BuildRequires: xorg-lib-libXcomposite-devel | |
86 | BuildRequires: xorg-lib-libXrender-devel | |
983a5b21 | 87 | BuildRequires: xz |
5da6712d | 88 | BuildRequires: zlib-devel |
a4846994 | 89 | BuildConflicts: leveldb-devel |
68e7984a WF |
90 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) |
91 | ||
68e7984a | 92 | %define specflags -fno-strict-aliasing |
50a36e1f | 93 | %define qt5dir %{_libdir}/qt5 |
68e7984a WF |
94 | |
95 | %description | |
50a36e1f JB |
96 | Qt is a cross-platform application and UI framework. Using Qt, you can |
97 | write web-enabled applications once and deploy them across desktop, | |
98 | mobile and embedded systems without rewriting the source code. | |
99 | ||
100 | This package contains Qt5 WebKit libraries. | |
101 | ||
102 | %description -l pl.UTF-8 | |
103 | Qt to wieloplatformowy szkielet aplikacji i interfejsów użytkownika. | |
104 | Przy użyciu Qt można pisać aplikacje powiązane z WWW i wdrażać je w | |
105 | systemach biurkowych, przenośnych i wbudowanych bez przepisywania kodu | |
106 | źródłowego. | |
107 | ||
108 | Ten pakiet zawiera biblioteki Qt5 WebKit. | |
68e7984a | 109 | |
255f7f61 | 110 | %package -n Qt5WebKit |
50a36e1f JB |
111 | Summary: The Qt5 WebKit libraries |
112 | Summary(pl.UTF-8): Biblioteki Qt5 WebKit | |
255f7f61 | 113 | Group: X11/Libraries |
5da6712d JB |
114 | Requires: Qt5Core >= %{qtbase_ver} |
115 | Requires: Qt5Gui >= %{qtbase_ver} | |
1239c82a | 116 | %{?with_qtmultimedia:Requires: Qt5MultimediaWidgets >= %{qtmultimedia_ver}} |
5da6712d JB |
117 | Requires: Qt5Network >= %{qtbase_ver} |
118 | Requires: Qt5OpenGL >= %{qtbase_ver} | |
1239c82a | 119 | Requires: Qt5Positioning >= %{qtlocation_ver} |
5da6712d JB |
120 | Requires: Qt5PrintSupport >= %{qtbase_ver} |
121 | Requires: Qt5Qml >= %{qtdeclarative_ver} | |
122 | Requires: Qt5Quick >= %{qtdeclarative_ver} | |
1239c82a | 123 | Requires: Qt5Sensors >= %{qtsensors_ver} |
5da6712d JB |
124 | Requires: Qt5Sql >= %{qtbase_ver} |
125 | Requires: Qt5Widgets >= %{qtbase_ver} | |
255f7f61 WF |
126 | |
127 | %description -n Qt5WebKit | |
5da6712d JB |
128 | Qt5 WebKit libraries provide a web browser engine as well as C++ |
129 | classes to render and interact with web content. | |
50a36e1f JB |
130 | |
131 | %description -n Qt5WebKit -l pl.UTF-8 | |
5da6712d JB |
132 | Biblioteki Qt5 WebKit dostarczają silnik przeglądarki WWW, a także |
133 | klasy C++ do renderowania i interakcji z treścią WWW. | |
255f7f61 WF |
134 | |
135 | %package -n Qt5WebKit-devel | |
50a36e1f JB |
136 | Summary: Qt5 WebKit libraries - development files |
137 | Summary(pl.UTF-8): Biblioteki Qt5 WebKit - pliki programistyczne | |
68e7984a | 138 | Group: X11/Development/Libraries |
5da6712d JB |
139 | Requires: Qt5Core-devel >= %{qtbase_ver} |
140 | Requires: Qt5Gui-devel >= %{qtbase_ver} | |
1239c82a | 141 | %{?with_qtmultimedia:Requires: Qt5MultimediaWidgets-devel >= %{qtmultimedia_ver}} |
5da6712d JB |
142 | Requires: Qt5Network-devel >= %{qtbase_ver} |
143 | Requires: Qt5OpenGL-devel >= %{qtbase_ver} | |
1239c82a | 144 | Requires: Qt5Positioning-devel >= %{qtlocation_ver} |
5da6712d JB |
145 | Requires: Qt5PrintSupport-devel >= %{qtbase_ver} |
146 | Requires: Qt5Quick-devel >= %{qtbase_ver} | |
1239c82a | 147 | Requires: Qt5Sensors-devel >= %{qtsensors_ver} |
255f7f61 | 148 | Requires: Qt5WebKit = %{version}-%{release} |
5da6712d | 149 | Requires: Qt5Widgets-devel >= %{qtbase_ver} |
68e7984a | 150 | |
255f7f61 | 151 | %description -n Qt5WebKit-devel |
50a36e1f JB |
152 | Qt5 WebKit libraries - development files. |
153 | ||
154 | %description -n Qt5WebKit-devel -l pl.UTF-8 | |
155 | Biblioteki Qt5 WebKit - pliki programistyczne. | |
68e7984a WF |
156 | |
157 | %package doc | |
50a36e1f JB |
158 | Summary: Qt5 WebKit documentation in HTML format |
159 | Summary(pl.UTF-8): Dokumentacja do bibliotek Qt5 WebKit w formacie HTML | |
68e7984a | 160 | Group: Documentation |
50a36e1f | 161 | Requires: qt5-doc-common >= %{qtbase_ver} |
983a5b21 ER |
162 | %if "%{_rpmversion}" >= "5" |
163 | BuildArch: noarch | |
164 | %endif | |
68e7984a WF |
165 | |
166 | %description doc | |
50a36e1f JB |
167 | Qt5 WebKit documentation in HTML format. |
168 | ||
169 | %description doc -l pl.UTF-8 | |
170 | Dokumentacja do bibliotek Qt5 WebKit w formacie HTML. | |
171 | ||
172 | %package doc-qch | |
173 | Summary: Qt5 WebKit documentation in QCH format | |
174 | Summary(pl.UTF-8): Dokumentacja do bibliotek Qt5 WebKit w formacie QCH | |
175 | Group: Documentation | |
176 | Requires: qt5-doc-common >= %{qtbase_ver} | |
177 | %if "%{_rpmversion}" >= "5" | |
178 | BuildArch: noarch | |
179 | %endif | |
180 | ||
181 | %description doc-qch | |
182 | Qt5 WebKit documentation in QCH format. | |
183 | ||
184 | %description doc-qch -l pl.UTF-8 | |
185 | Dokumentacja do bibliotek Qt5 WebKit w formacie QCH. | |
68e7984a | 186 | |
68e7984a | 187 | %prep |
f0b9aa9b | 188 | %setup -q -n qtwebkit-%{version}-%{snap} |
aeb8c59d | 189 | %patch0 -p0 |
0ca16147 | 190 | %patch102 -p1 |
9f9a5867 | 191 | %patch108 -p1 |
68e7984a WF |
192 | |
193 | %build | |
8a437667 JR |
194 | mkdir -p build |
195 | cd build | |
196 | CFLAGS="%{rpmcflags}"; export CFLAGS | |
735f3c51 | 197 | CXXFLAGS="%{rpmcxxflags} -fpermissive"; export CXXFLAGS |
8a437667 JR |
198 | # We cannot use default cmake macro here as it overwrites some settings queried |
199 | # by qtwebkit cmake from qmake | |
200 | cmake \ | |
201 | -DPORT=Qt \ | |
202 | -DCMAKE_BUILD_TYPE=Release \ | |
3a37d7db | 203 | -DENABLE_NETSCAPE_PLUGIN_API=ON \ |
8a437667 | 204 | -DENABLE_TOOLS=OFF \ |
3a37d7db | 205 | -DENABLE_X11_TARGET=ON \ |
8a437667 JR |
206 | -DCMAKE_C_FLAGS_RELEASE:STRING="-DNDEBUG" \ |
207 | -DCMAKE_CXX_FLAGS_RELEASE:STRING="-DNDEBUG" \ | |
208 | -DCMAKE_VERBOSE_MAKEFILE:BOOL=ON \ | |
209 | %{?with_qtmultimedia:-DUSE_QT_MULTIMEDIA:BOOL=ON} \ | |
210 | %{?with_doc:-DGENERATE_DOCUMENTATION=ON} \ | |
211 | %if "%{_lib}" == "lib64" | |
212 | -DLIB_SUFFIX=64 \ | |
213 | %endif | |
214 | %if "%{_lib}" == "libx32" | |
215 | -DLIB_SUFFIX=x32 \ | |
216 | %endif | |
217 | %ifarch x32 | |
218 | -DENABLE_JIT=OFF \ | |
219 | %endif | |
220 | .. | |
5da6712d | 221 | |
68e7984a | 222 | %{__make} |
cbf6f77b | 223 | %{?with_doc:%{__make} docs} |
68e7984a WF |
224 | |
225 | %install | |
226 | rm -rf $RPM_BUILD_ROOT | |
8a437667 JR |
227 | |
228 | cd build | |
68e7984a | 229 | %{__make} install \ |
8a437667 | 230 | DESTDIR=$RPM_BUILD_ROOT |
68e7984a | 231 | |
cbf6f77b JR |
232 | %if %{with doc} |
233 | %{__make} install_docs \ | |
8a437667 | 234 | DESTDIR=$RPM_BUILD_ROOT |
cbf6f77b | 235 | %endif |
68e7984a | 236 | |
0ca16147 | 237 | # kill unnecessary -L%{_libdir} from *.pc |
5da6712d | 238 | %{__sed} -i -e "s,-L%{_libdir} \?,,g" \ |
5da6712d JB |
239 | $RPM_BUILD_ROOT%{_pkgconfigdir}/*.pc |
240 | # kill unwanted Libs.private (containing many bogus entries) from *.pc files | |
241 | %{__sed} -i -e '/^Libs\.private/d' $RPM_BUILD_ROOT%{_pkgconfigdir}/*.pc | |
50a36e1f | 242 | |
68e7984a WF |
243 | %clean |
244 | rm -rf $RPM_BUILD_ROOT | |
245 | ||
50a36e1f JB |
246 | %post -n Qt5WebKit -p /sbin/ldconfig |
247 | %postun -n Qt5WebKit -p /sbin/ldconfig | |
68e7984a | 248 | |
255f7f61 | 249 | %files -n Qt5WebKit |
68e7984a | 250 | %defattr(644,root,root,755) |
50a36e1f | 251 | %attr(755,root,root) %{_libdir}/libQt5WebKit.so.*.*.* |
255f7f61 | 252 | %attr(755,root,root) %ghost %{_libdir}/libQt5WebKit.so.5 |
50a36e1f | 253 | %attr(755,root,root) %{_libdir}/libQt5WebKitWidgets.so.*.*.* |
255f7f61 | 254 | %attr(755,root,root) %ghost %{_libdir}/libQt5WebKitWidgets.so.5 |
255f7f61 WF |
255 | %dir %{_libdir}/qt5/qml/QtWebKit |
256 | %attr(755,root,root) %{_libdir}/qt5/qml/QtWebKit/libqmlwebkitplugin.so | |
53fad3a3 | 257 | %{_libdir}/qt5/qml/QtWebKit/plugins.qmltypes |
255f7f61 WF |
258 | %{_libdir}/qt5/qml/QtWebKit/qmldir |
259 | %dir %{_libdir}/qt5/qml/QtWebKit/experimental | |
260 | %attr(755,root,root) %{_libdir}/qt5/qml/QtWebKit/experimental/libqmlwebkitexperimentalplugin.so | |
261 | %{_libdir}/qt5/qml/QtWebKit/experimental/qmldir | |
5da6712d | 262 | %attr(755,root,root) %{_libdir}/qt5/libexec/QtWebProcess |
0ca16147 | 263 | %attr(755,root,root) %{_libdir}/qt5/libexec/QtWebNetworkProcess |
f0b9aa9b JP |
264 | %attr(755,root,root) %{_libdir}/qt5/libexec/QtWebPluginProcess |
265 | %attr(755,root,root) %{_libdir}/qt5/libexec/QtWebStorageProcess | |
255f7f61 WF |
266 | |
267 | %files -n Qt5WebKit-devel | |
68e7984a | 268 | %defattr(644,root,root,755) |
255f7f61 WF |
269 | %attr(755,root,root) %{_libdir}/libQt5WebKit.so |
270 | %attr(755,root,root) %{_libdir}/libQt5WebKitWidgets.so | |
255f7f61 WF |
271 | %{_includedir}/qt5/QtWebKit |
272 | %{_includedir}/qt5/QtWebKitWidgets | |
273 | %{_pkgconfigdir}/Qt5WebKit.pc | |
274 | %{_pkgconfigdir}/Qt5WebKitWidgets.pc | |
50a36e1f JB |
275 | %{_libdir}/cmake/Qt5WebKit |
276 | %{_libdir}/cmake/Qt5WebKitWidgets | |
5da6712d | 277 | %{qt5dir}/mkspecs/modules/qt_lib_webkit.pri |
f0b9aa9b | 278 | %{qt5dir}/mkspecs/modules/qt_lib_webkit_private.pri |
5da6712d | 279 | %{qt5dir}/mkspecs/modules/qt_lib_webkitwidgets.pri |
f0b9aa9b | 280 | %{qt5dir}/mkspecs/modules/qt_lib_webkitwidgets_private.pri |
68e7984a | 281 | |
cbf6f77b | 282 | %if %{with doc} |
68e7984a WF |
283 | %files doc |
284 | %defattr(644,root,root,755) | |
5da6712d | 285 | %{_docdir}/qt5-doc/qtwebkit |
50a36e1f | 286 | |
50a36e1f JB |
287 | %files doc-qch |
288 | %defattr(644,root,root,755) | |
5da6712d | 289 | %{_docdir}/qt5-doc/qtwebkit.qch |
50a36e1f | 290 | %endif |