Blame SPECS/centos-release-hyperscale.spec

6cce74
Summary: CentOS Hyperscale SIG main repo configs
6cce74
Name: centos-release-hyperscale
ded893
Version: 4
Michel Alexandre Salim 03b6fd
Release: 3%{?dist}
Michel Alexandre Salim 0c0426
License: GPLv2
6cce74
URL: http://wiki.centos.org/SpecialInterestGroup/Hyperscale
097496
Source0: RPM-GPG-KEY-CentOS-SIG-HyperScale
097496
Source1: CentOS-Stream-Hyperscale.repo
097496
Source2: CentOS-Stream-Hyperscale-Experimental.repo
ded893
Source3: CentOS-Stream-Hyperscale-Hotfixes.repo
ded893
Source4: CentOS-Stream-Hyperscale-Spin.repo
6cce74
6cce74
BuildArch: noarch
6cce74
1d676d
Requires: centos-stream-release
6cce74
6cce74
%description
097496
Configs for the CentOS Hyperscale SIG main package repository.
097496
097496
%package experimental
097496
Summary: CentOS Hyperscale SIG experimental repo configs
097496
097496
%description experimental
097496
Configs for the CentOS Hyperscale SIG experimental package repository.
6cce74
ded893
%package hotfixes
ded893
Summary:  CentOS Hyperscale SIG module hotfixes repo configs
ded893
Requires: epel-release = %{rhel}
ded893
Requires: centos-release-hyperscale = %{version}-%{release}
ded893
ded893
%description hotfixes
ded893
Configs for the CentOS Hyperscale SIG module hotfixes repository.
ded893
ded893
%package spin
ded893
Summary:  CentOS Hyperscale SIG spin repo configs
ded893
Requires: centos-release-hyperscale = %{version}-%{release}
ded893
ded893
%description spin
ded893
Configs for the CentOS Hyperscale SIG spin repository.
ded893
6cce74
%prep
6cce74
6cce74
%install
ded893
install -d %{buildroot}%{_sysconfdir}/pki/rpm-gpg
ded893
install -p -m 644 %{SOURCE0} %{buildroot}%{_sysconfdir}/pki/rpm-gpg
ded893
install -d %{buildroot}%{_sysconfdir}/yum.repos.d
ded893
install -p -m 644 %{SOURCE1} %{SOURCE2} %{SOURCE3} %{SOURCE4} \
ded893
  %{buildroot}%{_sysconfdir}/yum.repos.d
6cce74
Michel Alexandre Salim 03b6fd
%posttrans hotfixes
Michel Alexandre Salim 0c0426
POWERTOOLS_REPO=/etc/yum.repos.d/CentOS-Stream-PowerTools.repo
Michel Alexandre Salim 0c0426
if [ -f "${POWERTOOLS_REPO}" ] \
Michel Alexandre Salim 0c0426
  && [ $(grep -c '^enabled=.$' "${POWERTOOLS_REPO}") -eq 1 ] \
Michel Alexandre Salim 0c0426
  && [ $(grep -c '^enabled=0$' "${POWERTOOLS_REPO}") -eq 1 ];
Michel Alexandre Salim 0c0426
then
Michel Alexandre Salim 0c0426
  sed -i 's/^enabled=0$/enabled=1/g' "${POWERTOOLS_REPO}"
Michel Alexandre Salim 0c0426
fi
Michel Alexandre Salim 0c0426
6cce74
%files
6cce74
%defattr(-,root,root)
097496
%{_sysconfdir}/pki/rpm-gpg/RPM-GPG-KEY-CentOS-SIG-HyperScale
097496
%config(noreplace) %{_sysconfdir}/yum.repos.d/CentOS-Stream-Hyperscale.repo
097496
097496
%files experimental
097496
%defattr(-,root,root)
097496
%{_sysconfdir}/pki/rpm-gpg/RPM-GPG-KEY-CentOS-SIG-HyperScale
097496
%config(noreplace) %{_sysconfdir}/yum.repos.d/CentOS-Stream-Hyperscale-Experimental.repo
6cce74
ded893
%files hotfixes
ded893
%config(noreplace) %{_sysconfdir}/yum.repos.d/CentOS-Stream-Hyperscale-Hotfixes.repo
ded893
ded893
%files spin
ded893
%config(noreplace) %{_sysconfdir}/yum.repos.d/CentOS-Stream-Hyperscale-Spin.repo
ded893
6cce74
%changelog
Michel Alexandre Salim 03b6fd
* Wed May 19 2021 Michel Alexandre Salim <salimma@centosproject.org> - 4-3
Michel Alexandre Salim 03b6fd
- Switch to %%posttrans for enabling powertools;
Michel Alexandre Salim 03b6fd
  this way, we don't enable a repo mid-transaction
Michel Alexandre Salim 03b6fd
- Limit it to the hotfixes subpackage as that requires EPEL
Michel Alexandre Salim 03b6fd
Michel Alexandre Salim 0c0426
* Wed May 19 2021 Michel Alexandre Salim <salimma@centosproject.org> - 4-2
Michel Alexandre Salim 0c0426
- Trigger enabling powertools repo on package installations and upgrades
Michel Alexandre Salim 0c0426
- Fix license declaration; match centos-stream-repos
Michel Alexandre Salim 0c0426
ded893
* Mon May 17 2021 Davide Cavalca <dcavalca@centosproject.org> - 4-1
ded893
- Add subpackages for hotfixes and spin repo configs
ded893
- Require epel-release for hotfixes
ded893
- Preserve timestamps on installs
ded893
ab2ce9
* Fri Apr 09 2021 Davide Cavalca <dcavalca@fb.com> - 3-2
ab2ce9
- Drop obsoletes for centos-hyperscale-keys as it was never actually built
ab2ce9
097496
* Fri Apr 09 2021 Davide Cavalca <dcavalca@fb.com> - 3-1
097496
- Bring the keys back in and obsolete centos-hyperscale-keys
097496
- Bring centos-release-hyperscale-experimental in as a subpackage
097496
320937
* Thu Apr 08 2021 Davide Cavalca <dcavalca@fb.com> - 2-1
320937
- Factor out keys in centos-hyperscale-keys and require it
320937
1d676d
* Wed Feb 10 2021 Davide Cavalca <dcavalca@fb.com> - 1-2
1d676d
- Require centos-stream-release instead of centos-release
1d676d
6cce74
* Wed Feb 10 2021 Davide Cavalca <dcavalca@fb.com> - 1-1
6cce74
- Initial release