define centos in rpmdefines section

resolves centpkg issue #112

Signed-off-by: Troy Dawson <tdawson@redhat.com>
This commit is contained in:
Troy Dawson 2024-10-17 14:33:58 -07:00
parent 441ee7a696
commit 7f839512a7

View file

@ -238,6 +238,9 @@ class Commands(Commands):
# This is so the rhel macro is set for spec files
"--define",
"rhel %s" % self._distval.split("_")[0],
# This is so the centos macro is set for spec files
"--define",
"centos %s" % self._distval.split("_")[0],
# This is so the fedora macro is unset for spec files
"--eval",
"%%undefine %s" % self._distunset,