]>
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 |
095301dc | 64 | BuildRequires: gstreamer-transcoder-devel >= 1.20 |
ff2d8655 JB |
65 | %{?with_gtk3:BuildRequires: gtk+3-devel >= 3.22.0} |
66 | %{?with_gtk4:BuildRequires: gtk4-devel >= 4.0} | |
f8e56294 | 67 | BuildRequires: gtk-doc >= 1.10 |
7e29230d JB |
68 | BuildRequires: harfbuzz-devel >= 1.4.2 |
69 | BuildRequires: harfbuzz-icu-devel >= 1.4.2 | |
9a76c25d | 70 | BuildRequires: hyphen-devel |
c1d5b85e | 71 | BuildRequires: lcms2-devel >= 2 |
455d5174 JB |
72 | BuildRequires: libavif-devel >= 0.9.0 |
73 | BuildRequires: libepoxy-devel >= 1.4.0 | |
7e29230d | 74 | BuildRequires: libgcrypt-devel >= 1.7.0 |
4c404dc2 | 75 | BuildRequires: libicu-devel >= 61.2 |
f8e56294 | 76 | BuildRequires: libjpeg-devel |
4c404dc2 | 77 | BuildRequires: libmanette-devel >= 0.2.4 |
ad56e591 | 78 | BuildRequires: libnotify-devel |
f8e56294 | 79 | BuildRequires: libpng-devel |
b36c2ff8 | 80 | BuildRequires: libseccomp-devel |
bbd2fab2 | 81 | BuildRequires: libsecret-devel |
ff2d8655 JB |
82 | %{?with_libsoup2:BuildRequires: libsoup-devel >= 2.54} |
83 | %{?with_libsoup3:BuildRequires: libsoup3-devel >= 3.0} | |
455d5174 JB |
84 | # -std=c++2a; WebKitCommon.cmake says gcc 9.3.0 is minimum, but 9.5.0 fails to build |
85 | BuildRequires: libstdc++-devel >= 6:10 | |
7e29230d | 86 | BuildRequires: libtasn1-devel |
bbd2fab2 | 87 | BuildRequires: libwebp-devel |
356167c2 | 88 | BuildRequires: libwpe-devel >= 1.3.0 |
e761a49a | 89 | BuildRequires: libxml2-devel >= 1:2.8.0 |
f8e56294 | 90 | BuildRequires: libxslt-devel >= 1.1.7 |
7e29230d | 91 | BuildRequires: openjpeg2-devel >= 2.2.0 |
bbd2fab2 | 92 | BuildRequires: pango-devel >= 1:1.32.0 |
e761a49a | 93 | BuildRequires: perl-base >= 1:5.10.0 |
f8e56294 | 94 | BuildRequires: pkgconfig |
ad56e591 | 95 | BuildRequires: python >= 1:2.7.0 |
24bb4de1 | 96 | BuildRequires: rpm-build >= 4.6 |
01e3a259 | 97 | BuildRequires: rpmbuild(macros) >= 1.699 |
455d5174 JB |
98 | BuildRequires: ruby >= 1:2.5 |
99 | BuildRequires: ruby-modules >= 1:2.5 | |
333087b6 | 100 | BuildRequires: sqlite3-devel >= 3 |
846fa469 | 101 | BuildRequires: systemd-devel |
09aa776b | 102 | BuildRequires: tar >= 1:1.22 |
455d5174 | 103 | BuildRequires: unifdef |
c66682f9 JB |
104 | %if %{with wayland} |
105 | BuildRequires: wayland-devel | |
106 | BuildRequires: wayland-egl-devel | |
ab41d2aa | 107 | BuildRequires: wayland-protocols >= 1.12 |
c66682f9 | 108 | %endif |
4c404dc2 | 109 | BuildRequires: wpebackend-fdo-devel >= 1.6.0 |
7e29230d | 110 | BuildRequires: woff2-devel >= 1.0.2 |
215513aa | 111 | BuildRequires: xdg-dbus-proxy |
c66682f9 | 112 | BuildRequires: xorg-lib-libICE-devel |
e9e9ae8f | 113 | BuildRequires: xorg-lib-libXcomposite-devel |
e3d059d0 | 114 | BuildRequires: xorg-lib-libXdamage-devel |
c66682f9 | 115 | BuildRequires: xorg-lib-libXext-devel |
cf9395dc | 116 | BuildRequires: xorg-lib-libXrender-devel |
09ca9f01 | 117 | BuildRequires: xorg-lib-libXt-devel |
09aa776b | 118 | BuildRequires: xz |
09ca9f01 | 119 | BuildRequires: zlib-devel |
c66682f9 JB |
120 | Requires: at-spi2-core-libs >= 2.5.3 |
121 | Requires: atk >= 1:2.16.0 | |
7e29230d JB |
122 | Requires: cairo >= 1.16.0 |
123 | Requires: fontconfig-libs >= 2.13.0 | |
124 | Requires: freetype >= 1:2.9.0 | |
455d5174 | 125 | Requires: glib2 >= 1:2.70.0 |
6a5b6199 JB |
126 | Requires: gstreamer >= 1.2.3 |
127 | Requires: gstreamer-plugins-base >= 1.2.3 | |
c66682f9 | 128 | Requires: gtk+3 >= 3.22.0 |
7e29230d | 129 | Requires: harfbuzz >= 1.4.2 |
c66682f9 JB |
130 | Requires: libgcrypt >= 1.7.0 |
131 | Requires: libsoup >= 2.54 | |
c1d5b85e | 132 | Requires: libwpe >= 1.3.0 |
e761a49a | 133 | Requires: libxml2 >= 1:2.8.0 |
f8e56294 | 134 | Requires: libxslt >= 1.1.7 |
7e29230d | 135 | Requires: openjpeg2 >= 2.2.0 |
bbd2fab2 | 136 | Requires: pango >= 1:1.32.0 |
7e29230d | 137 | Requires: woff2 >= 1.0.2 |
4c404dc2 | 138 | Requires: wpebackend-fdo >= 1.6.0 |
f8e56294 | 139 | %{?with_introspection:Conflicts: gir-repository < 0.6.5-7} |
5e4ace1a | 140 | # Source/JavaScriptCore/CMakeLists.txt /WTF_CPU_ |
82029cf4 | 141 | ExclusiveArch: %{ix86} %{x8664} x32 %{arm} aarch64 hppa mips ppc ppc64 ppc64le s390 s390x sh4 |
f8e56294 AF |
142 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) |
143 | ||
b19bf66f | 144 | # __once_call, __once_called non-function symbols from libstdc++ |
3e7920f5 | 145 | %define skip_post_check_so lib.*gtk-4.0.* |
b19bf66f | 146 | |
f8e56294 | 147 | %description |
3e7920f5 | 148 | gtk-webkit4 is a port of the WebKit embeddable web component to GTK+ |
b19bf66f | 149 | 3. |
f8e56294 AF |
150 | |
151 | %description -l pl.UTF-8 | |
3e7920f5 | 152 | gtk-webkit4 to port osadzalnego komponentu WWW WebKit do GTK+ 3. |
f8e56294 AF |
153 | |
154 | %package devel | |
97c9d259 JB |
155 | Summary: Development files for WebKit for GTK+ 3 |
156 | Summary(pl.UTF-8): Pliki programistyczne komponentu WebKit dla GTK+ 3 | |
f8e56294 AF |
157 | Group: X11/Development/Libraries |
158 | Requires: %{name} = %{version}-%{release} | |
455d5174 | 159 | Requires: glib2-devel >= 1:2.70.0 |
c66682f9 JB |
160 | Requires: gtk+3-devel >= 3.22.0 |
161 | Requires: libsoup-devel >= 2.54 | |
c1d5b85e | 162 | Requires: libstdc++-devel >= 6:8.3 |
f8e56294 AF |
163 | |
164 | %description devel | |
97c9d259 | 165 | Development files for WebKit for GTK+ 3. |
f8e56294 AF |
166 | |
167 | %description devel -l pl.UTF-8 | |
97c9d259 | 168 | Pliki programistyczne komponentu WebKit dla GTK+ 3. |
f8e56294 | 169 | |
09ca9f01 | 170 | %package apidocs |
ff2d8655 JB |
171 | Summary: API documentation for WebKit GTK+ 3 port |
172 | Summary(pl.UTF-8): Dokumentacja API portu WebKitu do GTK+ 3 | |
09ca9f01 MB |
173 | Group: Documentation |
174 | Requires: gtk-doc-common | |
8f69f015 | 175 | BuildArch: noarch |
09ca9f01 MB |
176 | |
177 | %description apidocs | |
ff2d8655 | 178 | API documentation for WebKit GTK+ 3 port. |
09ca9f01 MB |
179 | |
180 | %description apidocs -l pl.UTF-8 | |
ff2d8655 JB |
181 | Dokumentacja API portu WebKitu do GTK+ 3. |
182 | ||
183 | %package -n gtk-webkit4.1 | |
184 | Summary: Port of WebKit embeddable web component to GTK+ 3 with HTTP/2 support | |
185 | Summary(pl.UTF-8): Port osadzalnego komponentu WWW WebKit do GTK+ 3 z obsługą HTTP/2 | |
186 | Group: X11/Libraries | |
187 | Requires: at-spi2-core-libs >= 2.5.3 | |
188 | Requires: atk >= 1:2.16.0 | |
189 | Requires: cairo >= 1.16.0 | |
190 | Requires: fontconfig-libs >= 2.13.0 | |
191 | Requires: freetype >= 1:2.9.0 | |
455d5174 | 192 | Requires: glib2 >= 1:2.70.0 |
ff2d8655 JB |
193 | Requires: gstreamer >= 1.2.3 |
194 | Requires: gstreamer-plugins-base >= 1.2.3 | |
195 | Requires: gtk+3 >= 3.22.0 | |
196 | Requires: harfbuzz >= 1.4.2 | |
197 | Requires: libgcrypt >= 1.7.0 | |
198 | Requires: libsoup3 >= 3.0 | |
c1d5b85e | 199 | Requires: libwpe >= 1.3.0 |
ff2d8655 JB |
200 | Requires: libxml2 >= 1:2.8.0 |
201 | Requires: libxslt >= 1.1.7 | |
202 | Requires: openjpeg2 >= 2.2.0 | |
203 | Requires: pango >= 1:1.32.0 | |
204 | Requires: woff2 >= 1.0.2 | |
205 | Requires: wpebackend-fdo >= 1.6.0 | |
206 | ||
207 | %description -n gtk-webkit4.1 | |
208 | gtk-webkit4.1 is a port of the WebKit embeddable web component to GTK+ | |
209 | 3 with HTTP/2 (libsoup 3) support. | |
210 | ||
211 | %description -n gtk-webkit4.1 -l pl.UTF-8 | |
212 | gtk-webkit4.1 to port osadzalnego komponentu WWW WebKit do GTK+ 3 z | |
213 | obsługą HTTP/2 (libsoup 3). | |
214 | ||
215 | %package -n gtk-webkit4.1-devel | |
216 | Summary: Development files for WebKit for GTK+ 3 with HTTP/2 support | |
217 | Summary(pl.UTF-8): Pliki programistyczne komponentu WebKit dla GTK+ 3 z obsługą HTTP/2 | |
218 | Group: X11/Development/Libraries | |
219 | Requires: gtk-webkit4.1 = %{version}-%{release} | |
455d5174 | 220 | Requires: glib2-devel >= 1:2.70.0 |
ff2d8655 JB |
221 | Requires: gtk+3-devel >= 3.22.0 |
222 | Requires: libsoup3-devel >= 3.0 | |
c1d5b85e | 223 | Requires: libstdc++-devel >= 6:8.3 |
ff2d8655 JB |
224 | |
225 | %description -n gtk-webkit4.1-devel | |
226 | Development files for WebKit for GTK+ 3 with HTTP/2 support. | |
227 | ||
228 | %description -n gtk-webkit4.1-devel -l pl.UTF-8 | |
229 | Pliki programistyczne komponentu WebKit dla GTK+ 3 z obsługą HTTP/2. | |
230 | ||
c1d5b85e JB |
231 | %package -n gtk-webkit4.1-apidocs |
232 | Summary: API documentation for WebKit GTK+ 3 port with HTTP/2 support | |
233 | Summary(pl.UTF-8): Dokumentacja API portu WebKitu do GTK+ 3 z obsługą HTTP/2 | |
234 | Group: Documentation | |
235 | Requires: gtk-doc-common | |
236 | BuildArch: noarch | |
237 | ||
238 | %description -n gtk-webkit4.1-apidocs | |
239 | API documentation for WebKit GTK+ 3 port with HTTP/2 support. | |
240 | ||
241 | %description -n gtk-webkit4.1-apidocs -l pl.UTF-8 | |
242 | Dokumentacja API portu WebKitu do GTK+ 3 z obsługą HTTP/2. | |
243 | ||
455d5174 | 244 | %package -n gtk-webkit6 |
ff2d8655 JB |
245 | Summary: Port of WebKit embeddable web component to GTK 4 |
246 | Summary(pl.UTF-8): Port osadzalnego komponentu WWW WebKit do GTK 4 | |
247 | Group: X11/Libraries | |
248 | Requires: at-spi2-core-libs >= 2.5.3 | |
249 | Requires: atk >= 1:2.16.0 | |
250 | Requires: cairo >= 1.16.0 | |
251 | Requires: fontconfig-libs >= 2.13.0 | |
252 | Requires: freetype >= 1:2.9.0 | |
455d5174 | 253 | Requires: glib2 >= 1:2.70.0 |
ff2d8655 JB |
254 | Requires: gstreamer >= 1.2.3 |
255 | Requires: gstreamer-plugins-base >= 1.2.3 | |
256 | Requires: gtk4 >= 4.0 | |
257 | Requires: harfbuzz >= 1.4.2 | |
258 | Requires: libgcrypt >= 1.7.0 | |
259 | Requires: libsoup3 >= 3.0 | |
c1d5b85e | 260 | Requires: libwpe >= 1.3.0 |
ff2d8655 JB |
261 | Requires: libxml2 >= 1:2.8.0 |
262 | Requires: libxslt >= 1.1.7 | |
263 | Requires: openjpeg2 >= 2.2.0 | |
264 | Requires: pango >= 1:1.32.0 | |
265 | Requires: woff2 >= 1.0.2 | |
266 | Requires: wpebackend-fdo >= 1.6.0 | |
267 | ||
455d5174 JB |
268 | %description -n gtk-webkit6 |
269 | gtk-webkit6 is a port of the WebKit embeddable web component to GTK 4. | |
ff2d8655 | 270 | |
455d5174 JB |
271 | %description -n gtk-webkit6 -l pl.UTF-8 |
272 | gtk-webkit6 to port osadzalnego komponentu WWW WebKit do GTK+ 4. | |
ff2d8655 | 273 | |
455d5174 | 274 | %package -n gtk-webkit6-devel |
ff2d8655 JB |
275 | Summary: Development files for WebKit for GTK 4 |
276 | Summary(pl.UTF-8): Pliki programistyczne komponentu WebKit dla GTK 4 | |
277 | Group: X11/Development/Libraries | |
455d5174 JB |
278 | Requires: gtk-webkit6 = %{version}-%{release} |
279 | Requires: glib2-devel >= 1:2.70.0 | |
ff2d8655 JB |
280 | Requires: gtk4-devel >= 4.0 |
281 | Requires: libsoup3-devel >= 3.0 | |
c1d5b85e | 282 | Requires: libstdc++-devel >= 6:8.3 |
ff2d8655 | 283 | |
455d5174 | 284 | %description -n gtk-webkit6-devel |
ff2d8655 JB |
285 | Development files for WebKit for GTK 4. |
286 | ||
455d5174 | 287 | %description -n gtk-webkit6-devel -l pl.UTF-8 |
ff2d8655 JB |
288 | Pliki programistyczne komponentu WebKit dla GTK 4. |
289 | ||
455d5174 | 290 | %package -n gtk-webkit6-apidocs |
ff2d8655 JB |
291 | Summary: API documentation for WebKit GTK 4 port |
292 | Summary(pl.UTF-8): Dokumentacja API portu WebKitu do GTK 4 | |
293 | Group: Documentation | |
294 | Requires: gtk-doc-common | |
295 | BuildArch: noarch | |
296 | ||
455d5174 | 297 | %description -n gtk-webkit6-apidocs |
ff2d8655 JB |
298 | API documentation for WebKit GTK 4 port. |
299 | ||
455d5174 | 300 | %description -n gtk-webkit6-apidocs -l pl.UTF-8 |
ff2d8655 | 301 | Dokumentacja API portu WebKitu do GTK 4. |
09ca9f01 | 302 | |
f8e56294 | 303 | %prep |
9130be70 | 304 | %setup -q -n webkitgtk-%{version} |
72628bc4 | 305 | %patch0 -p1 |
9a072c00 | 306 | %patch1 -p1 |
c1d5b85e | 307 | %patch2 -p1 |
91a52fe3 | 308 | %patch3 -p1 |
97c9d259 | 309 | |
f8e56294 | 310 | %build |
c1d5b85e | 311 | %if %{with lowmem} |
de0591dd | 312 | CXXFLAGS="%{rpmcxxflags} --param ggc-min-expand=20 --param ggc-min-heapsize=65536" |
c1d5b85e | 313 | %endif |
ff2d8655 | 314 | for kind in %{?with_gtk3:%{?with_libsoup2:soup2} %{?with_libsoup3:soup3}} %{?with_gtk4:gtk4} ; do |
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 | ||
455d5174 JB |
353 | %{?with_gtk3:%{?with_libsoup2:%find_lang WebKitGTK-4.0}} |
354 | %{?with_gtk3:%{?with_libsoup3:%find_lang WebKitGTK-4.1}} | |
355 | %{?with_gtk4:%find_lang WebKitGTK-6.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 | ||
455d5174 JB |
366 | %post -n gtk-webkit6 -p /sbin/ldconfig |
367 | %postun -n gtk-webkit6 -p /sbin/ldconfig | |
ff2d8655 JB |
368 | |
369 | %if %{with gtk3} && %{with libsoup2} | |
455d5174 | 370 | %files -f WebKitGTK-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} | |
455d5174 | 416 | %files -n gtk-webkit4.1 -f WebKitGTK-4.1.lang |
ff2d8655 JB |
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} | |
455d5174 | 462 | %files -n gtk-webkit6 -f WebKitGTK-6.0.lang |
ff2d8655 JB |
463 | %defattr(644,root,root,755) |
464 | %doc NEWS | |
455d5174 JB |
465 | %attr(755,root,root) %{_bindir}/WebKitWebDriver-6.0 |
466 | %attr(755,root,root) %{_libdir}/libjavascriptcoregtk-6.0.so.*.*.* | |
467 | %attr(755,root,root) %ghost %{_libdir}/libjavascriptcoregtk-6.0.so.1 | |
468 | %attr(755,root,root) %{_libdir}/libwebkitgtk-6.0.so.*.*.* | |
469 | %attr(755,root,root) %ghost %{_libdir}/libwebkitgtk-6.0.so.4 | |
ff2d8655 | 470 | %if %{with introspection} |
455d5174 JB |
471 | %{_libdir}/girepository-1.0/JavaScriptCore-6.0.typelib |
472 | %{_libdir}/girepository-1.0/WebKit-6.0.typelib | |
473 | %{_libdir}/girepository-1.0/WebKitWebProcessExtension-6.0.typelib | |
ff2d8655 JB |
474 | %endif |
475 | %if "%{_libexecdir}" != "%{_libdir}" | |
455d5174 | 476 | %dir %{_libexecdir}/webkitgtk-6.0 |
ff2d8655 | 477 | %endif |
455d5174 JB |
478 | %attr(755,root,root) %{_libexecdir}/webkitgtk-6.0/MiniBrowser |
479 | %attr(755,root,root) %{_libexecdir}/webkitgtk-6.0/WebKitNetworkProcess | |
480 | %attr(755,root,root) %{_libexecdir}/webkitgtk-6.0/WebKitWebProcess | |
481 | %attr(755,root,root) %{_libexecdir}/webkitgtk-6.0/jsc | |
482 | %dir %{_libdir}/webkitgtk-6.0 | |
483 | %dir %{_libdir}/webkitgtk-6.0/injected-bundle | |
484 | %attr(755,root,root) %{_libdir}/webkitgtk-6.0/injected-bundle/libwebkitgtkinjectedbundle.so | |
485 | ||
486 | %files -n gtk-webkit6-devel | |
ff2d8655 | 487 | %defattr(644,root,root,755) |
455d5174 JB |
488 | %attr(755,root,root) %{_libdir}/libwebkitgtk-6.0.so |
489 | %attr(755,root,root) %{_libdir}/libjavascriptcoregtk-6.0.so | |
ff2d8655 | 490 | %if %{with introspection} |
455d5174 JB |
491 | %{_datadir}/gir-1.0/JavaScriptCore-6.0.gir |
492 | %{_datadir}/gir-1.0/WebKit-6.0.gir | |
493 | %{_datadir}/gir-1.0/WebKitWebProcessExtension-6.0.gir | |
ff2d8655 | 494 | %endif |
455d5174 JB |
495 | %{_includedir}/webkitgtk-6.0 |
496 | %{_pkgconfigdir}/javascriptcoregtk-6.0.pc | |
497 | %{_pkgconfigdir}/webkitgtk-6.0.pc | |
498 | %{_pkgconfigdir}/webkitgtk-web-process-extension-6.0.pc | |
ff2d8655 | 499 | |
455d5174 | 500 | %files -n gtk-webkit6-apidocs |
ff2d8655 | 501 | %defattr(644,root,root,755) |
455d5174 JB |
502 | %{_gtkdocdir}/javascriptcoregtk-6.0 |
503 | %{_gtkdocdir}/webkitgtk-6.0 | |
504 | %{_gtkdocdir}/webkitgtk-web-process-extension-6.0 | |
ff2d8655 | 505 | %endif |