From e2cae8f1c3651b1237a3042b4ba6211155aa58f1 Mon Sep 17 00:00:00 2001 From: Stefano Brivio Date: Tue, 6 Sep 2022 23:02:01 +0200 Subject: fedora: Escape % characters in spec file's changelog ...rpmbuild otherwise expands valid macro names in changelog entries. Signed-off-by: Stefano Brivio --- contrib/fedora/rpkg.macros | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'contrib/fedora') diff --git a/contrib/fedora/rpkg.macros b/contrib/fedora/rpkg.macros index df9dfc5..06359ab 100644 --- a/contrib/fedora/rpkg.macros +++ b/contrib/fedora/rpkg.macros @@ -36,7 +36,7 @@ function passt_git_changelog_entry { IFS=' ' for l in $(git log ${__from}..${__to} --pretty=format:"- %s" -- contrib/fedora); do - printf "%s%s\n" '-' "${l#*:}" + printf "%s%s\n" '-' "${l#*:}" | sed s/%/%%/g done unset IFS -- cgit v1.2.3