summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--remi-release.spec35
1 files changed, 35 insertions, 0 deletions
diff --git a/remi-release.spec b/remi-release.spec
index 6654a87..e1500c3 100644
--- a/remi-release.spec
+++ b/remi-release.spec
@@ -102,6 +102,30 @@ Forum: https://forum.remirepo.net/
Twitter: https://twitter.com/RemiRepository
+%package -n remi-crypto-legacy
+Summary: Lower crypto policies to LEGACY
+Conflicts: remi-crypto-default
+Requires: crypto-policies
+Requires(post): %{_bindir}/update-crypto-policies
+
+%description -n remi-crypto-legacy
+Lower crypto policies to LEGACY
+Only used for building.
+** DO NOT USED **
+
+
+%package -n remi-crypto-default
+Summary: Lower crypto policies to DEFAULT
+Conflicts: remi-crypto-legacy
+Requires: crypto-policies
+Requires(post): %{_bindir}/update-crypto-policies
+
+%description -n remi-crypto-default
+Lower crypto policies to DEFAULT
+Only used for building.
+** DO NOT USED **
+
+
%prep
%setup -c -T
@@ -147,11 +171,22 @@ install -Dp -m 644 %{SOURCE8} %{buildroot}%{_sysconfdir}/yum.repos.d/remi-debugi
mkdir -p %{buildroot}/opt/remi
+%post -n remi-crypto-legacy
+%{_bindir}/update-crypto-policies --set LEGACY
+
+%post -n remi-crypto-default
+%{_bindir}/update-crypto-policies --set DEFAULT
+
+
%files
%config(noreplace) %{_sysconfdir}/yum.repos.d/remi*.repo
%{_sysconfdir}/pki/rpm-gpg/RPM-GPG-KEY-remi*
%dir /opt/remi
+%files -n remi-crypto-legacy
+
+%files -n remi-crypto-default
+
%changelog
* Wed Feb 14 2024 Remi Collet <remi@remirepo.net> - 40-1