diff --git a/SPECS/centos-release-hyperscale.spec b/SPECS/centos-release-hyperscale.spec index 887f3b1..e47fb7f 100644 --- a/SPECS/centos-release-hyperscale.spec +++ b/SPECS/centos-release-hyperscale.spec @@ -1,8 +1,8 @@ Summary: CentOS Hyperscale SIG main repo configs Name: centos-release-hyperscale Version: 4 -Release: 1%{?dist} -License: GPL +Release: 2%{?dist} +License: GPLv2 URL: http://wiki.centos.org/SpecialInterestGroup/Hyperscale Source0: RPM-GPG-KEY-CentOS-SIG-HyperScale Source1: CentOS-Stream-Hyperscale.repo @@ -47,6 +47,15 @@ install -d %{buildroot}%{_sysconfdir}/yum.repos.d install -p -m 644 %{SOURCE1} %{SOURCE2} %{SOURCE3} %{SOURCE4} \ %{buildroot}%{_sysconfdir}/yum.repos.d +%post +POWERTOOLS_REPO=/etc/yum.repos.d/CentOS-Stream-PowerTools.repo +if [ -f "${POWERTOOLS_REPO}" ] \ + && [ $(grep -c '^enabled=.$' "${POWERTOOLS_REPO}") -eq 1 ] \ + && [ $(grep -c '^enabled=0$' "${POWERTOOLS_REPO}") -eq 1 ]; +then + sed -i 's/^enabled=0$/enabled=1/g' "${POWERTOOLS_REPO}" +fi + %files %defattr(-,root,root) %{_sysconfdir}/pki/rpm-gpg/RPM-GPG-KEY-CentOS-SIG-HyperScale @@ -64,6 +73,10 @@ install -p -m 644 %{SOURCE1} %{SOURCE2} %{SOURCE3} %{SOURCE4} \ %config(noreplace) %{_sysconfdir}/yum.repos.d/CentOS-Stream-Hyperscale-Spin.repo %changelog +* Wed May 19 2021 Michel Alexandre Salim - 4-2 +- Trigger enabling powertools repo on package installations and upgrades +- Fix license declaration; match centos-stream-repos + * Mon May 17 2021 Davide Cavalca - 4-1 - Add subpackages for hotfixes and spin repo configs - Require epel-release for hotfixes