From 8f3d9141676c6996f59d0f9d8243c35b630e1322 Mon Sep 17 00:00:00 2001 From: Anssi Hannula Date: Thu, 8 Dec 2011 05:57:23 +0000 Subject: fix changelog truncation to 3 years to work with rpm.org --- NEWS | 1 + macros.in | 3 ++- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/NEWS b/NEWS index a930931..f08a7d0 100644 --- a/NEWS +++ b/NEWS @@ -1,3 +1,4 @@ +- fix changelog truncation to 3 years to work with rpm.org Version 1.145 - 08 Nov 2011, by Jerome Quelin - Add Java macros from JPackage ( %create_jar_links(), %remove_java_binaries, and gcj functions ) diff --git a/macros.in b/macros.in index efbfb37..9175dd4 100644 --- a/macros.in +++ b/macros.in @@ -19,7 +19,8 @@ %_host %{_host_cpu}-%{_real_vendor}-%{_host_os}%{?_gnu} -%_changelog_truncate 3 years ago +# 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.lzdio -- cgit v1.2.1