From eb93f258dcdec11b3e3fb6b9e813fbe359a5466c Mon Sep 17 00:00:00 2001 From: Pete Walter Date: Thu, 20 May 2021 10:17:02 +0100 Subject: [PATCH] Use baserelease rather than main_release macro baserelease is what we have standardized across Fedora and what rpmdev-bumpspec knows how to handle. --- samba.spec | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/samba.spec b/samba.spec index b9d6811..99aeffe 100644 --- a/samba.spec +++ b/samba.spec @@ -108,7 +108,7 @@ %define samba_requires_eq() %(LC_ALL="C" echo '%*' | xargs -r rpm -q --qf 'Requires: %%{name} = %%{epoch}:%%{version}\\n' | sed -e 's/ (none):/ /' -e 's/ 0:/ /' | grep -v "is not") -%global main_release 2 +%global baserelease 2 %global samba_version 4.14.4 %global talloc_version 2.3.2 @@ -118,9 +118,9 @@ # This should be rc1 or nil %global pre_release %nil -%global samba_release %{main_release} +%global samba_release %{baserelease} %if "x%{?pre_release}" != "x" -%global samba_release 0.%{main_release}.%{pre_release} +%global samba_release 0.%{baserelease}.%{pre_release} %endif # This is a network daemon, do a hardened build