From 7f839512a73f687c14f989c2504d4583f42c41f0 Mon Sep 17 00:00:00 2001 From: Troy Dawson Date: Oct 17 2024 21:33:58 +0000 Subject: define centos in rpmdefines section resolves centpkg issue #112 Signed-off-by: Troy Dawson --- diff --git a/src/centpkg/__init__.py b/src/centpkg/__init__.py index e52a0c9..661a62b 100644 --- a/src/centpkg/__init__.py +++ b/src/centpkg/__init__.py @@ -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,