aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--NEWS2
-rw-r--r--build.macros.in3
-rw-r--r--macros.in2
3 files changed, 5 insertions, 2 deletions
diff --git a/NEWS b/NEWS
index 369451b..92d0671 100644
--- a/NEWS
+++ b/NEWS
@@ -1,3 +1,5 @@
+- reduce triming changelog from 3 to 2 years
+
Version 2.34 - 8 September 2018, by Thierry Vignaud
- emits requires(posttrans) on info-install
diff --git a/build.macros.in b/build.macros.in
index f34d581..bf4552e 100644
--- a/build.macros.in
+++ b/build.macros.in
@@ -469,3 +469,6 @@ popd
%check %%check \
[ %{_with check} -eq 1 ] || exit 0 \
%{nil}
+
+# Automatically trim changelog entries after 2 years
+%_changelog_trimtime %{lua:print(os.time() - 2 * 365 * 86400)}
diff --git a/macros.in b/macros.in
index 2d73956..2adc4ec 100644
--- a/macros.in
+++ b/macros.in
@@ -18,8 +18,6 @@
%_host %{_host_cpu}-%{_real_vendor}-%{_host_os}%{?_gnu}
-# automatic truncation of changelogs to 3 years
-%_changelog_trimtime %{lua:print(os.time() - 3 * 365 * 86400)}
# use LZMA to compress binary packages:
%_binary_payload w5.xzdio