From 16398f4fa650d3d688ce714a0e8735dd01f430ad Mon Sep 17 00:00:00 2001 From: Pavel Cahyna Date: Wed, 30 Jun 2021 20:13:50 +0200 Subject: [PATCH] Add change lost in Fedora to reduce diff to RHEL8 Related: rhbz1973448 --- rear.spec | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/rear.spec b/rear.spec index 8d75934..d20feb4 100644 --- a/rear.spec +++ b/rear.spec @@ -79,6 +79,10 @@ Professional services and support are available. %prep %autosetup -p1 +### Add a specific os.conf so we do not depend on LSB dependencies +%{?fedora:echo -e "OS_VENDOR=Fedora\nOS_VERSION=%{?fedora}" >etc/rear/os.conf} +%{?rhel:echo -e "OS_VENDOR=RedHatEnterpriseServer\nOS_VERSION=%{?rhel}" >etc/rear/os.conf} + # Change /lib to /usr/lib for COPY_AS_IS sed -E -e "s:([\"' ])/lib:\1/usr/lib:g" \ -i usr/share/rear/prep/GNU/Linux/*include*.sh