From 84078356c2f87f1ea3cf94563e56cc79d0c33b8e Mon Sep 17 00:00:00 2001 From: Troy Dawson Date: Oct 10 2022 22:05:56 +0000 Subject: Merge branch 'fix-sig' of ssh://git.centos.org/forks/tdawson/centos/centpkg into fix-sig --- diff --git a/src/centpkg/__init__.py b/src/centpkg/__init__.py index df96f82..044094b 100644 --- a/src/centpkg/__init__.py +++ b/src/centpkg/__init__.py @@ -210,7 +210,9 @@ class Commands(Commands): '--define', '_rpmdir %s' % self.layout.rpmdir, '--define', 'dist .%s' % self._disttag, # int and float this to remove the decimal - '--define', '%s 1' % self._disttag] + '--define', '%s 1' % self._disttag, + # This is so the rhel macro is set for spec files + '--define', 'rhel %s' % self._distval.split('_')[0]] self.log.debug("RPMDefines: %s" % self._rpmdefines) def construct_build_url(self, *args, **kwargs):