From ded893c3e92485c7a5c94e4bac44b045fe44e918 Mon Sep 17 00:00:00 2001 From: Davide Cavalca Date: May 17 2021 21:53:46 +0000 Subject: Add subpackages for hotfixes and spin repo configs --- diff --git a/SOURCES/CentOS-Stream-Hyperscale-Hotfixes.repo b/SOURCES/CentOS-Stream-Hyperscale-Hotfixes.repo new file mode 100644 index 0000000..79c384d --- /dev/null +++ b/SOURCES/CentOS-Stream-Hyperscale-Hotfixes.repo @@ -0,0 +1,8 @@ +[centos-hyperscale-hotfixes] +name=CentOS Stream $releasever - Hyperscale Hotfixes +mirrorlist=http://mirrorlist.centos.org/?release=$stream&arch=$basearch&repo=hyperscale-packages-hotfixes +#baseurl=http://mirror.centos.org/$contentdir/$stream/hyperscale/$basearch/packages-hotfixes/ +gpgcheck=1 +enabled=1 +module_hotfixes=1 +gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-CentOS-SIG-HyperScale diff --git a/SOURCES/CentOS-Stream-Hyperscale-Spin.repo b/SOURCES/CentOS-Stream-Hyperscale-Spin.repo new file mode 100644 index 0000000..0bbae85 --- /dev/null +++ b/SOURCES/CentOS-Stream-Hyperscale-Spin.repo @@ -0,0 +1,8 @@ +[centos-hyperscale-spin] +name=CentOS Stream $releasever - Hyperscale Spin +mirrorlist=http://mirrorlist.centos.org/?release=$stream&arch=$basearch&repo=hyperscale-packages-spin +#baseurl=http://mirror.centos.org/$contentdir/$stream/hyperscale/$basearch/packages-spin/ +gpgcheck=1 +enabled=1 +priority=50 +gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-CentOS-SIG-HyperScale diff --git a/SPECS/centos-release-hyperscale.spec b/SPECS/centos-release-hyperscale.spec index f508e49..887f3b1 100644 --- a/SPECS/centos-release-hyperscale.spec +++ b/SPECS/centos-release-hyperscale.spec @@ -1,12 +1,14 @@ Summary: CentOS Hyperscale SIG main repo configs Name: centos-release-hyperscale -Version: 3 -Release: 2%{?dist} +Version: 4 +Release: 1%{?dist} License: GPL URL: http://wiki.centos.org/SpecialInterestGroup/Hyperscale Source0: RPM-GPG-KEY-CentOS-SIG-HyperScale Source1: CentOS-Stream-Hyperscale.repo Source2: CentOS-Stream-Hyperscale-Experimental.repo +Source3: CentOS-Stream-Hyperscale-Hotfixes.repo +Source4: CentOS-Stream-Hyperscale-Spin.repo BuildArch: noarch @@ -21,13 +23,29 @@ Summary: CentOS Hyperscale SIG experimental repo configs %description experimental Configs for the CentOS Hyperscale SIG experimental package repository. +%package hotfixes +Summary: CentOS Hyperscale SIG module hotfixes repo configs +Requires: epel-release = %{rhel} +Requires: centos-release-hyperscale = %{version}-%{release} + +%description hotfixes +Configs for the CentOS Hyperscale SIG module hotfixes repository. + +%package spin +Summary: CentOS Hyperscale SIG spin repo configs +Requires: centos-release-hyperscale = %{version}-%{release} + +%description spin +Configs for the CentOS Hyperscale SIG spin repository. + %prep %install -install -p -d %{buildroot}%{_sysconfdir}/pki/rpm-gpg -install -m 644 %{SOURCE0} %{buildroot}%{_sysconfdir}/pki/rpm-gpg -install -p -d %{buildroot}%{_sysconfdir}/yum.repos.d -install -m 644 %{SOURCE1} %{SOURCE2} %{buildroot}%{_sysconfdir}/yum.repos.d +install -d %{buildroot}%{_sysconfdir}/pki/rpm-gpg +install -p -m 644 %{SOURCE0} %{buildroot}%{_sysconfdir}/pki/rpm-gpg +install -d %{buildroot}%{_sysconfdir}/yum.repos.d +install -p -m 644 %{SOURCE1} %{SOURCE2} %{SOURCE3} %{SOURCE4} \ + %{buildroot}%{_sysconfdir}/yum.repos.d %files %defattr(-,root,root) @@ -39,7 +57,18 @@ install -m 644 %{SOURCE1} %{SOURCE2} %{buildroot}%{_sysconfdir}/yum.repos.d %{_sysconfdir}/pki/rpm-gpg/RPM-GPG-KEY-CentOS-SIG-HyperScale %config(noreplace) %{_sysconfdir}/yum.repos.d/CentOS-Stream-Hyperscale-Experimental.repo +%files hotfixes +%config(noreplace) %{_sysconfdir}/yum.repos.d/CentOS-Stream-Hyperscale-Hotfixes.repo + +%files spin +%config(noreplace) %{_sysconfdir}/yum.repos.d/CentOS-Stream-Hyperscale-Spin.repo + %changelog +* Mon May 17 2021 Davide Cavalca - 4-1 +- Add subpackages for hotfixes and spin repo configs +- Require epel-release for hotfixes +- Preserve timestamps on installs + * Fri Apr 09 2021 Davide Cavalca - 3-2 - Drop obsoletes for centos-hyperscale-keys as it was never actually built