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