public inbox for git-commits@fedoraproject.org
help / color / mirror / Atom feed
* [rpms/webkitgtk] epel10.3: Move macros to the top of the file and align spec between branches
@ 2026-10-28 9:29 Fabio Valentini
0 siblings, 0 replies; only message in thread
From: Fabio Valentini @ 2026-10-28 9:29 UTC (permalink / raw)
To: git-commits
A new commit has been pushed.
Repo : rpms/webkitgtk
Branch : epel10.3
Commit : aef91fb1f0c416cb74df7eacdb157c48b7edc8dd
Author : Fabio Valentini <decathorpe@gmail.com>
Date : 2026-10-27T23:38:05+01:00
Stats : +54/-46 in 1 file(s)
URL : https://src.fedoraproject.org/rpms/webkitgtk/c/aef91fb1f0c416cb74df7eacdb157c48b7edc8dd?branch=epel10.3
Log:
Move macros to the top of the file and align spec between branches
[skip changelog]
---
diff --git a/webkitgtk.spec b/webkitgtk.spec
index 087b810..92a650c 100644
--- a/webkitgtk.spec
+++ b/webkitgtk.spec
@@ -1,3 +1,8 @@
+# Build documentation by default (use `rpmbuild --without docs` to override it).
+# This is used by Coverity. Coverity injects custom compiler warnings, but
+# any warning during WebKit docs build is fatal!
+%bcond_without docs
+
## NOTE: Lots of files in various subdirectories have the same name (such as
## "LICENSE") so this short macro allows us to distinguish them by using their
## directory names (from the source tree) as prefixes for the files.
@@ -5,11 +10,6 @@
mkdir -p _license_files ; \
cp -p %1 _license_files/$(echo '%1' | sed -e 's!/!.!g')
-# Build documentation by default (use `rpmbuild --without docs` to override it).
-# This is used by Coverity. Coverity injects custom compiler warnings, but
-# any warning during WebKit docs build is fatal!
-%bcond_without docs
-
# Clang is preferred: https://skia.org/docs/user/build/#supported-and-preferred-compilers
%global toolchain clang
@@ -18,6 +18,36 @@
%global _lto_cflags %{nil}
%endif
+# Filter out provides for private libraries
+%global __provides_exclude_from ^(%{_libdir}/webkit2gtk-4\\.1/.*\\.so|%{_libdir}/webkitgtk-6\\.0/.*\\.so)$
+
+# Increase the DIE limit so our debuginfo packages can be size-optimized.
+# This previously decreased the size for x86_64 from ~5G to ~1.1G, but as of
+# 2022 it's more like 850 MB -> 675 MB. This requires lots of RAM on the
+# builders, so only do this for x86_64 and aarch64 to avoid overwhelming
+# builders with less RAM.
+# https://bugzilla.redhat.com/show_bug.cgi?id=1456261
+%global _dwz_max_die_limit_x86_64 250000000
+%global _dwz_max_die_limit_aarch64 250000000
+
+# Require 32 GB of RAM per vCPU for debuginfo processing. 16 GB is not enough.
+%global _find_debuginfo_opts %limit_build -m 32768
+
+# Reduce debuginfo verbosity 32-bit builds to reduce memory consumption even more.
+# https://bugs.webkit.org/show_bug.cgi?id=140176
+# https://lists.fedoraproject.org/archives/list/devel@lists.fedoraproject.org/thread/I6IVNA52TXTBRQLKW45CJ5K4RA4WNGMI/
+%ifarch %{ix86}
+%global optflags %(echo %{optflags} | sed 's/-g /-g1 /')
+%endif
+
+# JIT is broken on ARM systems with new ARMv8.5 BTI extension at the moment
+# Cf. https://bugzilla.redhat.com/show_bug.cgi?id=2130009
+# Cf. https://bugs.webkit.org/show_bug.cgi?id=245697
+# Disable BTI until this is fixed upstream.
+%ifarch aarch64
+%global optflags %(echo %{optflags} | sed 's/-mbranch-protection=standard /-mbranch-protection=pac-ret /')
+%endif
+
Name: webkitgtk
Version: 2.54.2
Release: %autorelease
@@ -32,11 +62,11 @@ Summary: GTK web content engine library
# Source/JavaScriptCore/disassembler/zydis/* is MIT
# Source/JavaScriptCore/runtime/JSDateMath.h is MPL 1.1/GPL 2.0/LGPL 2.1
# Source/JavaScriptCore/runtime/MathCommon.cpp is SunPro
-# Source/JavaScriptCore/ucd/CaseFolding.txt is Unicode-TOU
+# Source/JavaScriptCore/ucd/CaseFolding.txt is Unicode-TOU, which is unapproved, but the only copyrightable part is the comment at the top of the file, so seems safe to omit it
# Source/ThirdParty/ANGLE/include/CL/cl_d3d10.h is Apache-2.0
# Source/ThirdParty/ANGLE/include/GLES/gl.h is MIT-Khronos (not on list see https://github.com/spdx/license-list-XML/issues/2017)
# Source/ThirdParty/ANGLE/src/compiler/preprocessor/preprocessor_tab_autogen.cpp is GPL-3.0-or-later WITH Bison-exception-2.2
-# Source/ThirdParty/ANGLE/tools/flex-bison/third_party/m4sugar/m4sugar.m4 is GPL-3.0-only WITH Autoconf-exception-3.0
+# Source/ThirdParty/ANGLE/tools/flex-bison/third_party/m4sugar/m4sugar.m4 is GPL-3.0-or-later WITH Autoconf-exception-3.0
# Source/ThirdParty/pdfjs/web/images/annotation-paperclip.svg is MPL-2.0i
# Source/ThirdParty/pdfjs/web/standard_fonts/LICENSE_LIBERATION is OFL-1.1
# Source/ThirdParty/xdgmime/ is AFL-2.0 OR GPL-2.0-or-later
@@ -48,7 +78,7 @@ Summary: GTK web content engine library
# Source/WTF/icu/LICENSE is ICU
# Source/WTF/wtf/Markable.h is BSL-1.0
# The license tag and above comment is up to date as of WebKitGTK 2.42.2.
-License: LGPL-2.1-only AND BSD-2-Clause AND BSD-3-Clause AND ISC AND bzip2-1.0.6 AND NCSA AND MIT AND GPL-2.0-only AND MPL-1.1 AND SunPro AND Unicode-TOU AND Apache-2.0 AND GPL-3.0-or-later WITH Bison-exception-2.2 AND GPL-3.0-only WITH Autoconf-exception-3.0 AND MPL-2.0 AND OFL-1.1 AND (AFL-2.0 OR GPL-2.0-or-later) AND BSD-Source-Code AND BSD-2-Clause-Views AND LGPL-2.1-or-later AND (NCSA OR MIT) AND Apache-2.0 WITH LLVM-exception AND ICU AND BSL-1.0
+License: LGPL-2.1-only AND BSD-2-Clause AND BSD-3-Clause AND ISC AND bzip2-1.0.6 AND NCSA AND MIT AND GPL-2.0-only AND MPL-1.1 AND SunPro AND Apache-2.0 AND GPL-3.0-or-later WITH Bison-exception-2.2 AND GPL-3.0-or-later WITH Autoconf-exception-3.0 AND MPL-2.0 AND OFL-1.1 AND (AFL-2.0 OR GPL-2.0-or-later) AND BSD-Source-Code AND BSD-2-Clause-Views AND LGPL-2.1-or-later AND (NCSA OR MIT) AND Apache-2.0 WITH LLVM-exception AND ICU AND BSL-1.0
URL: https://www.webkitgtk.org/
Source0: https://webkitgtk.org/releases/webkitgtk-%{version}.tar.xz
Source1: https://webkitgtk.org/releases/webkitgtk-%{version}.tar.xz.asc
@@ -131,9 +161,6 @@ BuildRequires: pkgconfig(wayland-protocols)
BuildRequires: pkgconfig(wayland-server)
BuildRequires: pkgconfig(xt)
-# Filter out provides for private libraries
-%global __provides_exclude_from ^(%{_libdir}/webkit2gtk-4\\.0/.*\\.so|%{_libdir}/webkit2gtk-4\\.1/.*\\.so|%{_libdir}/webkitgtk-6\\.0/.*\\.so)$
-
%description
WebKitGTK is the port of the WebKit web rendering engine to the
GTK platform.
@@ -278,35 +305,9 @@ files for developing applications that use JavaScript engine from webkit2gtk-4.1
%autosetup -p1 -n webkitgtk-%{version}
%build
-# Increase the DIE limit so our debuginfo packages can be size-optimized.
-# This previously decreased the size for x86_64 from ~5G to ~1.1G, but as of
-# 2022 it's more like 850 MB -> 675 MB. This requires lots of RAM on the
-# builders, so only do this for x86_64 and aarch64 to avoid overwhelming
-# builders with less RAM.
-# https://bugzilla.redhat.com/show_bug.cgi?id=1456261
-%global _dwz_max_die_limit_x86_64 250000000
-%global _dwz_max_die_limit_aarch64 250000000
-
-# Require 32 GB of RAM per vCPU for debuginfo processing. 16 GB is not enough.
-%global _find_debuginfo_opts %limit_build -m 32768
-
-# Reduce debuginfo verbosity 32-bit builds to reduce memory consumption even more.
-# https://bugs.webkit.org/show_bug.cgi?id=140176
-# https://lists.fedoraproject.org/archives/list/devel@lists.fedoraproject.org/thread/I6IVNA52TXTBRQLKW45CJ5K4RA4WNGMI/
-%ifarch %{ix86}
-%global optflags %(echo %{optflags} | sed 's/-g /-g1 /')
-%endif
-
-# JIT is broken on ARM systems with new ARMv8.5 BTI extension at the moment
-# Cf. https://bugzilla.redhat.com/show_bug.cgi?id=2130009
-# Cf. https://bugs.webkit.org/show_bug.cgi?id=245697
-# Disable BTI until this is fixed upstream.
-%ifarch aarch64
-%global optflags %(echo %{optflags} | sed 's/-mbranch-protection=standard /-mbranch-protection=pac-ret /')
-%endif
-
-%define _vpath_builddir %{_vendor}-%{_target_os}-build/webkitgtk-6.0
-%cmake \
+mkdir webkitgtk-6.0
+pushd webkitgtk-6.0
+%cmake -S .. \
-GNinja \
-DPORT=GTK \
-DCMAKE_BUILD_TYPE=Release \
@@ -316,9 +317,11 @@ files for developing applications that use JavaScript engine from webkit2gtk-4.1
-DENABLE_DOCUMENTATION=OFF \
%endif
%{nil}
+popd
-%define _vpath_builddir %{_vendor}-%{_target_os}-build/webkit2gtk-4.1
-%cmake \
+mkdir webkit2gtk-4.1
+pushd webkit2gtk-4.1
+%cmake -S .. \
-GNinja \
-DPORT=GTK \
-DCMAKE_BUILD_TYPE=Release \
@@ -329,21 +332,26 @@ files for developing applications that use JavaScript engine from webkit2gtk-4.1
-DENABLE_DOCUMENTATION=OFF \
%endif
%{nil}
+popd
-%define _vpath_builddir %{_vendor}-%{_target_os}-build/webkitgtk-6.0
+pushd webkitgtk-6.0
export NINJA_STATUS="[1/2][%f/%t %es] "
%cmake_build %limit_build -m 3072
+popd
-%define _vpath_builddir %{_vendor}-%{_target_os}-build/webkit2gtk-4.1
+pushd webkit2gtk-4.1
export NINJA_STATUS="[2/2][%f/%t %es] "
%cmake_build %limit_build -m 3072
+popd
%install
-%define _vpath_builddir %{_vendor}-%{_target_os}-build/webkitgtk-6.0
+pushd webkitgtk-6.0
%cmake_install
+popd
-%define _vpath_builddir %{_vendor}-%{_target_os}-build/webkit2gtk-4.1
+pushd webkit2gtk-4.1
%cmake_install
+popd
%find_lang WebKitGTK-6.0
%find_lang WebKitGTK-4.1
^ permalink raw reply related [flat|nested] only message in thread
only message in thread, other threads:[~2026-10-28 9:29 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2026-10-28 9:29 [rpms/webkitgtk] epel10.3: Move macros to the top of the file and align spec between branches Fabio Valentini
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox