[packages/gtk-webkit4.1] - based on gtk-webkit4.spec, updated to 2.52.4; libsoup2 variant dropped, so 4.1 an 6 versions are b

qboosh qboosh at pld-linux.org
Sat Jun 6 08:35:50 CEST 2026


commit 4b902e78cfb03b07749deb25173df291cbab5c18
Author: Jakub Bogusz <qboosh at pld-linux.org>
Date:   Sat Jun 6 08:36:03 2026 +0200

    - based on gtk-webkit4.spec, updated to 2.52.4; libsoup2 variant dropped, so 4.1 an 6 versions are built

 gtk-webkit4.spec => gtk-webkit4.1.spec | 174 ++++++---------------------------
 1 file changed, 29 insertions(+), 145 deletions(-)
---
diff --git a/gtk-webkit4.spec b/gtk-webkit4.1.spec
similarity index 72%
rename from gtk-webkit4.spec
rename to gtk-webkit4.1.spec
index 5acc4ac..27c1a7e 100644
--- a/gtk-webkit4.spec
+++ b/gtk-webkit4.1.spec
@@ -4,14 +4,13 @@
 # - ENCRYPTED_MEDIA (experimental)
 # - THUNDER? (BR: Thunder + ThunderClientLibraries)
 # - WEBDRIVER_BIDI (experimental)
+# - WEBXR (experimental; BR: OpenXR >= 1.0.20)
 # - WK_WEB_EXTENSIONS (experimental)
 #
 # Conditional build:
 %bcond_without	introspection	# GObject introspection
-%bcond_without	libsoup2	# webkit-4.0 (libsoup2 based) variant
-%bcond_without	libsoup3	# webkit-4.1 (libsoup3 based) variant (HTTP/2 support)
-%bcond_without	gtk3		# webkit-4.x (gtk3 based) variants
-%bcond_without	gtk4		# webkit-6.0 (gtk4/libsoup3 based) variant
+%bcond_without	gtk3		# webkit-4.1 (gtk3 based) variant
+%bcond_without	gtk4		# webkit-6.0 (gtk4 based) variant
 %bcond_without	sysprof		# sysprof profiling
 %bcond_without	wayland		# Wayland target (requires GTK+ wayland target)
 %ifarch x32
@@ -25,20 +24,20 @@
 # memory constraints during linking and x86_64 debuginfo packages kill poldek
 %define		_enable_debug_packages		0
 
-Summary:	Port of WebKit embeddable web component to GTK+ 3
-Summary(pl.UTF-8):	Port osadzalnego komponentu WWW WebKit do GTK+ 3
-Name:		gtk-webkit4
-# NOTE: 2.50.x is stable, 2.51.x devel
-Version:	2.50.6
+Summary:	Port of WebKit embeddable web component to GTK+ 3 with HTTP/2 support
+Summary(pl.UTF-8):	Port osadzalnego komponentu WWW WebKit do GTK+ 3 z obsługą HTTP/2
+Name:		gtk-webkit4.1
+# NOTE: 2.52.x is stable, 2.53.x devel
+Version:	2.52.4
 Release:	1
 License:	BSD-like
 Group:		X11/Libraries
 Source0:	https://webkitgtk.org/releases/webkitgtk-%{version}.tar.xz
-# Source0-md5:	30e318a7bd316fcd1937902f987f7d65
+# Source0-md5:	9dca285545cf38c5d16218a290b3ca6a
 Patch0:		x32.patch
-Patch1:		%{name}-icu59.patch
+Patch1:		gtk-webkit4-icu59.patch
 Patch2:		parallel-gir.patch
-Patch3:		%{name}-driver-version-suffix.patch
+Patch3:		gtk-webkit4-driver-version-suffix.patch
 Patch4:		max-bundle-size.patch
 URL:		https://webkitgtk.org/
 BuildRequires:	/usr/bin/ld.gold
@@ -95,9 +94,8 @@ BuildRequires:	libnotify-devel
 BuildRequires:	libpng-devel
 BuildRequires:	libseccomp-devel
 BuildRequires:	libsecret-devel
-%{?with_libsoup2:BuildRequires:	libsoup-devel >= 2.54}
-%{?with_libsoup3:BuildRequires:	libsoup3-devel >= 3.0}
-# -std=c++23; WebKitCommon.cmake says gcc 11.2.0 is minimum
+BuildRequires:	libsoup3-devel >= 3.0
+# -std=c++23; WebKitCommon.cmake says gcc 12.2.0 is minimum
 BuildRequires:	libstdc++-devel >= 6:12.2
 BuildRequires:	libtasn1-devel
 BuildRequires:	libwebp-devel
@@ -126,6 +124,7 @@ BuildRequires:	wayland-protocols >= 1.24
 BuildRequires:	woff2-devel >= 1.0.2
 BuildRequires:	xdg-dbus-proxy
 BuildRequires:	xorg-lib-libICE-devel
+BuildRequires:	xorg-lib-libX11-devel
 BuildRequires:	xorg-lib-libXcomposite-devel
 BuildRequires:	xorg-lib-libXdamage-devel
 BuildRequires:	xorg-lib-libXext-devel
@@ -143,10 +142,9 @@ Requires:	gstreamer >= 1.2.3
 Requires:	gstreamer-plugins-base >= 1.2.3
 Requires:	gtk+3 >= 3.22.0
 Requires:	harfbuzz >= 2.7.4
-Requires:	libepoxy >= 1.5.4
 Requires:	libgcrypt >= 1.7.0
 Requires:	libjxl >= 0.7.0
-Requires:	libsoup >= 2.54
+Requires:	libsoup3 >= 3.0
 Requires:	libxml2 >= 1:2.9.13
 Requires:	libxslt >= 1.1.13
 Requires:	openjpeg2 >= 2.2.0
@@ -158,77 +156,15 @@ Requires:	woff2 >= 1.0.2
 ExclusiveArch:	%{ix86} %{x8664} x32 %{arm} aarch64 hppa mips ppc ppc64 ppc64le s390 s390x sh4
 BuildRoot:	%{tmpdir}/%{name}-%{version}-root-%(id -u -n)
 
-# __once_call, __once_called non-function symbols from libstdc++
-%define		skip_post_check_so	lib.*gtk-4.0.*
-
 %description
-gtk-webkit4 is a port of the WebKit embeddable web component to GTK+
-3.
-
-%description -l pl.UTF-8
-gtk-webkit4 to port osadzalnego komponentu WWW WebKit do GTK+ 3.
-
-%package devel
-Summary:	Development files for WebKit for GTK+ 3
-Summary(pl.UTF-8):	Pliki programistyczne komponentu WebKit dla GTK+ 3
-Group:		X11/Development/Libraries
-Requires:	%{name} = %{version}-%{release}
-Requires:	glib2-devel >= 1:2.70.0
-Requires:	gtk+3-devel >= 3.22.0
-Requires:	libsoup-devel >= 2.54
-Requires:	libstdc++-devel >= 6:11.2
-
-%description devel
-Development files for WebKit for GTK+ 3.
-
-%description devel -l pl.UTF-8
-Pliki programistyczne komponentu WebKit dla GTK+ 3.
-
-%package apidocs
-Summary:	API documentation for WebKit GTK+ 3 port
-Summary(pl.UTF-8):	Dokumentacja API portu WebKitu do GTK+ 3
-Group:		Documentation
-BuildArch:	noarch
-
-%description apidocs
-API documentation for WebKit GTK+ 3 port.
-
-%description apidocs -l pl.UTF-8
-Dokumentacja API portu WebKitu do GTK+ 3.
-
-%package -n gtk-webkit4.1
-Summary:	Port of WebKit embeddable web component to GTK+ 3 with HTTP/2 support
-Summary(pl.UTF-8):	Port osadzalnego komponentu WWW WebKit do GTK+ 3 z obsługą HTTP/2
-Group:		X11/Libraries
-Requires:	at-spi2-core-libs >= 2.5.3
-Requires:	atk >= 1:2.16.0
-Requires:	cairo >= 1.16.0
-Requires:	fontconfig-libs >= 2.13.0
-Requires:	freetype >= 1:2.9.0
-Requires:	glib2 >= 1:2.70.0
-Requires:	gstreamer >= 1.2.3
-Requires:	gstreamer-plugins-base >= 1.2.3
-Requires:	gtk+3 >= 3.22.0
-Requires:	harfbuzz >= 2.7.4
-Requires:	libgcrypt >= 1.7.0
-Requires:	libjxl >= 0.7.0
-Requires:	libsoup3 >= 3.0
-Requires:	libxml2 >= 1:2.9.13
-Requires:	libxslt >= 1.1.13
-Requires:	openjpeg2 >= 2.2.0
-Requires:	pango >= 1:1.32.0
-Requires:	wayland >= 1.20
-Requires:	woff2 >= 1.0.2
-
-%description -n gtk-webkit4.1
 gtk-webkit4.1 is a port of the WebKit embeddable web component to GTK+
 3 with HTTP/2 (libsoup 3) support.
 
-%description -n gtk-webkit4.1 -l pl.UTF-8
+%description -l pl.UTF-8
 gtk-webkit4.1 to port osadzalnego komponentu WWW WebKit do GTK+ 3 z
 obsługą HTTP/2 (libsoup 3).
 
-%package -n gtk-webkit4.1-devel
+%package devel
 Summary:	Development files for WebKit for GTK+ 3 with HTTP/2 support
 Summary(pl.UTF-8):	Pliki programistyczne komponentu WebKit dla GTK+ 3 z obsługą HTTP/2
 Group:		X11/Development/Libraries
@@ -238,22 +174,22 @@ Requires:	gtk+3-devel >= 3.22.0
 Requires:	libsoup3-devel >= 3.0
 Requires:	libstdc++-devel >= 6:11.2
 
-%description -n gtk-webkit4.1-devel
+%description devel
 Development files for WebKit for GTK+ 3 with HTTP/2 support.
 
-%description -n gtk-webkit4.1-devel -l pl.UTF-8
+%description devel -l pl.UTF-8
 Pliki programistyczne komponentu WebKit dla GTK+ 3 z obsługą HTTP/2.
 
-%package -n gtk-webkit4.1-apidocs
+%package apidocs
 Summary:	API documentation for WebKit GTK+ 3 port with HTTP/2 support
 Summary(pl.UTF-8):	Dokumentacja API portu WebKitu do GTK+ 3 z obsługą HTTP/2
 Group:		Documentation
 BuildArch:	noarch
 
-%description -n gtk-webkit4.1-apidocs
+%description apidocs
 API documentation for WebKit GTK+ 3 port with HTTP/2 support.
 
-%description -n gtk-webkit4.1-apidocs -l pl.UTF-8
+%description apidocs -l pl.UTF-8
 Dokumentacja API portu WebKitu do GTK+ 3 z obsługą HTTP/2.
 
 %package -n gtk-webkit6
@@ -324,7 +260,7 @@ Dokumentacja API portu WebKitu do GTK 4.
 
 %build
 CXXFLAGS="%{rpmcxxflags} -DNDEBUG %{?with_lowmem:--param ggc-min-expand=20 --param ggc-min-heapsize=65536}"
-for kind in %{?with_gtk3:%{?with_libsoup2:soup2} %{?with_libsoup3:soup3}} %{?with_gtk4:gtk4} ; do
+for kind in %{?with_gtk3:gtk3} %{?with_gtk4:gtk4} ; do
 %cmake -B build-${kind} \
 	-DENABLE_GEOLOCATION=ON \
 	-DENABLE_GTKDOC=ON \
@@ -346,7 +282,6 @@ for kind in %{?with_gtk3:%{?with_libsoup2:soup2} %{?with_libsoup3:soup3}} %{?wit
 	-DSHOULD_INSTALL_JS_SHELL=ON \
 	$([ "$kind" != "gtk4" ] && echo -DUSE_GTK4=OFF) \
 	-DUSE_LIBBACKTRACE=OFF \
-	$([ "$kind" = "soup2" ] && echo -DUSE_SOUP2=ON) \
 	%{!?with_sysprof:-DUSE_SYSPROF_CAPTURE=OFF} \
 	%{?max_bundle_size:-DUNIFIED_BUILD_MAX_BUNDLE_SIZE=%{max_bundle_size}}
 
@@ -356,7 +291,7 @@ done
 %install
 rm -rf $RPM_BUILD_ROOT
 
-for kind in %{?with_gtk3:%{?with_libsoup2:soup2} %{?with_libsoup3:soup3}} %{?with_gtk4:gtk4} ; do
+for kind in %{?with_gtk3:gtk3} %{?with_gtk4:gtk4} ; do
 %{__make} -C build-${kind} install \
 	DESTDIR=$RPM_BUILD_ROOT
 done
@@ -364,8 +299,7 @@ done
 install -d $RPM_BUILD_ROOT%{_gidocdir}
 %{__mv} $RPM_BUILD_ROOT%{_docdir}/{javascriptcoregtk,webkit*gtk}-* $RPM_BUILD_ROOT%{_gidocdir}
 
-%{?with_gtk3:%{?with_libsoup2:%find_lang WebKitGTK-4.0}}
-%{?with_gtk3:%{?with_libsoup3:%find_lang WebKitGTK-4.1}}
+%{?with_gtk3:%find_lang WebKitGTK-4.1}
 %{?with_gtk4:%find_lang WebKitGTK-6.0}
 
 %clean
@@ -374,61 +308,11 @@ rm -rf $RPM_BUILD_ROOT
 %post	-p /sbin/ldconfig
 %postun	-p /sbin/ldconfig
 
-%post	-n gtk-webkit4.1 -p /sbin/ldconfig
-%postun	-n gtk-webkit4.1 -p /sbin/ldconfig
-
 %post	-n gtk-webkit6 -p /sbin/ldconfig
 %postun	-n gtk-webkit6 -p /sbin/ldconfig
 
-%if %{with gtk3} && %{with libsoup2}
-%files -f WebKitGTK-4.0.lang
-%defattr(644,root,root,755)
-%doc NEWS
-%attr(755,root,root) %{_bindir}/WebKitWebDriver-4.0
-%{_libdir}/libwebkit2gtk-4.0.so.*.*.*
-%ghost %{_libdir}/libwebkit2gtk-4.0.so.37
-%{_libdir}/libjavascriptcoregtk-4.0.so.*.*.*
-%ghost %{_libdir}/libjavascriptcoregtk-4.0.so.18
-%if %{with introspection}
-%{_libdir}/girepository-1.0/JavaScriptCore-4.0.typelib
-%{_libdir}/girepository-1.0/WebKit2-4.0.typelib
-%{_libdir}/girepository-1.0/WebKit2WebExtension-4.0.typelib
-%endif
-%if "%{_libexecdir}" != "%{_libdir}"
-%dir %{_libexecdir}/webkit2gtk-4.0
-%endif
-%attr(755,root,root) %{_libexecdir}/webkit2gtk-4.0/MiniBrowser
-%attr(755,root,root) %{_libexecdir}/webkit2gtk-4.0/WebKitGPUProcess
-%attr(755,root,root) %{_libexecdir}/webkit2gtk-4.0/WebKitNetworkProcess
-%attr(755,root,root) %{_libexecdir}/webkit2gtk-4.0/WebKitWebProcess
-%attr(755,root,root) %{_libexecdir}/webkit2gtk-4.0/jsc
-%dir %{_libdir}/webkit2gtk-4.0
-%dir %{_libdir}/webkit2gtk-4.0/injected-bundle
-%{_libdir}/webkit2gtk-4.0/injected-bundle/libwebkit2gtkinjectedbundle.so
-
-%files devel
-%defattr(644,root,root,755)
-%{_libdir}/libwebkit2gtk-4.0.so
-%{_libdir}/libjavascriptcoregtk-4.0.so
-%if %{with introspection}
-%{_datadir}/gir-1.0/JavaScriptCore-4.0.gir
-%{_datadir}/gir-1.0/WebKit2-4.0.gir
-%{_datadir}/gir-1.0/WebKit2WebExtension-4.0.gir
-%endif
-%{_includedir}/webkitgtk-4.0
-%{_pkgconfigdir}/javascriptcoregtk-4.0.pc
-%{_pkgconfigdir}/webkit2gtk-4.0.pc
-%{_pkgconfigdir}/webkit2gtk-web-extension-4.0.pc
-
-%files apidocs
-%defattr(644,root,root,755)
-%{_gidocdir}/javascriptcoregtk-4.0
-%{_gidocdir}/webkit2gtk-4.0
-%{_gidocdir}/webkit2gtk-web-extension-4.0
-%endif
-
-%if %{with gtk3} && %{with libsoup3}
-%files -n gtk-webkit4.1 -f WebKitGTK-4.1.lang
+%if %{with gtk3}
+%files -f WebKitGTK-4.1.lang
 %defattr(644,root,root,755)
 %doc NEWS
 %attr(755,root,root) %{_bindir}/WebKitWebDriver-4.1
@@ -453,7 +337,7 @@ rm -rf $RPM_BUILD_ROOT
 %dir %{_libdir}/webkit2gtk-4.1/injected-bundle
 %{_libdir}/webkit2gtk-4.1/injected-bundle/libwebkit2gtkinjectedbundle.so
 
-%files -n gtk-webkit4.1-devel
+%files devel
 %defattr(644,root,root,755)
 %{_libdir}/libwebkit2gtk-4.1.so
 %{_libdir}/libjavascriptcoregtk-4.1.so
@@ -467,7 +351,7 @@ rm -rf $RPM_BUILD_ROOT
 %{_pkgconfigdir}/webkit2gtk-4.1.pc
 %{_pkgconfigdir}/webkit2gtk-web-extension-4.1.pc
 
-%files -n gtk-webkit4.1-apidocs
+%files apidocs
 %defattr(644,root,root,755)
 %{_gidocdir}/javascriptcoregtk-4.1
 %{_gidocdir}/webkit2gtk-4.1
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/gtk-webkit4.1.git/commitdiff/4b902e78cfb03b07749deb25173df291cbab5c18



More information about the pld-cvs-commit mailing list