diff --git a/SOURCES/redhat-rpm-config-9.1.0-centos.dist.patch b/SOURCES/redhat-rpm-config-9.1.0-centos.dist.patch new file mode 100644 index 0000000..bdb0ee2 --- /dev/null +++ b/SOURCES/redhat-rpm-config-9.1.0-centos.dist.patch @@ -0,0 +1,12 @@ +diff -uNrp redhat-rpm-config-9.1.0.orig/dist.sh redhat-rpm-config-9.1.0/dist.sh +--- redhat-rpm-config-9.1.0.orig/dist.sh 2010-02-02 03:24:04.000000000 -0600 ++++ redhat-rpm-config-9.1.0/dist.sh 2014-06-19 09:29:04.064790458 -0500 +@@ -25,7 +25,7 @@ function check_rhl { + } + + function check_rhel { +- egrep -q "(Enterprise|Advanced)" $RELEASEFILE && echo $DISTNUM ++ egrep -q "(Enterprise|Advanced|CentOS)" $RELEASEFILE && echo $DISTNUM + } + + function check_fedora { diff --git a/SPECS/redhat-rpm-config.spec b/SPECS/redhat-rpm-config.spec index 730b2e0..d474892 100644 --- a/SPECS/redhat-rpm-config.spec +++ b/SPECS/redhat-rpm-config.spec @@ -1,4 +1,4 @@ -Summary: Red Hat specific rpm configuration files +Summary: CentOS specific rpm configuration files Name: redhat-rpm-config Version: 9.1.0 Release: 88%{?dist} @@ -116,6 +116,7 @@ Patch47: redhat-rpm-config-9.1.0-compressed-kmods-support.patch # ppc64 little endian support Patch99: redhat-rpm-config-9.1.0-ppc64le.patch +Patch100: redhat-rpm-config-9.1.0-centos.dist.patch BuildArch: noarch @@ -128,7 +129,7 @@ Requires: zip Provides: system-rpm-config = %{version}-%{release} %description -Red Hat specific rpm configuration files. +CentOS specific rpm configuration files. %prep %setup -q @@ -182,6 +183,7 @@ Red Hat specific rpm configuration files. %patch47 -p1 %patch99 -p2 +%patch100 -p1 %build @@ -210,6 +212,9 @@ rm -rf ${RPM_BUILD_ROOT} %{_sysconfdir}/rpm/* %changelog +* Tue Aug 06 2019 CentOS Sources - 9.1.0-88.el7.centos +- update check_rhl function in dist.sh + * Wed Feb 20 2019 Tomas Orsava - 9.1.0-88 - Add dependency on python-srpm-macros (#1679229)