mirror of
https://git.centos.org/centos/centpkg.git
synced 2025-02-23 08:12:55 +00:00
define centos in rpmdefines section
resolves centpkg issue #112 Signed-off-by: Troy Dawson <tdawson@redhat.com>
This commit is contained in:
parent
441ee7a696
commit
7f839512a7
1 changed files with 3 additions and 0 deletions
|
@ -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,
|
||||
|
|
Loading…
Add table
Reference in a new issue