| |
@@ -217,6 +217,7 @@
|
| |
self._distvar = self.distgitdir.centosversion
|
| |
self._distval = self._distvar.replace(".", "_")
|
| |
|
| |
+ self._distunset = 'fedora'
|
| |
self._disttag = "el%s" % self._distval
|
| |
self._rpmdefines = [
|
| |
"--define",
|
| |
@@ -237,6 +238,12 @@
|
| |
# 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,
|
| |
]
|
| |
self.log.debug("RPMDefines: %s" % self._rpmdefines)
|
| |
|
| |
resolves centpkg issue #111 and #112
Signed-off-by: Troy Dawson tdawson@redhat.com