From e8793890b8992d22d56de24ab1f5c6e70c50181a Mon Sep 17 00:00:00 2001 From: Kaleb S. KEITHLEY Date: Mar 19 2020 11:26:47 +0000 Subject: %{centos} >= 8 (versus 7) Signed-off-by: Kaleb S. KEITHLEY --- diff --git a/SPECS/centos-release-gluster7.spec b/SPECS/centos-release-gluster7.spec index f2dbf97..50e1b1f 100644 --- a/SPECS/centos-release-gluster7.spec +++ b/SPECS/centos-release-gluster7.spec @@ -6,12 +6,12 @@ License: GPLv2 URL: http://wiki.centos.org/SpecialInterestGroup/Storage Source0: CentOS-Gluster-7.repo Source1: 75-gluster.preset -%if 0%{?centos} >= 7 +%if 0%{?centos} >= 8 BuildRequires: systemd %endif BuildArch: noarch -%if 0%{?centos} >= 7 +%if 0%{?centos} >= 8 # $contentdir for altarch support was added with CentOS-7.5 Requires: centos-release >= 8.1 Requires(post): systemd @@ -31,14 +31,14 @@ https://www.gluster.org/community/release-schedule %install install -D -m 644 %{SOURCE0} %{buildroot}%{_sysconfdir}/yum.repos.d/CentOS-Gluster-7.repo -%if 0%{?centos} < 7 +%if 0%{?centos} < 8 sed -i 's/i\$contentdir/centos/g' %{buildroot}%{_sysconfdir}/yum.repos.d/CentOS-Gluster-7.repo %endif -%if 0%{?centos} >= 7 +%if 0%{?centos} >= 8 install -D -m 644 %{SOURCE1} %{buildroot}%{_presetdir}/$(basename %{SOURCE1}) %endif -%if 0%{?centos} >= 7 +%if 0%{?centos} >= 8 %post %systemd_post @@ -52,7 +52,7 @@ install -D -m 644 %{SOURCE1} %{buildroot}%{_presetdir}/$(basename %{SOURCE1}) %files %defattr(-,root,root) %config(noreplace) %{_sysconfdir}/yum.repos.d/CentOS-Gluster-7.repo -%if 0%{?centos} >= 7 +%if 0%{?centos} >= 8 %{_presetdir}/75-gluster.preset %endif