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