From b4e6cfc1e8d5f46b23f73834787d69c1cad49938 Mon Sep 17 00:00:00 2001 From: Orion Poplawski Date: Oct 25 2020 17:19:51 +0000 Subject: Add patch to support RHEL --- diff --git a/cobbler-rhel.patch b/cobbler-rhel.patch new file mode 100644 index 0000000..021f46c --- /dev/null +++ b/cobbler-rhel.patch @@ -0,0 +1,13 @@ +diff --git a/distro_build_configs.sh b/distro_build_configs.sh +index bad43e3c..52eb1136 100644 +--- a/distro_build_configs.sh ++++ b/distro_build_configs.sh +@@ -24,7 +24,7 @@ if [ "$DISTRO" = "" ] && [ -r /etc/os-release ];then + sle*|*suse*) + DISTRO="SUSE" + ;; +- fedora*|centos*) ++ fedora*|centos*|rhel*) + DISTRO="FEDORA" + ;; + ubuntu*|debian*) diff --git a/cobbler.spec b/cobbler.spec index 2e11bfe..e32da88 100644 --- a/cobbler.spec +++ b/cobbler.spec @@ -14,6 +14,9 @@ Source0: https://github.com/cobbler/cobbler/archive/v%{version}/%{name}-% # Revert upstream's VirtualHost addition # https://github.com/cobbler/cobbler/issues/2286 Patch0: cobbler-httpd.patch +# Support RHEL +# https://github.com/cobbler/cobbler/pull/2438 +Patch1: cobbler-rhel.patch BuildArch: noarch BuildRequires: python%{python3_pkgversion}-devel