Blame SPECS/centos-release-hyperscale.spec

6cce74
Summary: CentOS Hyperscale SIG main repo configs
6cce74
Name: centos-release-hyperscale
ded893
Version: 4
7bfb39
Release: 5%{?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
7bfb39
Source5: CentOS-Stream-Hyperscale-Testing.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
7bfb39
%package testing
7bfb39
Summary:  CentOS Hyperscale SIG testing repo configs
7bfb39
Requires: %{name} = %{version}-%{release}
7bfb39
7bfb39
%description testing
7bfb39
Configs for the CentOS Hyperscale SIG testing repository.
7bfb39
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
7bfb39
install -p -m 644 %{SOURCE1} %{SOURCE2} %{SOURCE3} %{SOURCE4} %{SOURCE5} \
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
7bfb39
%files testing
7bfb39
%config(noreplace) %{_sysconfdir}/yum.repos.d/CentOS-Stream-Hyperscale-Testing.repo
7bfb39
6cce74
%changelog
7bfb39
* Wed May 24 2023 Daan De Meyer <daan.j.demeyer@gmail.com> - 4-5
7bfb39
- Add testing repository
7bfb39
Justin Vreeland 62ed72
* Mon Apr 18 2022 Justin Vreeland <jvreeland@centosproject.org> - 4-3
Justin Vreeland 62ed72
- Update release for aarch64
Justin Vreeland 62ed72
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