From b95ec8412d93a930ddec01f8e06194c14a2e9798 Mon Sep 17 00:00:00 2001 From: Florian Weimer Date: Fri, 27 May 2022 16:49:46 +0200 Subject: [PATCH] Use %baserelease to store the version number After this change, rpmdev-bumpspec does the right thing. --- redhat-rpm-config.spec | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) diff --git a/redhat-rpm-config.spec b/redhat-rpm-config.spec index 639985c..ecc4296 100644 --- a/redhat-rpm-config.spec +++ b/redhat-rpm-config.spec @@ -1,12 +1,14 @@ # TO WHOM IT MAY CONCERN # # 1) Don't add patches, dist-git is the upstream repository for this package. -# 2) When making changes, update version by +1, leave release alone. -# +# 2) When making changes, increment the version (in baserelease) by 1. +# rpmdev-bumpspec and other tools update the macro below, which is used +# in Version: to get the desired effect. +%global baserelease 222 Summary: Red Hat specific rpm configuration files Name: redhat-rpm-config -Version: 221 +Version: %{baserelease} Release: 1%{?dist} # No version specified. License: GPL+ @@ -217,6 +219,9 @@ install -p -m 644 -t %{buildroot}%{_rpmluadir}/fedora/srpm forge.lua %doc buildflags.md %changelog +* Fri May 27 2022 Florian Weimer - 222-1 +- Use %%baserelease to store the version number + * Fri May 27 2022 Frederic Berat - 221-1 - update config.{guess,sub} to gnuconfig git HEAD