On Wed, Aug 25, 2021 at 07:50:44PM -0400, Neal Gompa wrote:
...snip...
As for Fedora changelog trimming, we generally *don't* in the spec
file itself, only in the built packages. So the SRPMs have the
complete history (or are supposed to, at least).
Well, not since 2018 at least:
(from redhat-rpm-config)
commit 8c5d5de24a177928e5177362532cc22aa604858d (HEAD)
Author: Zbigniew Jędrzejewski-Szmek <zbyszek(a)in.waw.pl>
Date: Sun Mar 11 15:15:30 2018 +0100
Trim changelog entries older than two years
Inspired by
http://gitweb.mageia.org/software/rpm/rpm-setup/tree/macros.in#n22
but changed to two years (3+ releases of Fedora).
diff --git a/macros b/macros
index 87b6815..62f320a 100644
--- a/macros
+++ b/macros
@@ -214,6 +214,9 @@
%__global_compiler_flags -O2 -g -pipe -Wall -Werror=format-security
-Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -fexceptions -fstack-protector-strong
-grecord-gcc-switches %{_hardened_cflags} %{_annotated_cflags}
+# Automatically trim changelog entries after 2 years
+%_changelog_trimtime %{lua:print(os.time() - 2 * 365 * 86400)}
+
#==============================================================================
# ---- Generic auto req/prov filtering macros
#