summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRemi Collet <remi@remirepo.net>2021-11-08 15:20:46 +0100
committerRemi Collet <remi@php.net>2021-11-08 15:20:46 +0100
commit11af727660edc298b9cb35da15b0674fd5e2a637 (patch)
tree1331588e5246b98bd55658ba5816c4df6c23d8e2
parent724c09bc37ee5eaed5de15609def8f26e26f8511 (diff)
own /opt/remi
-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