From be7bea6b083b144825dfb43aaa40a6fe829e7afc Mon Sep 17 00:00:00 2001 From: Igor Gnatenko Date: Thu, 19 Mar 2015 16:57:43 +0300 Subject: [PATCH] modules/rpm: add changelog Signed-off-by: Igor Gnatenko --- modules/rpm.py | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/modules/rpm.py b/modules/rpm.py index adbe79695..1fa66608c 100644 --- a/modules/rpm.py +++ b/modules/rpm.py @@ -16,6 +16,7 @@ functionality such as generating RPM spec file.''' import build +import datetime import mlog class RPMModule: @@ -95,6 +96,10 @@ class RPMModule: fn.write('\n') fn.write('%postun -p /sbin/ldconfig\n') fn.write('\n') + fn.write('%changelog\n') + fn.write('* %s meson - \n' % datetime.date.today().strftime('%a %b %d %Y')) + fn.write('- \n') + fn.write('\n') fn.close() def initialize():