aboutsummaryrefslogtreecommitdiffstats
path: root/build.macros.in
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 /build.macros.in
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
Diffstat (limited to 'build.macros.in')
-rw-r--r--build.macros.in3
1 files changed, 3 insertions, 0 deletions
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)}