c8add0
Summary: Gluster 7 packages from the CentOS Storage SIG repository
c8add0
Name: centos-release-gluster7
8a1de3
Version: 1.0
d7db20
Release: 2%{?dist}
c8add0
License: GPLv2
c8add0
URL: http://wiki.centos.org/SpecialInterestGroup/Storage
c8add0
Source0: CentOS-Gluster-7.repo
c8add0
Source1: 75-gluster.preset
c8add0
%if 0%{?centos} >= 7
c8add0
BuildRequires: systemd
c8add0
%endif
c8add0
BuildArch: noarch
c8add0
c8add0
%if 0%{?centos} >= 7
c8add0
# $contentdir for altarch support was added with CentOS-7.5
c8add0
Requires: centos-release >= 7-5.1804.el7.centos.2
af6d66
Requires(post): systemd
af6d66
Requires(preun): systemd
af6d66
Requires(postun): systemd
c8add0
%endif
c8add0
# This provides the public key to verify the RPMs
c8add0
Requires: centos-release-storage-common
c8add0
c8add0
Provides: centos-release-gluster = 7
c8add0
c8add0
%description
c8add0
yum configuration for Gluster 7 packages from the CentOS Storage SIG. Gluster
c8add0
7 will receive updates for approximately 12 months. For more details about the
c8add0
release and maintenance schedule, see
c8add0
https://www.gluster.org/community/release-schedule
c8add0
c8add0
%install
c8add0
install -D -m 644 %{SOURCE0} %{buildroot}%{_sysconfdir}/yum.repos.d/CentOS-Gluster-7.repo
c8add0
%if 0%{?centos} < 7
c8add0
sed -i 's/i\$contentdir/centos/g' %{buildroot}%{_sysconfdir}/yum.repos.d/CentOS-Gluster-7.repo
c8add0
%endif
c8add0
%if 0%{?centos} >= 7
c8add0
install -D -m 644 %{SOURCE1} %{buildroot}%{_presetdir}/$(basename %{SOURCE1})
c8add0
%endif
c8add0
c8add0
%if 0%{?centos} >= 7
c8add0
%post
c8add0
%systemd_post
c8add0
c8add0
%preun
c8add0
%systemd_preun
c8add0
c8add0
%postun
c8add0
%systemd_postun
c8add0
%endif
c8add0
c8add0
%files
c8add0
%defattr(-,root,root)
c8add0
%config(noreplace) %{_sysconfdir}/yum.repos.d/CentOS-Gluster-7.repo
c8add0
%if 0%{?centos} >= 7
c8add0
%{_presetdir}/75-gluster.preset
c8add0
%endif
c8add0
c8add0
%changelog
d7db20
* Wed Mar 25 2020 Kaleb S. KEITHLEY <kkeithle[at]redhat.com> - 1.0-2
d7db20
- enabled
d7db20
c8add0
* Wed Aug 28 2019 Niels de Vos <ndevos@redhat.com> - 0.1-1
c8add0
- Initial version based on centos-release-gluster6
c8add0
- Only the centos-gluster7-test repo is enabled during pre-release