aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorThierry Vignaud <thierry.vignaud@gmail.com>2018-09-24 09:30:00 +0200
committerThierry Vignaud <thierry.vignaud@gmail.com>2018-09-24 09:34:23 +0200
commita6e3cceea4b4211b85be4d7e6b36980457255689 (patch)
tree218354751102fa6f1d9eb5229aa74f88e6352657
parent9d94e6a88ddf7c5c5327c65c6f4798b7fcad71c1 (diff)
downloadrpm-setup-a6e3cceea4b4211b85be4d7e6b36980457255689.tar
rpm-setup-a6e3cceea4b4211b85be4d7e6b36980457255689.tar.gz
rpm-setup-a6e3cceea4b4211b85be4d7e6b36980457255689.tar.bz2
rpm-setup-a6e3cceea4b4211b85be4d7e6b36980457255689.tar.xz
rpm-setup-a6e3cceea4b4211b85be4d7e6b36980457255689.zip
triming changelog is done at build time, also reduce it to 2 years
-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