|
|
083e1e |
%global OpenStackVersion train
|
|
|
083e1e |
Summary: OpenStack from the CentOS Cloud SIG repo configs
|
|
|
083e1e |
Name: centos-release-openstack-%{OpenStackVersion}
|
|
|
083e1e |
Version: 2
|
|
|
083e1e |
Release: 1%{?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 |
Source2: RPM-GPG-KEY-CentOS-SIG-Virtualization-RDO
|
|
|
083e1e |
Source3: advanced-virtualization.repo
|
|
|
083e1e |
Source4: ceph-nautilus.repo
|
|
|
083e1e |
|
|
|
083e1e |
BuildArch: noarch
|
|
|
083e1e |
|
|
|
083e1e |
Requires: centos-release
|
|
|
083e1e |
%if 0%{?rhel} == 7
|
|
|
083e1e |
Requires: centos-release-qemu-ev
|
|
|
083e1e |
Requires: centos-release-ceph-nautilus
|
|
|
083e1e |
%else
|
|
|
083e1e |
Requires: centos-release-rabbitmq-38
|
|
|
083e1e |
Requires: centos-release-storage-common
|
|
|
083e1e |
%endif
|
|
|
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 |
|
|
|
083e1e |
%if 0%{?rhel} == 8
|
|
|
083e1e |
install -m 644 %{SOURCE2} %{buildroot}%{_sysconfdir}/pki/rpm-gpg
|
|
|
083e1e |
install -p -m 644 %{SOURCE3} %{buildroot}%{_sysconfdir}/yum.repos.d
|
|
|
083e1e |
install -p -m 644 %{SOURCE4} %{buildroot}%{_sysconfdir}/yum.repos.d
|
|
|
083e1e |
%endif
|
|
|
083e1e |
|
|
|
083e1e |
%files
|
|
|
083e1e |
%defattr(-,root,root)
|
|
|
083e1e |
%config(noreplace) %{_sysconfdir}/yum.repos.d/*
|
|
|
083e1e |
%{_sysconfdir}/pki/rpm-gpg
|
|
|
083e1e |
|
|
|
083e1e |
%changelog
|
|
|
083e1e |
* Wed Apr 22 2020 Alfredo Moralejo <amoralej@redhat.com> - %{OpenStackVersion}-2-1
|
|
|
083e1e |
- Add support for CentOS 8
|
|
|
083e1e |
|
|
|
083e1e |
* Tue Oct 15 2019 Yatin Karel <ykarel@redhat.com> - %{OpenStackVersion}-1-1
|
|
|
083e1e |
- Train release
|
|
|
083e1e |
|