aboutgitcodebugslistschat
path: root/contrib/fedora/passt.spec
diff options
context:
space:
mode:
authorStefano Brivio <sbrivio@redhat.com>2022-08-18 19:48:09 +0200
committerStefano Brivio <sbrivio@redhat.com>2022-08-20 19:07:12 +0200
commit41b5ff0a1428ce62cb2136d0c19fe4183a94a15f (patch)
treed234e61d4687edaa2c174669065a60d1f9ead843 /contrib/fedora/passt.spec
parentd0c3f8fa9b5d08439017fe649ac05603a7124a24 (diff)
downloadpasst-41b5ff0a1428ce62cb2136d0c19fe4183a94a15f.tar
passt-41b5ff0a1428ce62cb2136d0c19fe4183a94a15f.tar.gz
passt-41b5ff0a1428ce62cb2136d0c19fe4183a94a15f.tar.bz2
passt-41b5ff0a1428ce62cb2136d0c19fe4183a94a15f.tar.lz
passt-41b5ff0a1428ce62cb2136d0c19fe4183a94a15f.tar.xz
passt-41b5ff0a1428ce62cb2136d0c19fe4183a94a15f.tar.zst
passt-41b5ff0a1428ce62cb2136d0c19fe4183a94a15f.zip
fedora: Introduce own rpkg macro for changelog
git_dir_changelog is useful in theory, but it requires pairs of annotated tags, which should be generated by rpkg itself to make any sense, implying a relatively heavyweight interaction whenever I want to push a new package version. Also, the default content of the changelog entries include the full list of changes, but the Fedora Packaging Guidelines specifically mention that: [t]hey must never simply contain an entire copy of the source CHANGELOG entries. We don't have a CHANGELOG file, but the full git history is conceptually equivalent for this purpose, I guess. Introduce our own passt_git_changelog() rpkg macro, building changelog entries, using tags in the form DATE-SHA, where DATE is an ISO 8601 date representation, and SHA is a short (7-digits) form of the head commit at a given moment (git push). These changelog entries mention, specifically, changes to the packaging information itself (entries under contrib/fedora), and simply report a link to cgit for the ranges between tags. Reported-by: Benson Muite <benson_muite@emailplus.org> Signed-off-by: Stefano Brivio <sbrivio@redhat.com>
Diffstat (limited to 'contrib/fedora/passt.spec')
-rw-r--r--contrib/fedora/passt.spec2
1 files changed, 1 insertions, 1 deletions
diff --git a/contrib/fedora/passt.spec b/contrib/fedora/passt.spec
index 8ae104a..41e4e3a 100644
--- a/contrib/fedora/passt.spec
+++ b/contrib/fedora/passt.spec
@@ -93,4 +93,4 @@ semodule -r pasta 2>/dev/null || :
%{_datadir}/selinux/packages/%{name}/pasta.pp
%changelog
-{{{ git_dir_changelog }}}
+{{{ passt_git_changelog }}}