From be44c35b8effbf86ae08d68f0cab3f27e416de60 Mon Sep 17 00:00:00 2001 From: Alfredo Moralejo Date: Apr 19 2021 08:54:06 +0000 Subject: Create centos-release-openstack-wallaby As it's only for CentOS Stream 8, i'm removing the logic to identify CentOS Linux or CentOS Stream. --- diff --git a/SOURCES/CentOS-OpenStack.repo b/SOURCES/CentOS-OpenStack.repo index ce46478..5469fdc 100644 --- a/SOURCES/CentOS-OpenStack.repo +++ b/SOURCES/CentOS-OpenStack.repo @@ -5,8 +5,8 @@ [centos-openstack-OPENSTACK_VERSION] name=CentOS-$releasever - OpenStack OPENSTACK_VERSION -#baseurl=http://mirror.centos.org/$contentdir/$cloudsigdist/cloud/$basearch/openstack-OPENSTACK_VERSION/ -mirrorlist=http://mirrorlist.centos.org/?release=$cloudsigdist&arch=$basearch&repo=cloud-openstack-OPENSTACK_VERSION +#baseurl=http://mirror.centos.org/$contentdir/8-stream/cloud/$basearch/openstack-OPENSTACK_VERSION/ +mirrorlist=http://mirrorlist.centos.org/?release=8-stream&arch=$basearch&repo=cloud-openstack-OPENSTACK_VERSION gpgcheck=1 enabled=1 gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-CentOS-SIG-Cloud @@ -14,14 +14,14 @@ module_hotfixes=1 [centos-openstack-OPENSTACK_VERSION-test] name=CentOS-$releasever - OpenStack OPENSTACK_VERSION Testing -baseurl=https://buildlogs.centos.org/centos/$cloudsigdist/cloud/$basearch/openstack-OPENSTACK_VERSION/ +baseurl=https://buildlogs.centos.org/centos/8-stream/cloud/$basearch/openstack-OPENSTACK_VERSION/ gpgcheck=0 enabled=0 module_hotfixes=1 [centos-openstack-OPENSTACK_VERSION-debuginfo] name=CentOS-$releasever - OpenStack OPENSTACK_VERSION - Debug -baseurl=http://debuginfo.centos.org/centos/$releasever/cloud/$basearch/ +baseurl=http://debuginfo.centos.org/centos/8-stream/cloud/$basearch/ gpgcheck=1 enabled=0 gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-CentOS-SIG-Cloud @@ -29,7 +29,7 @@ module_hotfixes=1 [centos-openstack-OPENSTACK_VERSION-source] name=CentOS-$releasever - OpenStack OPENSTACK_VERSION - Source -baseurl=http://vault.centos.org/centos/$cloudsigdist/cloud/Source/openstack-OPENSTACK_VERSION/ +baseurl=http://vault.centos.org/centos/8-stream/cloud/Source/openstack-OPENSTACK_VERSION/ gpgcheck=1 enabled=0 gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-CentOS-SIG-Cloud diff --git a/SPECS/centos-release-openstack.spec b/SPECS/centos-release-openstack.spec index 1ce00ee..b3511bc 100644 --- a/SPECS/centos-release-openstack.spec +++ b/SPECS/centos-release-openstack.spec @@ -1,8 +1,8 @@ -%global OpenStackVersion victoria +%global OpenStackVersion wallaby Summary: OpenStack from the CentOS Cloud SIG repo configs Name: centos-release-openstack-%{OpenStackVersion} Version: 1 -Release: 2%{?dist} +Release: 1%{?dist} License: GPL URL: http://wiki.centos.org/SpecialInterestGroup/Cloud Source0: CentOS-OpenStack.repo @@ -29,29 +29,12 @@ sed -i -e "s/OPENSTACK_VERSION/%{OpenStackVersion}/g" %{buildroot}%{_sysconfdir} install -p -d %{buildroot}%{_sysconfdir}/pki/rpm-gpg install -m 644 %{SOURCE1} %{buildroot}%{_sysconfdir}/pki/rpm-gpg -%post -if [ -f /etc/os-release ]; then - source /etc/os-release -fi -if [[ $ID == 'centos' && $NAME == *'Stream' ]] || [ $ID != 'centos' ]; then - echo "8-stream" > /etc/dnf/vars/cloudsigdist -else - echo "8" > /etc/dnf/vars/cloudsigdist -fi - -%postun -if [ $1 -eq 0 ] ; then - rm -f /etc/dnf/vars/cloudsigdist -fi - %files %defattr(-,root,root) %config(noreplace) %{_sysconfdir}/yum.repos.d/* %{_sysconfdir}/pki/rpm-gpg %changelog -* Mon Mar 08 2021 Alfredo Moralejo - %{OpenStackVersion}-1-2 -- Add support for CentOS Stream 8 repos. +* Mon Apr 19 2021 Alfredo Moralejo - wallaby-1-1 +- Wallaby Release -* Tue Nov 3 2020 Yatin Karel - %{OpenStackVersion}-1-1 -- Victoria Release