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