Blob Blame History Raw
%global RabbitMQVersion 38
Summary: Config to enable the repository for the Messaging SIG RabbitMQ Server
Name:    centos-release-rabbitmq-%{RabbitMQVersion}
Version: 1
Release: 1%{?dist}
License: GPL
URL: http://wiki.centos.org/SpecialInterestGroup/Messaging
Source0: CentOS-Messaging-rabbitmq.repo
Source1: RPM-GPG-KEY-CentOS-SIG-Messaging

BuildArch: noarch

Requires: centos-release

%description
yum configs for the RabbitMQ Server as delivered by CentOS Messaging SIG.

%prep

%install
install -D -m 644 %{SOURCE0} %{buildroot}%{_sysconfdir}/yum.repos.d/CentOS-Messaging-rabbitmq.repo
sed -i -e "s/RABBITMQ_VERSION/%{RabbitMQVersion}/g" %{buildroot}%{_sysconfdir}/yum.repos.d/CentOS-Messaging-rabbitmq.repo
install -p -d %{buildroot}%{_sysconfdir}/pki/rpm-gpg
install -m 644 %{SOURCE1} %{buildroot}%{_sysconfdir}/pki/rpm-gpg

%files
%defattr(-,root,root)
%config(noreplace) %{_sysconfdir}/yum.repos.d/*
%{_sysconfdir}/pki/rpm-gpg/RPM-GPG-KEY-CentOS-SIG-Messaging

%changelog
* Thu Apr 02 2020 Alfredo Moralejo <amoralej@redhat.com> - 1.1
- Initial release for RabbitMQ Server 3.8