From 03ae6cb263475f4daec1f355967a87e48d0c7d92 Mon Sep 17 00:00:00 2001 From: Sandro Bonazzola Date: May 13 2022 08:52:54 +0000 Subject: Don't enable powertools on RHEL CentOS and similar distributions are defining %centos macro. Enable powertools only there. Signed-off-by: Sandro Bonazzola --- diff --git a/SPECS/centos-release-ovirt45.spec b/SPECS/centos-release-ovirt45.spec index b0123df..89af60c 100644 --- a/SPECS/centos-release-ovirt45.spec +++ b/SPECS/centos-release-ovirt45.spec @@ -1,7 +1,7 @@ Summary: oVirt 4.5 packages from the CentOS Virtualization SIG repository Name: centos-release-ovirt45 -Version: 8.6 -Release: 5%{?dist} +Version: 8.7 +Release: 1%{?dist} License: GPLv2 URL: http://wiki.centos.org/SpecialInterestGroup/Virtualization Source0: CentOS-oVirt-4.5.repo @@ -38,9 +38,11 @@ install -m 644 %{SOURCE2} %{buildroot}%{_sysconfdir}/pki/rpm-gpg/ %post -# Ensuring powertools repository is enabled +if [ $(rpm --eval "%%centos") == 8 ] +then +# Ensuring powertools repository is enabled on centos-like distributions dnf config-manager --set-enabled powertools - +fi %files %config %{_sysconfdir}/yum.repos.d/CentOS-oVirt-4.5.repo @@ -48,6 +50,9 @@ dnf config-manager --set-enabled powertools %license COPYING %changelog +* Fri May 13 2022 Sandro Bonazzola - 8.7-1 +- skip repo enablement on RHEL as it requires subscription manager. + * Tue May 03 2022 Sandro Bonazzola - 8.6-5 - Use fastest mirror for resources.ovirt.org.