#2 Remove the logic to identify CL8 or CS8
Closed 2 years ago by jcapitao. Opened 2 years ago by jcapitao.
rpms/ jcapitao/centos-release-openstack c8-sig-cloud-openstack-victoria  into  c8-sig-cloud-openstack-victoria

@@ -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,7 +14,7 @@ 

  

  [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
@@ -29,7 +29,7 @@ 

  

  [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

@@ -2,7 +2,7 @@ 

  Summary: OpenStack from the CentOS Cloud SIG repo configs

  Name: centos-release-openstack-%{OpenStackVersion}

  Version: 1

- Release: 2%{?dist}

+ Release: 3%{?dist}

  License: GPL

  URL: http://wiki.centos.org/SpecialInterestGroup/Cloud

  Source0: CentOS-OpenStack.repo
@@ -29,27 +29,15 @@ 

  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 Jan 10 2022 Joel Capitao <jcapitao@redhat.com> - %{OpenStackVersion}-1-3

+ - Remove the logic to identify CL8 or CS8

+ 

  * Mon Mar 08 2021 Alfredo Moralejo <amoralej@redhat.com> - %{OpenStackVersion}-1-2

  - Add support for CentOS Stream 8 repos.

  

Pushed directly to repo as we can't accept PR.

Pull-Request has been closed by jcapitao

2 years ago