]>
Commit | Line | Data |
---|---|---|
91c1decc | 1 | # TODO: review configure options: |
5e4ace1a | 2 | # - FTL_JIT on !x86_64? |
7e29230d | 3 | # - WEB_RTC+MEDIA_STREAM (BR: openwebrtc) |
f8e56294 AF |
4 | # |
5 | # Conditional build: | |
6 | %bcond_without introspection # disable introspection | |
5e4ace1a | 7 | %bcond_with cairogl # accelerated 2D canvas using cairo-gl |
5e4ace1a | 8 | %bcond_without wayland # Wayland target (requires GTK+ wayland target) |
f8e56294 | 9 | # |
4bb10dff JR |
10 | # it's not possible to build this with debuginfo on 32bit archs due to |
11 | # memory constraints during linking | |
12 | %ifarch %{ix86} x32 | |
13 | %define _enable_debug_packages 0 | |
14 | %endif | |
97c9d259 JB |
15 | Summary: Port of WebKit embeddable web component to GTK+ 3 |
16 | Summary(pl.UTF-8): Port osadzalnego komponentu WWW WebKit do GTK+ 3 | |
e761a49a | 17 | Name: gtk-webkit4 |
edf30594 JB |
18 | # NOTE: 2.26.x is stable, 2.27.x devel (see DEVEL-2.27 branch) |
19 | Version: 2.26.1 | |
3929c180 | 20 | Release: 2 |
f8e56294 AF |
21 | License: BSD-like |
22 | Group: X11/Libraries | |
0fe5cc0d | 23 | Source0: https://webkitgtk.org/releases/webkitgtk-%{version}.tar.xz |
edf30594 | 24 | # Source0-md5: 08145bd6c1587230f135921c142bc150 |
72628bc4 | 25 | Patch0: x32.patch |
9a072c00 | 26 | Patch1: %{name}-icu59.patch |
27c9a1ed | 27 | Patch2: %{name}-gir.patch |
3929c180 | 28 | Patch3: %{name}-icu65.patch |
0fe5cc0d | 29 | URL: https://webkitgtk.org/ |
8f69f015 | 30 | BuildRequires: /usr/bin/ld.gold |
e3d059d0 JB |
31 | BuildRequires: EGL-devel |
32 | BuildRequires: OpenGL-GLX-devel | |
bbd2fab2 | 33 | BuildRequires: at-spi2-core-devel >= 2.6.0 |
e761a49a JB |
34 | BuildRequires: atk-devel |
35 | BuildRequires: bison >= 2.3 | |
215513aa | 36 | BuildRequires: bubblewrap >= 0.3.1 |
7e29230d | 37 | BuildRequires: cairo-devel >= 1.16.0 |
356167c2 | 38 | BuildRequires: cmake >= 3.10 |
0df10670 | 39 | BuildRequires: docbook-dtd412-xml |
7e29230d | 40 | BuildRequires: enchant2-devel >= 2 |
e761a49a | 41 | BuildRequires: flex >= 2.5.34 |
7e29230d JB |
42 | BuildRequires: fontconfig-devel >= 2.13.0 |
43 | BuildRequires: freetype-devel >= 1:2.9.0 | |
356167c2 | 44 | BuildRequires: gcc-c++ >= 6:7.3.0 |
b19bf66f | 45 | BuildRequires: geoclue2-devel >= 2.1.5 |
e761a49a | 46 | BuildRequires: gettext-devel |
356167c2 | 47 | BuildRequires: glib2-devel >= 1:2.44 |
f8e56294 | 48 | BuildRequires: glibc-misc |
bbd2fab2 | 49 | %{?with_introspection:BuildRequires: gobject-introspection-devel >= 1.32.0} |
e761a49a | 50 | BuildRequires: gperf >= 3.0.1 |
7e29230d | 51 | BuildRequires: gstreamer-devel >= 1.14 |
ef26b207 | 52 | BuildRequires: gstreamer-gl-devel >= 1.8.3 |
7e29230d JB |
53 | # mpegts with -DUSE_GSTREAMER_MPEGTS=ON |
54 | #BuildRequires: gstreamer-plugins-bad-devel >= 1.8.3 | |
55 | # app,audio,fft,pbutils,tag,video | |
56 | BuildRequires: gstreamer-plugins-base-devel >= 1.8.3 | |
356167c2 | 57 | BuildRequires: gtk+3-devel >= 3.22.0 |
f8e56294 | 58 | BuildRequires: gtk-doc >= 1.10 |
7e29230d JB |
59 | BuildRequires: harfbuzz-devel >= 1.4.2 |
60 | BuildRequires: harfbuzz-icu-devel >= 1.4.2 | |
9a76c25d | 61 | BuildRequires: hyphen-devel |
7e29230d | 62 | BuildRequires: libgcrypt-devel >= 1.7.0 |
9a072c00 | 63 | BuildRequires: libicu-devel >= 59 |
f8e56294 | 64 | BuildRequires: libjpeg-devel |
ad56e591 | 65 | BuildRequires: libnotify-devel |
f8e56294 | 66 | BuildRequires: libpng-devel |
bbd2fab2 | 67 | BuildRequires: libsecret-devel |
356167c2 | 68 | BuildRequires: libsoup-devel >= 2.54 |
7e29230d JB |
69 | BuildRequires: libstdc++-devel >= 6:6.0.0 |
70 | BuildRequires: libtasn1-devel | |
bbd2fab2 | 71 | BuildRequires: libwebp-devel |
356167c2 | 72 | BuildRequires: libwpe-devel >= 1.3.0 |
e761a49a | 73 | BuildRequires: libxml2-devel >= 1:2.8.0 |
f8e56294 | 74 | BuildRequires: libxslt-devel >= 1.1.7 |
7e29230d | 75 | BuildRequires: openjpeg2-devel >= 2.2.0 |
bbd2fab2 | 76 | BuildRequires: pango-devel >= 1:1.32.0 |
e761a49a | 77 | BuildRequires: perl-base >= 1:5.10.0 |
f8e56294 | 78 | BuildRequires: pkgconfig |
5e4ace1a JB |
79 | %if %{with cairogl} |
80 | BuildRequires: pkgconfig(cairo-egl) | |
81 | BuildRequires: pkgconfig(cairo-gl) | |
82 | BuildRequires: pkgconfig(cairo-glx) | |
83 | %endif | |
ad56e591 | 84 | BuildRequires: python >= 1:2.7.0 |
01e3a259 | 85 | BuildRequires: rpmbuild(macros) >= 1.699 |
0df10670 ER |
86 | BuildRequires: ruby >= 1:1.9 |
87 | BuildRequires: ruby-modules >= 1:1.9 | |
333087b6 | 88 | BuildRequires: sqlite3-devel >= 3 |
09aa776b | 89 | BuildRequires: tar >= 1:1.22 |
356167c2 | 90 | BuildRequires: wpebackend-fdo-devel >= 1.4.0 |
7e29230d | 91 | BuildRequires: woff2-devel >= 1.0.2 |
215513aa | 92 | BuildRequires: xdg-dbus-proxy |
e9e9ae8f | 93 | BuildRequires: xorg-lib-libXcomposite-devel |
e3d059d0 | 94 | BuildRequires: xorg-lib-libXdamage-devel |
cf9395dc | 95 | BuildRequires: xorg-lib-libXrender-devel |
09ca9f01 | 96 | BuildRequires: xorg-lib-libXt-devel |
09aa776b | 97 | BuildRequires: xz |
09ca9f01 | 98 | BuildRequires: zlib-devel |
7e29230d JB |
99 | Requires: cairo >= 1.16.0 |
100 | Requires: fontconfig-libs >= 2.13.0 | |
101 | Requires: freetype >= 1:2.9.0 | |
102 | Requires: glib2 >= 1:2.40 | |
6a5b6199 JB |
103 | Requires: gstreamer >= 1.2.3 |
104 | Requires: gstreamer-plugins-base >= 1.2.3 | |
e761a49a | 105 | Requires: gtk+3 >= 3.12.0 |
7e29230d JB |
106 | Requires: harfbuzz >= 1.4.2 |
107 | Requires: libsoup >= 2.48 | |
e761a49a | 108 | Requires: libxml2 >= 1:2.8.0 |
f8e56294 | 109 | Requires: libxslt >= 1.1.7 |
7e29230d | 110 | Requires: openjpeg2 >= 2.2.0 |
bbd2fab2 | 111 | Requires: pango >= 1:1.32.0 |
7e29230d | 112 | Requires: woff2 >= 1.0.2 |
f8e56294 | 113 | %{?with_introspection:Conflicts: gir-repository < 0.6.5-7} |
5e4ace1a | 114 | # Source/JavaScriptCore/CMakeLists.txt /WTF_CPU_ |
82029cf4 | 115 | ExclusiveArch: %{ix86} %{x8664} x32 %{arm} aarch64 hppa mips ppc ppc64 ppc64le s390 s390x sh4 |
f8e56294 AF |
116 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) |
117 | ||
b19bf66f | 118 | # __once_call, __once_called non-function symbols from libstdc++ |
3e7920f5 | 119 | %define skip_post_check_so lib.*gtk-4.0.* |
b19bf66f | 120 | |
f8e56294 | 121 | %description |
3e7920f5 | 122 | gtk-webkit4 is a port of the WebKit embeddable web component to GTK+ |
b19bf66f | 123 | 3. |
f8e56294 AF |
124 | |
125 | %description -l pl.UTF-8 | |
3e7920f5 | 126 | gtk-webkit4 to port osadzalnego komponentu WWW WebKit do GTK+ 3. |
f8e56294 AF |
127 | |
128 | %package devel | |
97c9d259 JB |
129 | Summary: Development files for WebKit for GTK+ 3 |
130 | Summary(pl.UTF-8): Pliki programistyczne komponentu WebKit dla GTK+ 3 | |
f8e56294 AF |
131 | Group: X11/Development/Libraries |
132 | Requires: %{name} = %{version}-%{release} | |
7e29230d | 133 | Requires: glib2-devel >= 1:2.40 |
e761a49a | 134 | Requires: gtk+3-devel >= 3.12.0 |
7e29230d | 135 | Requires: libsoup-devel >= 2.48 |
9a76c25d | 136 | Requires: libstdc++-devel >= 6:4.9 |
f8e56294 AF |
137 | |
138 | %description devel | |
97c9d259 | 139 | Development files for WebKit for GTK+ 3. |
f8e56294 AF |
140 | |
141 | %description devel -l pl.UTF-8 | |
97c9d259 | 142 | Pliki programistyczne komponentu WebKit dla GTK+ 3. |
f8e56294 | 143 | |
09ca9f01 MB |
144 | %package apidocs |
145 | Summary: WebKit API documentation | |
146 | Summary(pl.UTF-8): Dokumentacja API WebKita | |
147 | Group: Documentation | |
148 | Requires: gtk-doc-common | |
8f69f015 ER |
149 | %if "%{_rpmversion}" >= "5" |
150 | BuildArch: noarch | |
151 | %endif | |
09ca9f01 MB |
152 | |
153 | %description apidocs | |
154 | WebKit API documentation. | |
155 | ||
156 | %description apidocs -l pl.UTF-8 | |
157 | Dokumentacja API WebKita. | |
158 | ||
f8e56294 | 159 | %prep |
9130be70 | 160 | %setup -q -n webkitgtk-%{version} |
72628bc4 | 161 | %patch0 -p1 |
9a072c00 | 162 | %patch1 -p1 |
27c9a1ed | 163 | %patch2 -p1 |
3929c180 | 164 | %patch3 -p1 |
97c9d259 | 165 | |
f8e56294 | 166 | %build |
e761a49a JB |
167 | install -d build |
168 | cd build | |
169 | %cmake .. \ | |
5e4ace1a | 170 | %{?with_cairogl:-DENABLE_ACCELERATED_2D_CANVAS=ON} \ |
e761a49a JB |
171 | -DENABLE_GEOLOCATION=ON \ |
172 | -DENABLE_GTKDOC=ON \ | |
816ef86e | 173 | %{!?with_introspection:-DENABLE_INTROSPECTION=OFF} \ |
5e4ace1a | 174 | %{!?with_wayland:-DENABLE_WAYLAND_TARGET=OFF} \ |
72628bc4 | 175 | %ifarch x32 |
00cdc552 | 176 | -DENABLE_C_LOOP=ON \ |
72628bc4 | 177 | -DENABLE_JIT=OFF \ |
00cdc552 | 178 | -DENABLE_SAMPLING_PROFILER=OFF \ |
72628bc4 | 179 | %endif |
e761a49a JB |
180 | -DENABLE_VIDEO=ON \ |
181 | -DENABLE_WEB_AUDIO=ON \ | |
182 | -DENABLE_WEBGL=ON \ | |
7e29230d JB |
183 | %ifarch %{ix86} %{x8664} x32 |
184 | -DHAVE_SSE2_EXTENSIONS=ON \ | |
185 | %endif | |
e761a49a JB |
186 | -DPORT=GTK \ |
187 | -DSHOULD_INSTALL_JS_SHELL=ON | |
188 | ||
e761a49a | 189 | %{__make} |
f8e56294 AF |
190 | |
191 | %install | |
192 | rm -rf $RPM_BUILD_ROOT | |
193 | ||
e761a49a | 194 | %{__make} -C build install \ |
f8e56294 AF |
195 | DESTDIR=$RPM_BUILD_ROOT |
196 | ||
3e7920f5 JB |
197 | %if "%{_gtkdocdir}" != "%{_datadir}/gtk-doc/html" |
198 | install -d $RPM_BUILD_ROOT%{_gtkdocdir} | |
199 | %{__mv} $RPM_BUILD_ROOT%{_datadir}/gtk-doc/html/* $RPM_BUILD_ROOT%{_gtkdocdir} | |
200 | %endif | |
201 | ||
202 | %find_lang WebKit2GTK-4.0 | |
f8e56294 AF |
203 | |
204 | %clean | |
205 | rm -rf $RPM_BUILD_ROOT | |
206 | ||
09aa776b JB |
207 | %post -p /sbin/ldconfig |
208 | %postun -p /sbin/ldconfig | |
f8e56294 | 209 | |
3e7920f5 | 210 | %files -f WebKit2GTK-4.0.lang |
f8e56294 | 211 | %defattr(644,root,root,755) |
e761a49a | 212 | %doc NEWS |
356167c2 | 213 | %attr(755,root,root) %{_bindir}/WebKitWebDriver |
e761a49a JB |
214 | %attr(755,root,root) %{_libdir}/libwebkit2gtk-4.0.so.*.*.* |
215 | %attr(755,root,root) %ghost %{_libdir}/libwebkit2gtk-4.0.so.37 | |
216 | %attr(755,root,root) %{_libdir}/libjavascriptcoregtk-4.0.so.*.*.* | |
217 | %attr(755,root,root) %ghost %{_libdir}/libjavascriptcoregtk-4.0.so.18 | |
f8e56294 | 218 | %if %{with introspection} |
e761a49a JB |
219 | %{_libdir}/girepository-1.0/JavaScriptCore-4.0.typelib |
220 | %{_libdir}/girepository-1.0/WebKit2-4.0.typelib | |
221 | %{_libdir}/girepository-1.0/WebKit2WebExtension-4.0.typelib | |
f8e56294 | 222 | %endif |
7e29230d | 223 | %if "%{_libexecdir}" != "%{_libdir}" |
4ae8fac8 | 224 | %dir %{_libexecdir}/webkit2gtk-4.0 |
7e29230d | 225 | %endif |
4ae8fac8 MB |
226 | %attr(755,root,root) %{_libexecdir}/webkit2gtk-4.0/WebKitNetworkProcess |
227 | %attr(755,root,root) %{_libexecdir}/webkit2gtk-4.0/WebKitPluginProcess | |
356167c2 | 228 | #%attr(755,root,root) %{_libexecdir}/webkit2gtk-4.0/WebKitPluginProcess2 |
4ae8fac8 MB |
229 | %attr(755,root,root) %{_libexecdir}/webkit2gtk-4.0/WebKitWebProcess |
230 | %attr(755,root,root) %{_libexecdir}/webkit2gtk-4.0/jsc | |
176cc4e5 | 231 | %dir %{_libdir}/webkit2gtk-4.0 |
e761a49a JB |
232 | %dir %{_libdir}/webkit2gtk-4.0/injected-bundle |
233 | %attr(755,root,root) %{_libdir}/webkit2gtk-4.0/injected-bundle/libwebkit2gtkinjectedbundle.so | |
f8e56294 AF |
234 | |
235 | %files devel | |
236 | %defattr(644,root,root,755) | |
e761a49a JB |
237 | %attr(755,root,root) %{_libdir}/libwebkit2gtk-4.0.so |
238 | %attr(755,root,root) %{_libdir}/libjavascriptcoregtk-4.0.so | |
f8e56294 | 239 | %if %{with introspection} |
e761a49a JB |
240 | %{_datadir}/gir-1.0/JavaScriptCore-4.0.gir |
241 | %{_datadir}/gir-1.0/WebKit2-4.0.gir | |
242 | %{_datadir}/gir-1.0/WebKit2WebExtension-4.0.gir | |
f8e56294 | 243 | %endif |
e761a49a JB |
244 | %{_includedir}/webkitgtk-4.0 |
245 | %{_pkgconfigdir}/javascriptcoregtk-4.0.pc | |
246 | %{_pkgconfigdir}/webkit2gtk-4.0.pc | |
247 | %{_pkgconfigdir}/webkit2gtk-web-extension-4.0.pc | |
09ca9f01 MB |
248 | |
249 | %files apidocs | |
250 | %defattr(644,root,root,755) | |
7e29230d | 251 | %{_gtkdocdir}/jsc-glib-4.0 |
e761a49a JB |
252 | %{_gtkdocdir}/webkit2gtk-4.0 |
253 | %{_gtkdocdir}/webkitdomgtk-4.0 |