summaryrefslogtreecommitdiffstats
path: root/remi-release.spec
diff options
context:
space:
mode:
Diffstat (limited to 'remi-release.spec')
-rw-r--r--remi-release.spec14
1 files changed, 12 insertions, 2 deletions
diff --git a/remi-release.spec b/remi-release.spec
index 1ae6c2b..042d3b7 100644
--- a/remi-release.spec
+++ b/remi-release.spec
@@ -10,12 +10,12 @@ Name: remi-release
%if %{?rhel} == 9
# Match point release version
Version: 9.0
-Release: 1%{?dist}
+Release: 2%{?dist}
%endif
%if %{?rhel} == 8
# Match point release version
Version: 8.4
-Release: 1%{?dist}
+Release: 2%{?dist}
%endif
Summary: YUM configuration for remi repository
Summary(fr): Configuration de YUM pour le dépôt remi
@@ -47,7 +47,11 @@ BuildArchitectures: noarch
# rpm -q --provides cloudlinux-release => redhat-release = 8.4-3.el8
Requires: redhat-release >= %{version}
Requires: system-release(releasever) = %{rhel}
+%if %{?rhel} >= 9
Recommends: epel-release = %{rhel}
+%else
+Requires: epel-release = %{rhel}
+%endif
# Ensure not installable on Fedora
Conflicts: fedora-release
@@ -111,13 +115,19 @@ do
install -Dp -m 644 $repo %{buildroot}%{_sysconfdir}/yum.repos.d/$repo
done
+mkdir -p %{buildroot}/opt/remi
+
%files
%config(noreplace) %{_sysconfdir}/yum.repos.d/remi*repo
%{_sysconfdir}/pki/rpm-gpg/RPM-GPG-KEY-remi*
+%dir /opt/remi
%changelog
+* Mon Nov 8 2021 Remi Collet <remi@remirepo.net> - 9.0-2, 8.4-2
+- own /opt/remi
+
* Thu Nov 4 2021 Remi Collet <remi@remirepo.net> - 9.0-1
- EL-9 build