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