[cpp-linbuild] 01/02: Discard redundant centos_version macro

John W. O'Brien john at saltant.com
Sat Dec 28 17:35:47 UTC 2024


This is an automated email from the git hooks/post-receive script.

obrienjw pushed a commit to branch main
in repository cpp-linbuild.

View the commit online:
http://git.shibboleth.net/view/?p=cpp-linbuild.git;a=commit;h=b3d776eaf7513af9f3f435ec44b9e67a10498b56

commit b3d776eaf7513af9f3f435ec44b9e67a10498b56
Author: John W. O'Brien <john at saltant.com>
AuthorDate: Fri Dec 27 20:06:44 2024 +0000

    Discard redundant centos_version macro
    
    CentOS sets the %rhel macro to its major version.
---
 common/SPECS/log4shib.spec       | 2 +-
 common/SPECS/xerces-c.spec       | 2 +-
 common/SPECS/xml-security-c.spec | 2 +-
 3 files changed, 3 insertions(+), 3 deletions(-)

diff --git a/common/SPECS/log4shib.spec b/common/SPECS/log4shib.spec
index 492d495..e28baeb 100644
--- a/common/SPECS/log4shib.spec
+++ b/common/SPECS/log4shib.spec
@@ -20,7 +20,7 @@ BuildRequires: pkgconfig
 BuildRequires: redhat-rpm-config
 %endif
 
-%if 0%{?rhel} >= 8 || 0%{?centos_version} >= 800
+%if 0%{?rhel} >= 8
 BuildRequires: gdb
 %endif
 
diff --git a/common/SPECS/xerces-c.spec b/common/SPECS/xerces-c.spec
index 48bff7b..243d7a7 100644
--- a/common/SPECS/xerces-c.spec
+++ b/common/SPECS/xerces-c.spec
@@ -20,7 +20,7 @@ BuildRequires: pkgconfig
 BuildRequires: redhat-rpm-config
 %endif
 
-%if 0%{?rhel} >= 8 || 0%{?centos_version} >= 800
+%if 0%{?rhel} >= 8
 BuildRequires: gdb
 %endif
 
diff --git a/common/SPECS/xml-security-c.spec b/common/SPECS/xml-security-c.spec
index 1ff262c..c7f1f01 100644
--- a/common/SPECS/xml-security-c.spec
+++ b/common/SPECS/xml-security-c.spec
@@ -20,7 +20,7 @@ BuildRequires: openssl-devel gcc-c++ pkgconfig
 BuildRequires: redhat-rpm-config
 %endif
 
-%if 0%{?rhel} >= 8 || 0%{?centos_version} >= 800
+%if 0%{?rhel} >= 8
 BuildRequires: gdb
 %endif
 

-- 
To stop receiving notification emails like this one, please contact
the administrator of this repository.


More information about the commits mailing list