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 b5d7ec3..1f887ab 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: 76%{?dist} @@ -99,6 +99,7 @@ Patch38: redhat-rpm-config-9.1.0-Add-_pkgdocdir.patch Patch39: redhat-rpm-config-9.1.0-find-requires-fix-detection.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 Requires: coreutils @@ -109,7 +110,7 @@ Requires: zip Provides: system-rpm-config = %{version}-%{release} %description -Red Hat specific rpm configuration files. +CentOS specific rpm configuration files. %prep %setup -q @@ -155,6 +156,7 @@ Red Hat specific rpm configuration files. %patch39 -p1 %patch99 -p2 +%patch100 -p1 %build @@ -183,6 +185,9 @@ rm -rf ${RPM_BUILD_ROOT} %{_sysconfdir}/rpm/* %changelog +* Mon Jul 31 2017 CentOS Sources - 9.1.0-76.el7.centos +- update check_rhl function in dist.sh + * Tue Feb 14 2017 Yaakov Selkowitz - 9.1.0-76 - Add aarch64/ppc64le/s390x to nodejs_arches (#1417800)