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 <[email protected]>
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
 #

Attachment: signature.asc
Description: PGP signature

_______________________________________________
legal mailing list -- [email protected]
To unsubscribe send an email to [email protected]
Fedora Code of Conduct: 
https://docs.fedoraproject.org/en-US/project/code-of-conduct/
List Guidelines: https://fedoraproject.org/wiki/Mailing_list_guidelines
List Archives: 
https://lists.fedoraproject.org/archives/list/[email protected]
Do not reply to spam on the list, report it: 
https://pagure.io/fedora-infrastructure

Reply via email to