|
|
bbb7c9 |
%global OpenStackVersion ussuri
|
|
|
083e1e |
Summary: OpenStack from the CentOS Cloud SIG repo configs
|
|
|
083e1e |
Name: centos-release-openstack-%{OpenStackVersion}
|
|
|
bbb7c9 |
Version: 1
|
|
|
de53a1 |
Release: 5%{?dist}
|
|
|
083e1e |
License: GPL
|
|
|
083e1e |
URL: http://wiki.centos.org/SpecialInterestGroup/Cloud
|
|
|
083e1e |
Source0: CentOS-OpenStack.repo
|
|
|
083e1e |
Source1: RPM-GPG-KEY-CentOS-SIG-Cloud
|
|
|
083e1e |
|
|
|
083e1e |
BuildArch: noarch
|
|
|
083e1e |
|
|
|
083e1e |
Requires: centos-release
|
|
|
de53a1 |
Requires: centos-release-advanced-virtualization
|
|
|
083e1e |
Requires: centos-release-rabbitmq-38
|
|
|
ac65fd |
Requires: centos-release-ceph-nautilus
|
|
|
e13a88 |
Requires: centos-release-nfv-openvswitch
|
|
|
de53a1 |
Requires: /etc/os-release
|
|
|
083e1e |
Conflicts: centos-release-openstack
|
|
|
083e1e |
|
|
|
083e1e |
%description
|
|
|
083e1e |
yum Configs and basic docs for OpenStack as delivered via the CentOS Cloud SIG.
|
|
|
083e1e |
|
|
|
083e1e |
%prep
|
|
|
083e1e |
|
|
|
083e1e |
%install
|
|
|
083e1e |
install -D -m 644 %{SOURCE0} %{buildroot}%{_sysconfdir}/yum.repos.d/CentOS-OpenStack-%{OpenStackVersion}.repo
|
|
|
083e1e |
sed -i -e "s/OPENSTACK_VERSION/%{OpenStackVersion}/g" %{buildroot}%{_sysconfdir}/yum.repos.d/CentOS-OpenStack-%{OpenStackVersion}.repo
|
|
|
083e1e |
install -p -d %{buildroot}%{_sysconfdir}/pki/rpm-gpg
|
|
|
083e1e |
install -m 644 %{SOURCE1} %{buildroot}%{_sysconfdir}/pki/rpm-gpg
|
|
|
083e1e |
|
|
|
de53a1 |
%post
|
|
|
de53a1 |
if [ -f /etc/os-release ]; then
|
|
|
de53a1 |
source /etc/os-release
|
|
|
de53a1 |
fi
|
|
|
de53a1 |
if [[ $ID == 'centos' && $NAME == *'Stream' ]] || [ $ID != 'centos' ]; then
|
|
|
de53a1 |
echo "8-stream" > /etc/dnf/vars/cloudsigdist
|
|
|
de53a1 |
else
|
|
|
de53a1 |
echo "8" > /etc/dnf/vars/cloudsigdist
|
|
|
de53a1 |
fi
|
|
|
de53a1 |
|
|
|
de53a1 |
%postun
|
|
|
de53a1 |
if [ $1 -eq 0 ] ; then
|
|
|
de53a1 |
rm -f /etc/dnf/vars/cloudsigdist
|
|
|
de53a1 |
fi
|
|
|
083e1e |
|
|
|
083e1e |
%files
|
|
|
083e1e |
%defattr(-,root,root)
|
|
|
083e1e |
%config(noreplace) %{_sysconfdir}/yum.repos.d/*
|
|
|
083e1e |
%{_sysconfdir}/pki/rpm-gpg
|
|
|
083e1e |
|
|
|
083e1e |
%changelog
|
|
|
de53a1 |
* Mon Mar 08 2021 Alfredo Moralejo <amoralej@redhat.com> - %{OpenStackVersion}-1-5
|
|
|
de53a1 |
- Add support for CentOS Stream 8 repos
|
|
|
de53a1 |
- Use centos-release-advanced-virtualization for Advanced Virtulazation repo
|
|
|
de53a1 |
|
|
|
e13a88 |
* Thu Nov 05 2020 Yatin Karel <ykarel@redhat.com> - %{OpenStackVersion}-1-4
|
|
|
e13a88 |
- Add dependency on centos-release-nfv-openvswitch
|
|
|
e13a88 |
|
|
|
bb1011 |
* Tue Jul 07 2020 - Alfredo Moralejo amoralej@redhat.com> - %{OpenStackVersion}-1-3
|
|
|
bb1011 |
- Replace rdo-trunk-ussuri-tested by component based promoted repos
|
|
|
bb1011 |
|
|
|
ac65fd |
* Thu Jun 04 2020 - %{OpenStackVersion}-1-2
|
|
|
ac65fd |
- Rely on ceph nautilus release rpm instead of ceph repo
|
|
|
ac65fd |
|
|
|
bbb7c9 |
* Mon May 18 2020 Yatin Karel <ykarel@redhat.com> - %{OpenStackVersion}-1-1
|
|
|
bbb7c9 |
- Ussuri release
|