]>
Commit | Line | Data |
---|---|---|
91c1decc | 1 | # TODO: review configure options: |
5e4ace1a | 2 | # - FTL_JIT on !x86_64? |
7e29230d | 3 | # - WEB_RTC+MEDIA_STREAM (BR: openwebrtc) |
4c404dc2 | 4 | # - AVIF? (BR: libavif-devel >= 0.9.0) |
69f0caa3 | 5 | # - JPEGXL? (BR: libjxl-devel) |
4c404dc2 | 6 | # - THUNDER? (BR: Thunder + ThunderClientLibraries) |
f8e56294 AF |
7 | # |
8 | # Conditional build: | |
24bb4de1 | 9 | %bcond_without introspection # GObject introspection |
ff2d8655 JB |
10 | %bcond_without libsoup2 # webkit-4.0 (libsoup2 based) variant |
11 | %bcond_without libsoup3 # webkit-4.1 (libsoup3 based) variant (HTTP/2 support) | |
12 | %bcond_without gtk3 # webkit-4.x (gtk3 based) variants | |
13 | %bcond_without gtk4 # webkit-5.0 (gtk4/libsoup3 based) variant | |
5e4ace1a | 14 | %bcond_without wayland # Wayland target (requires GTK+ wayland target) |
f8e56294 | 15 | # |
4bb10dff JR |
16 | # it's not possible to build this with debuginfo on 32bit archs due to |
17 | # memory constraints during linking | |
18 | %ifarch %{ix86} x32 | |
19 | %define _enable_debug_packages 0 | |
20 | %endif | |
97c9d259 JB |
21 | Summary: Port of WebKit embeddable web component to GTK+ 3 |
22 | Summary(pl.UTF-8): Port osadzalnego komponentu WWW WebKit do GTK+ 3 | |
e761a49a | 23 | Name: gtk-webkit4 |
4c404dc2 | 24 | # NOTE: 2.34.x is stable, 2.35.x devel |
ff2d8655 | 25 | Version: 2.36.1 |
a7e83dd1 | 26 | Release: 2 |
f8e56294 AF |
27 | License: BSD-like |
28 | Group: X11/Libraries | |
0fe5cc0d | 29 | Source0: https://webkitgtk.org/releases/webkitgtk-%{version}.tar.xz |
ff2d8655 | 30 | # Source0-md5: e6100df7f82d95a4e65176b10f5ab011 |
72628bc4 | 31 | Patch0: x32.patch |
9a072c00 | 32 | Patch1: %{name}-icu59.patch |
0fe5cc0d | 33 | URL: https://webkitgtk.org/ |
8f69f015 | 34 | BuildRequires: /usr/bin/ld.gold |
e3d059d0 JB |
35 | BuildRequires: EGL-devel |
36 | BuildRequires: OpenGL-GLX-devel | |
c66682f9 JB |
37 | BuildRequires: OpenGLESv2-devel |
38 | BuildRequires: at-spi2-core-devel >= 2.5.3 | |
39 | BuildRequires: atk-devel >= 1:2.16.0 | |
215513aa | 40 | BuildRequires: bubblewrap >= 0.3.1 |
7e29230d | 41 | BuildRequires: cairo-devel >= 1.16.0 |
4c404dc2 | 42 | BuildRequires: cmake >= 3.12 |
0df10670 | 43 | BuildRequires: docbook-dtd412-xml |
7e29230d | 44 | BuildRequires: enchant2-devel >= 2 |
7e29230d JB |
45 | BuildRequires: fontconfig-devel >= 2.13.0 |
46 | BuildRequires: freetype-devel >= 1:2.9.0 | |
356167c2 | 47 | BuildRequires: gcc-c++ >= 6:7.3.0 |
e761a49a | 48 | BuildRequires: gettext-devel |
b36c2ff8 | 49 | BuildRequires: gettext-tools |
846fa469 | 50 | BuildRequires: glib2-devel >= 1:2.67.1 |
f8e56294 | 51 | BuildRequires: glibc-misc |
bbd2fab2 | 52 | %{?with_introspection:BuildRequires: gobject-introspection-devel >= 1.32.0} |
e761a49a | 53 | BuildRequires: gperf >= 3.0.1 |
7e29230d | 54 | BuildRequires: gstreamer-devel >= 1.14 |
c66682f9 JB |
55 | BuildRequires: gstreamer-gl-devel >= 1.10.0 |
56 | # codecparsers,mpegts with -DUSE_GSTREAMER_MPEGTS=ON | |
57 | #BuildRequires: gstreamer-plugins-bad-devel >= 1.10.0 | |
7e29230d | 58 | # app,audio,fft,pbutils,tag,video |
c66682f9 | 59 | BuildRequires: gstreamer-plugins-base-devel >= 1.10.0 |
ff2d8655 JB |
60 | %{?with_gtk3:BuildRequires: gtk+3-devel >= 3.22.0} |
61 | %{?with_gtk4:BuildRequires: gtk4-devel >= 4.0} | |
f8e56294 | 62 | BuildRequires: gtk-doc >= 1.10 |
7e29230d JB |
63 | BuildRequires: harfbuzz-devel >= 1.4.2 |
64 | BuildRequires: harfbuzz-icu-devel >= 1.4.2 | |
9a76c25d | 65 | BuildRequires: hyphen-devel |
7e29230d | 66 | BuildRequires: libgcrypt-devel >= 1.7.0 |
4c404dc2 | 67 | BuildRequires: libicu-devel >= 61.2 |
f8e56294 | 68 | BuildRequires: libjpeg-devel |
4c404dc2 | 69 | BuildRequires: libmanette-devel >= 0.2.4 |
ad56e591 | 70 | BuildRequires: libnotify-devel |
f8e56294 | 71 | BuildRequires: libpng-devel |
b36c2ff8 | 72 | BuildRequires: libseccomp-devel |
bbd2fab2 | 73 | BuildRequires: libsecret-devel |
ff2d8655 JB |
74 | %{?with_libsoup2:BuildRequires: libsoup-devel >= 2.54} |
75 | %{?with_libsoup3:BuildRequires: libsoup3-devel >= 3.0} | |
69f0caa3 JB |
76 | # -std=c++2a |
77 | BuildRequires: libstdc++-devel >= 6:8 | |
7e29230d | 78 | BuildRequires: libtasn1-devel |
bbd2fab2 | 79 | BuildRequires: libwebp-devel |
356167c2 | 80 | BuildRequires: libwpe-devel >= 1.3.0 |
e761a49a | 81 | BuildRequires: libxml2-devel >= 1:2.8.0 |
f8e56294 | 82 | BuildRequires: libxslt-devel >= 1.1.7 |
7e29230d | 83 | BuildRequires: openjpeg2-devel >= 2.2.0 |
bbd2fab2 | 84 | BuildRequires: pango-devel >= 1:1.32.0 |
e761a49a | 85 | BuildRequires: perl-base >= 1:5.10.0 |
f8e56294 | 86 | BuildRequires: pkgconfig |
ad56e591 | 87 | BuildRequires: python >= 1:2.7.0 |
24bb4de1 | 88 | BuildRequires: rpm-build >= 4.6 |
01e3a259 | 89 | BuildRequires: rpmbuild(macros) >= 1.699 |
0df10670 ER |
90 | BuildRequires: ruby >= 1:1.9 |
91 | BuildRequires: ruby-modules >= 1:1.9 | |
333087b6 | 92 | BuildRequires: sqlite3-devel >= 3 |
846fa469 | 93 | BuildRequires: systemd-devel |
09aa776b | 94 | BuildRequires: tar >= 1:1.22 |
c66682f9 JB |
95 | %if %{with wayland} |
96 | BuildRequires: wayland-devel | |
97 | BuildRequires: wayland-egl-devel | |
ab41d2aa | 98 | BuildRequires: wayland-protocols >= 1.12 |
c66682f9 | 99 | %endif |
4c404dc2 | 100 | BuildRequires: wpebackend-fdo-devel >= 1.6.0 |
7e29230d | 101 | BuildRequires: woff2-devel >= 1.0.2 |
215513aa | 102 | BuildRequires: xdg-dbus-proxy |
c66682f9 | 103 | BuildRequires: xorg-lib-libICE-devel |
e9e9ae8f | 104 | BuildRequires: xorg-lib-libXcomposite-devel |
e3d059d0 | 105 | BuildRequires: xorg-lib-libXdamage-devel |
c66682f9 | 106 | BuildRequires: xorg-lib-libXext-devel |
cf9395dc | 107 | BuildRequires: xorg-lib-libXrender-devel |
09ca9f01 | 108 | BuildRequires: xorg-lib-libXt-devel |
09aa776b | 109 | BuildRequires: xz |
09ca9f01 | 110 | BuildRequires: zlib-devel |
c66682f9 JB |
111 | Requires: at-spi2-core-libs >= 2.5.3 |
112 | Requires: atk >= 1:2.16.0 | |
7e29230d JB |
113 | Requires: cairo >= 1.16.0 |
114 | Requires: fontconfig-libs >= 2.13.0 | |
115 | Requires: freetype >= 1:2.9.0 | |
846fa469 | 116 | Requires: glib2 >= 1:2.67.1 |
6a5b6199 JB |
117 | Requires: gstreamer >= 1.2.3 |
118 | Requires: gstreamer-plugins-base >= 1.2.3 | |
c66682f9 | 119 | Requires: gtk+3 >= 3.22.0 |
7e29230d | 120 | Requires: harfbuzz >= 1.4.2 |
c66682f9 JB |
121 | Requires: libgcrypt >= 1.7.0 |
122 | Requires: libsoup >= 2.54 | |
e761a49a | 123 | Requires: libxml2 >= 1:2.8.0 |
f8e56294 | 124 | Requires: libxslt >= 1.1.7 |
7e29230d | 125 | Requires: openjpeg2 >= 2.2.0 |
bbd2fab2 | 126 | Requires: pango >= 1:1.32.0 |
7e29230d | 127 | Requires: woff2 >= 1.0.2 |
4c404dc2 | 128 | Requires: wpebackend-fdo >= 1.6.0 |
f8e56294 | 129 | %{?with_introspection:Conflicts: gir-repository < 0.6.5-7} |
5e4ace1a | 130 | # Source/JavaScriptCore/CMakeLists.txt /WTF_CPU_ |
82029cf4 | 131 | ExclusiveArch: %{ix86} %{x8664} x32 %{arm} aarch64 hppa mips ppc ppc64 ppc64le s390 s390x sh4 |
f8e56294 AF |
132 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) |
133 | ||
b19bf66f | 134 | # __once_call, __once_called non-function symbols from libstdc++ |
3e7920f5 | 135 | %define skip_post_check_so lib.*gtk-4.0.* |
b19bf66f | 136 | |
f8e56294 | 137 | %description |
3e7920f5 | 138 | gtk-webkit4 is a port of the WebKit embeddable web component to GTK+ |
b19bf66f | 139 | 3. |
f8e56294 AF |
140 | |
141 | %description -l pl.UTF-8 | |
3e7920f5 | 142 | gtk-webkit4 to port osadzalnego komponentu WWW WebKit do GTK+ 3. |
f8e56294 AF |
143 | |
144 | %package devel | |
97c9d259 JB |
145 | Summary: Development files for WebKit for GTK+ 3 |
146 | Summary(pl.UTF-8): Pliki programistyczne komponentu WebKit dla GTK+ 3 | |
f8e56294 AF |
147 | Group: X11/Development/Libraries |
148 | Requires: %{name} = %{version}-%{release} | |
846fa469 | 149 | Requires: glib2-devel >= 1:2.67.1 |
c66682f9 JB |
150 | Requires: gtk+3-devel >= 3.22.0 |
151 | Requires: libsoup-devel >= 2.54 | |
69f0caa3 | 152 | Requires: libstdc++-devel >= 6:8 |
f8e56294 AF |
153 | |
154 | %description devel | |
97c9d259 | 155 | Development files for WebKit for GTK+ 3. |
f8e56294 AF |
156 | |
157 | %description devel -l pl.UTF-8 | |
97c9d259 | 158 | Pliki programistyczne komponentu WebKit dla GTK+ 3. |
f8e56294 | 159 | |
09ca9f01 | 160 | %package apidocs |
ff2d8655 JB |
161 | Summary: API documentation for WebKit GTK+ 3 port |
162 | Summary(pl.UTF-8): Dokumentacja API portu WebKitu do GTK+ 3 | |
09ca9f01 MB |
163 | Group: Documentation |
164 | Requires: gtk-doc-common | |
8f69f015 | 165 | BuildArch: noarch |
09ca9f01 MB |
166 | |
167 | %description apidocs | |
ff2d8655 | 168 | API documentation for WebKit GTK+ 3 port. |
09ca9f01 MB |
169 | |
170 | %description apidocs -l pl.UTF-8 | |
ff2d8655 JB |
171 | Dokumentacja API portu WebKitu do GTK+ 3. |
172 | ||
173 | %package -n gtk-webkit4.1 | |
174 | Summary: Port of WebKit embeddable web component to GTK+ 3 with HTTP/2 support | |
175 | Summary(pl.UTF-8): Port osadzalnego komponentu WWW WebKit do GTK+ 3 z obsługą HTTP/2 | |
176 | Group: X11/Libraries | |
177 | Requires: at-spi2-core-libs >= 2.5.3 | |
178 | Requires: atk >= 1:2.16.0 | |
179 | Requires: cairo >= 1.16.0 | |
180 | Requires: fontconfig-libs >= 2.13.0 | |
181 | Requires: freetype >= 1:2.9.0 | |
182 | Requires: glib2 >= 1:2.67.1 | |
183 | Requires: gstreamer >= 1.2.3 | |
184 | Requires: gstreamer-plugins-base >= 1.2.3 | |
185 | Requires: gtk+3 >= 3.22.0 | |
186 | Requires: harfbuzz >= 1.4.2 | |
187 | Requires: libgcrypt >= 1.7.0 | |
188 | Requires: libsoup3 >= 3.0 | |
189 | Requires: libxml2 >= 1:2.8.0 | |
190 | Requires: libxslt >= 1.1.7 | |
191 | Requires: openjpeg2 >= 2.2.0 | |
192 | Requires: pango >= 1:1.32.0 | |
193 | Requires: woff2 >= 1.0.2 | |
194 | Requires: wpebackend-fdo >= 1.6.0 | |
195 | ||
196 | %description -n gtk-webkit4.1 | |
197 | gtk-webkit4.1 is a port of the WebKit embeddable web component to GTK+ | |
198 | 3 with HTTP/2 (libsoup 3) support. | |
199 | ||
200 | %description -n gtk-webkit4.1 -l pl.UTF-8 | |
201 | gtk-webkit4.1 to port osadzalnego komponentu WWW WebKit do GTK+ 3 z | |
202 | obsługą HTTP/2 (libsoup 3). | |
203 | ||
204 | %package -n gtk-webkit4.1-devel | |
205 | Summary: Development files for WebKit for GTK+ 3 with HTTP/2 support | |
206 | Summary(pl.UTF-8): Pliki programistyczne komponentu WebKit dla GTK+ 3 z obsługą HTTP/2 | |
207 | Group: X11/Development/Libraries | |
208 | Requires: gtk-webkit4.1 = %{version}-%{release} | |
209 | Requires: glib2-devel >= 1:2.67.1 | |
210 | Requires: gtk+3-devel >= 3.22.0 | |
211 | Requires: libsoup3-devel >= 3.0 | |
212 | Requires: libstdc++-devel >= 6:8 | |
213 | ||
214 | %description -n gtk-webkit4.1-devel | |
215 | Development files for WebKit for GTK+ 3 with HTTP/2 support. | |
216 | ||
217 | %description -n gtk-webkit4.1-devel -l pl.UTF-8 | |
218 | Pliki programistyczne komponentu WebKit dla GTK+ 3 z obsługą HTTP/2. | |
219 | ||
220 | %package -n gtk-webkit5 | |
221 | Summary: Port of WebKit embeddable web component to GTK 4 | |
222 | Summary(pl.UTF-8): Port osadzalnego komponentu WWW WebKit do GTK 4 | |
223 | Group: X11/Libraries | |
224 | Requires: at-spi2-core-libs >= 2.5.3 | |
225 | Requires: atk >= 1:2.16.0 | |
226 | Requires: cairo >= 1.16.0 | |
227 | Requires: fontconfig-libs >= 2.13.0 | |
228 | Requires: freetype >= 1:2.9.0 | |
229 | Requires: glib2 >= 1:2.67.1 | |
230 | Requires: gstreamer >= 1.2.3 | |
231 | Requires: gstreamer-plugins-base >= 1.2.3 | |
232 | Requires: gtk4 >= 4.0 | |
233 | Requires: harfbuzz >= 1.4.2 | |
234 | Requires: libgcrypt >= 1.7.0 | |
235 | Requires: libsoup3 >= 3.0 | |
236 | Requires: libxml2 >= 1:2.8.0 | |
237 | Requires: libxslt >= 1.1.7 | |
238 | Requires: openjpeg2 >= 2.2.0 | |
239 | Requires: pango >= 1:1.32.0 | |
240 | Requires: woff2 >= 1.0.2 | |
241 | Requires: wpebackend-fdo >= 1.6.0 | |
242 | ||
243 | %description -n gtk-webkit5 | |
244 | gtk-webkit5 is a port of the WebKit embeddable web component to GTK 4. | |
245 | ||
246 | %description -n gtk-webkit5 -l pl.UTF-8 | |
247 | gtk-webkit5 to port osadzalnego komponentu WWW WebKit do GTK+ 4. | |
248 | ||
249 | %package -n gtk-webkit5-devel | |
250 | Summary: Development files for WebKit for GTK 4 | |
251 | Summary(pl.UTF-8): Pliki programistyczne komponentu WebKit dla GTK 4 | |
252 | Group: X11/Development/Libraries | |
253 | Requires: gtk-webkit5 = %{version}-%{release} | |
254 | Requires: glib2-devel >= 1:2.67.1 | |
255 | Requires: gtk4-devel >= 4.0 | |
256 | Requires: libsoup3-devel >= 3.0 | |
257 | Requires: libstdc++-devel >= 6:8 | |
258 | ||
259 | %description -n gtk-webkit5-devel | |
260 | Development files for WebKit for GTK 4. | |
261 | ||
262 | %description -n gtk-webkit5-devel -l pl.UTF-8 | |
263 | Pliki programistyczne komponentu WebKit dla GTK 4. | |
264 | ||
265 | %package -n gtk-webkit5-apidocs | |
266 | Summary: API documentation for WebKit GTK 4 port | |
267 | Summary(pl.UTF-8): Dokumentacja API portu WebKitu do GTK 4 | |
268 | Group: Documentation | |
269 | Requires: gtk-doc-common | |
270 | BuildArch: noarch | |
271 | ||
272 | %description -n gtk-webkit5-apidocs | |
273 | API documentation for WebKit GTK 4 port. | |
274 | ||
275 | %description -n gtk-webkit5-apidocs -l pl.UTF-8 | |
276 | Dokumentacja API portu WebKitu do GTK 4. | |
09ca9f01 | 277 | |
f8e56294 | 278 | %prep |
9130be70 | 279 | %setup -q -n webkitgtk-%{version} |
72628bc4 | 280 | %patch0 -p1 |
9a072c00 | 281 | %patch1 -p1 |
97c9d259 | 282 | |
f8e56294 | 283 | %build |
ff2d8655 JB |
284 | for kind in %{?with_gtk3:%{?with_libsoup2:soup2} %{?with_libsoup3:soup3}} %{?with_gtk4:gtk4} ; do |
285 | install -d build-${kind} | |
286 | cd build-${kind} | |
287 | # gtk4 variant is missing some files in dist: | |
288 | # Source/WebKit/UIProcess/API/gtk/docs/webkit2gtk-5.0-sections.txt | |
289 | # Source/WebKit/UIProcess/API/gtk/docs/webkit2gtk-5.0.types | |
290 | # don't know how to generate them, disable GTKDOC for now | |
e761a49a | 291 | %cmake .. \ |
e761a49a | 292 | -DENABLE_GEOLOCATION=ON \ |
ff2d8655 | 293 | $([ "$kind" != "gtk4" ] && echo -DENABLE_GTKDOC=ON) \ |
816ef86e | 294 | %{!?with_introspection:-DENABLE_INTROSPECTION=OFF} \ |
89acae26 | 295 | -DENABLE_VIDEO=ON \ |
5e4ace1a | 296 | %{!?with_wayland:-DENABLE_WAYLAND_TARGET=OFF} \ |
89acae26 JB |
297 | -DENABLE_WEB_AUDIO=ON \ |
298 | -DENABLE_WEBGL=ON \ | |
72628bc4 | 299 | %ifarch x32 |
00cdc552 | 300 | -DENABLE_C_LOOP=ON \ |
72628bc4 | 301 | -DENABLE_JIT=OFF \ |
00cdc552 | 302 | -DENABLE_SAMPLING_PROFILER=OFF \ |
72628bc4 | 303 | %endif |
7e29230d JB |
304 | %ifarch %{ix86} %{x8664} x32 |
305 | -DHAVE_SSE2_EXTENSIONS=ON \ | |
306 | %endif | |
e761a49a | 307 | -DPORT=GTK \ |
4c404dc2 | 308 | -DSHOULD_INSTALL_JS_SHELL=ON \ |
ff2d8655 JB |
309 | $([ "$kind" = "gtk4" ] && echo -DUSE_GTK4=ON) \ |
310 | $([ "$kind" = "soup2" ] && echo -DUSE_SOUP2=ON) | |
e761a49a | 311 | |
e761a49a | 312 | %{__make} |
ff2d8655 JB |
313 | cd .. |
314 | done | |
f8e56294 AF |
315 | |
316 | %install | |
317 | rm -rf $RPM_BUILD_ROOT | |
318 | ||
ff2d8655 JB |
319 | for kind in %{?with_gtk3:%{?with_libsoup2:soup2} %{?with_libsoup3:soup3}} %{?with_gtk4:gtk4} ; do |
320 | %{__make} -C build-${kind} install \ | |
f8e56294 | 321 | DESTDIR=$RPM_BUILD_ROOT |
ff2d8655 | 322 | done |
f8e56294 | 323 | |
3e7920f5 JB |
324 | %if "%{_gtkdocdir}" != "%{_datadir}/gtk-doc/html" |
325 | install -d $RPM_BUILD_ROOT%{_gtkdocdir} | |
326 | %{__mv} $RPM_BUILD_ROOT%{_datadir}/gtk-doc/html/* $RPM_BUILD_ROOT%{_gtkdocdir} | |
327 | %endif | |
328 | ||
329 | %find_lang WebKit2GTK-4.0 | |
ff2d8655 JB |
330 | %find_lang WebKit2GTK-4.1 |
331 | %find_lang WebKit2GTK-5.0 | |
f8e56294 AF |
332 | |
333 | %clean | |
334 | rm -rf $RPM_BUILD_ROOT | |
335 | ||
09aa776b JB |
336 | %post -p /sbin/ldconfig |
337 | %postun -p /sbin/ldconfig | |
f8e56294 | 338 | |
ff2d8655 JB |
339 | %post -n gtk-webkit4.1 -p /sbin/ldconfig |
340 | %postun -n gtk-webkit4.1 -p /sbin/ldconfig | |
341 | ||
342 | %post -n gtk-webkit5 -p /sbin/ldconfig | |
343 | %postun -n gtk-webkit5 -p /sbin/ldconfig | |
344 | ||
345 | %if %{with gtk3} && %{with libsoup2} | |
3e7920f5 | 346 | %files -f WebKit2GTK-4.0.lang |
f8e56294 | 347 | %defattr(644,root,root,755) |
e761a49a | 348 | %doc NEWS |
356167c2 | 349 | %attr(755,root,root) %{_bindir}/WebKitWebDriver |
e761a49a JB |
350 | %attr(755,root,root) %{_libdir}/libwebkit2gtk-4.0.so.*.*.* |
351 | %attr(755,root,root) %ghost %{_libdir}/libwebkit2gtk-4.0.so.37 | |
352 | %attr(755,root,root) %{_libdir}/libjavascriptcoregtk-4.0.so.*.*.* | |
353 | %attr(755,root,root) %ghost %{_libdir}/libjavascriptcoregtk-4.0.so.18 | |
f8e56294 | 354 | %if %{with introspection} |
e761a49a JB |
355 | %{_libdir}/girepository-1.0/JavaScriptCore-4.0.typelib |
356 | %{_libdir}/girepository-1.0/WebKit2-4.0.typelib | |
357 | %{_libdir}/girepository-1.0/WebKit2WebExtension-4.0.typelib | |
f8e56294 | 358 | %endif |
7e29230d | 359 | %if "%{_libexecdir}" != "%{_libdir}" |
4ae8fac8 | 360 | %dir %{_libexecdir}/webkit2gtk-4.0 |
7e29230d | 361 | %endif |
4ae8fac8 | 362 | %attr(755,root,root) %{_libexecdir}/webkit2gtk-4.0/WebKitNetworkProcess |
4ae8fac8 MB |
363 | %attr(755,root,root) %{_libexecdir}/webkit2gtk-4.0/WebKitWebProcess |
364 | %attr(755,root,root) %{_libexecdir}/webkit2gtk-4.0/jsc | |
176cc4e5 | 365 | %dir %{_libdir}/webkit2gtk-4.0 |
e761a49a JB |
366 | %dir %{_libdir}/webkit2gtk-4.0/injected-bundle |
367 | %attr(755,root,root) %{_libdir}/webkit2gtk-4.0/injected-bundle/libwebkit2gtkinjectedbundle.so | |
f8e56294 AF |
368 | |
369 | %files devel | |
370 | %defattr(644,root,root,755) | |
e761a49a JB |
371 | %attr(755,root,root) %{_libdir}/libwebkit2gtk-4.0.so |
372 | %attr(755,root,root) %{_libdir}/libjavascriptcoregtk-4.0.so | |
f8e56294 | 373 | %if %{with introspection} |
e761a49a JB |
374 | %{_datadir}/gir-1.0/JavaScriptCore-4.0.gir |
375 | %{_datadir}/gir-1.0/WebKit2-4.0.gir | |
376 | %{_datadir}/gir-1.0/WebKit2WebExtension-4.0.gir | |
f8e56294 | 377 | %endif |
e761a49a JB |
378 | %{_includedir}/webkitgtk-4.0 |
379 | %{_pkgconfigdir}/javascriptcoregtk-4.0.pc | |
380 | %{_pkgconfigdir}/webkit2gtk-4.0.pc | |
381 | %{_pkgconfigdir}/webkit2gtk-web-extension-4.0.pc | |
ff2d8655 | 382 | %endif |
09ca9f01 | 383 | |
ff2d8655 | 384 | %if %{with gtk3} |
09ca9f01 MB |
385 | %files apidocs |
386 | %defattr(644,root,root,755) | |
7e29230d | 387 | %{_gtkdocdir}/jsc-glib-4.0 |
e761a49a JB |
388 | %{_gtkdocdir}/webkit2gtk-4.0 |
389 | %{_gtkdocdir}/webkitdomgtk-4.0 | |
ff2d8655 JB |
390 | %endif |
391 | ||
392 | %if %{with gtk3} && %{with libsoup3} | |
393 | %files -n gtk-webkit4.1 -f WebKit2GTK-4.1.lang | |
394 | %defattr(644,root,root,755) | |
395 | %doc NEWS | |
396 | %attr(755,root,root) %{_libdir}/libwebkit2gtk-4.1.so.*.*.* | |
397 | %attr(755,root,root) %ghost %{_libdir}/libwebkit2gtk-4.1.so.0 | |
398 | %attr(755,root,root) %{_libdir}/libjavascriptcoregtk-4.1.so.*.*.* | |
399 | %attr(755,root,root) %ghost %{_libdir}/libjavascriptcoregtk-4.1.so.0 | |
400 | %if %{with introspection} | |
401 | %{_libdir}/girepository-1.0/JavaScriptCore-4.1.typelib | |
402 | %{_libdir}/girepository-1.0/WebKit2-4.1.typelib | |
403 | %{_libdir}/girepository-1.0/WebKit2WebExtension-4.1.typelib | |
404 | %endif | |
405 | %if "%{_libexecdir}" != "%{_libdir}" | |
406 | %dir %{_libexecdir}/webkit2gtk-4.1 | |
407 | %endif | |
408 | %attr(755,root,root) %{_libexecdir}/webkit2gtk-4.1/WebKitNetworkProcess | |
409 | %attr(755,root,root) %{_libexecdir}/webkit2gtk-4.1/WebKitWebProcess | |
410 | %attr(755,root,root) %{_libexecdir}/webkit2gtk-4.1/jsc | |
411 | %dir %{_libdir}/webkit2gtk-4.1 | |
412 | %dir %{_libdir}/webkit2gtk-4.1/injected-bundle | |
413 | %attr(755,root,root) %{_libdir}/webkit2gtk-4.1/injected-bundle/libwebkit2gtkinjectedbundle.so | |
414 | ||
415 | %files -n gtk-webkit4.1-devel | |
416 | %defattr(644,root,root,755) | |
417 | %attr(755,root,root) %{_libdir}/libwebkit2gtk-4.1.so | |
418 | %attr(755,root,root) %{_libdir}/libjavascriptcoregtk-4.1.so | |
419 | %if %{with introspection} | |
420 | %{_datadir}/gir-1.0/JavaScriptCore-4.1.gir | |
421 | %{_datadir}/gir-1.0/WebKit2-4.1.gir | |
422 | %{_datadir}/gir-1.0/WebKit2WebExtension-4.1.gir | |
423 | %endif | |
424 | %{_includedir}/webkitgtk-4.1 | |
425 | %{_pkgconfigdir}/javascriptcoregtk-4.1.pc | |
426 | %{_pkgconfigdir}/webkit2gtk-4.1.pc | |
427 | %{_pkgconfigdir}/webkit2gtk-web-extension-4.1.pc | |
428 | %endif | |
429 | ||
430 | %if %{with gtk4} | |
431 | %files -n gtk-webkit5 -f WebKit2GTK-5.0.lang | |
432 | %defattr(644,root,root,755) | |
433 | %doc NEWS | |
434 | %attr(755,root,root) %{_libdir}/libwebkit2gtk-5.0.so.*.*.* | |
435 | %attr(755,root,root) %ghost %{_libdir}/libwebkit2gtk-5.0.so.0 | |
436 | %attr(755,root,root) %{_libdir}/libjavascriptcoregtk-5.0.so.*.*.* | |
437 | %attr(755,root,root) %ghost %{_libdir}/libjavascriptcoregtk-5.0.so.0 | |
438 | %if %{with introspection} | |
439 | %{_libdir}/girepository-1.0/JavaScriptCore-5.0.typelib | |
440 | %{_libdir}/girepository-1.0/WebKit2-5.0.typelib | |
441 | %{_libdir}/girepository-1.0/WebKit2WebExtension-5.0.typelib | |
442 | %endif | |
443 | %if "%{_libexecdir}" != "%{_libdir}" | |
444 | %dir %{_libexecdir}/webkit2gtk-5.0 | |
445 | %endif | |
446 | %attr(755,root,root) %{_libexecdir}/webkit2gtk-5.0/WebKitNetworkProcess | |
447 | %attr(755,root,root) %{_libexecdir}/webkit2gtk-5.0/WebKitWebProcess | |
448 | %attr(755,root,root) %{_libexecdir}/webkit2gtk-5.0/jsc | |
449 | %dir %{_libdir}/webkit2gtk-5.0 | |
450 | %dir %{_libdir}/webkit2gtk-5.0/injected-bundle | |
451 | %attr(755,root,root) %{_libdir}/webkit2gtk-5.0/injected-bundle/libwebkit2gtkinjectedbundle.so | |
452 | ||
453 | %files -n gtk-webkit5-devel | |
454 | %defattr(644,root,root,755) | |
455 | %attr(755,root,root) %{_libdir}/libwebkit2gtk-5.0.so | |
456 | %attr(755,root,root) %{_libdir}/libjavascriptcoregtk-5.0.so | |
457 | %if %{with introspection} | |
458 | %{_datadir}/gir-1.0/JavaScriptCore-5.0.gir | |
459 | %{_datadir}/gir-1.0/WebKit2-5.0.gir | |
460 | %{_datadir}/gir-1.0/WebKit2WebExtension-5.0.gir | |
461 | %endif | |
462 | %{_includedir}/webkitgtk-5.0 | |
463 | %{_pkgconfigdir}/javascriptcoregtk-5.0.pc | |
464 | %{_pkgconfigdir}/webkit2gtk-5.0.pc | |
465 | %{_pkgconfigdir}/webkit2gtk-web-extension-5.0.pc | |
466 | ||
467 | # disabled for now, see note on cmake | |
468 | %if 0 | |
469 | %files -n gtk-webkit5-apidocs | |
470 | %defattr(644,root,root,755) | |
471 | %{_gtkdocdir}/jsc-glib-5.0 | |
472 | %{_gtkdocdir}/webkit2gtk-5.0 | |
473 | %{_gtkdocdir}/webkitdomgtk-5.0 | |
474 | %endif | |
475 | %endif |