# remirepo spec file for remi-release (RHEL, CentOS) # # Copyright (c) 2006-2024 Remi Collet # License: CC-BY-SA-4.0 # http://creativecommons.org/licenses/by-sa/4.0/ # # Please, preserve the changelog entries # Name: remi-release %if %{?rhel} == 10 # Match point release version Version: 10.0 Release: 1%{?dist} %endif %if %{?rhel} == 9 # Match point release version Version: 9.4 Release: 2%{?dist} %endif %if %{?rhel} == 8 # Match point release version Version: 8.10 Release: 1%{?dist} %endif Summary: YUM configuration for remi repository Summary(fr): Configuration de YUM pour le dépôt remi Group: System Environment/Base License: CC-BY-SA-4.0 URL: https://remirepo.net # Repository configuration files Source1: remi.repo Source2: remi-safe.repo Source3: remi-modular.repo # GPG Keys Source2000: RPM-GPG-KEY-remi Source2017: RPM-GPG-KEY-remi2017 Source2018: RPM-GPG-KEY-remi2018 Source2019: RPM-GPG-KEY-remi2019 Source2020: RPM-GPG-KEY-remi2020 Source2021: RPM-GPG-KEY-remi2021 Source2022: RPM-GPG-KEY-remi2022 Source2023: RPM-GPG-KEY-remi2023 Source2024: RPM-GPG-KEY-remi2024 BuildArchitectures: noarch # centos-stream-release don't handle minor version Requires: (redhat-release >= %{version} or centos-stream-release >= %{rhel}) Requires: system-release(releasever) = %{rhel} %if %{?rhel} >= 10 Recommends: epel-release = %{rhel} %else Requires: epel-release = %{rhel} %endif # Ensure not installable on Fedora Conflicts: fedora-release %description This package contains yum configuration for the Remi's RPM Repository, as well as the public GPG keys used to sign them. Only the "remi-safe" repository is enabled after installation. For proper PHP installation, see https://rpms.remirepo.net/wizard/ FAQ: https://blog.remirepo.net/pages/English-FAQ Forum: https://forum.remirepo.net/ Twitter: https://twitter.com/RemiRepository %description -l fr Ce paquetage contient le fichier de configuration de YUM pour utiliser les RPM du dépôt de Remi ainsi que la clé GPG utilisée pour les signer. Seul le dépôt "remi-safe" est activé après l'installation. Pour une installation correcte de PHP, voir https://rpms.remirepo.net/wizard/ FAQ: https://blog.remirepo.net/pages/FAQ-en-Francais 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 %build echo empty build %install # PGP install -Dp -m 644 %{SOURCE2000} %{buildroot}%{_sysconfdir}/pki/rpm-gpg/RPM-GPG-KEY-remi install -Dp -m 644 %{SOURCE2017} %{buildroot}%{_sysconfdir}/pki/rpm-gpg/RPM-GPG-KEY-remi2017 install -Dp -m 644 %{SOURCE2018} %{buildroot}%{_sysconfdir}/pki/rpm-gpg/RPM-GPG-KEY-remi2018 install -Dp -m 644 %{SOURCE2019} %{buildroot}%{_sysconfdir}/pki/rpm-gpg/RPM-GPG-KEY-remi2019 install -Dp -m 644 %{SOURCE2020} %{buildroot}%{_sysconfdir}/pki/rpm-gpg/RPM-GPG-KEY-remi2020 install -Dp -m 644 %{SOURCE2021} %{buildroot}%{_sysconfdir}/pki/rpm-gpg/RPM-GPG-KEY-remi2021 install -Dp -m 644 %{SOURCE2022} %{buildroot}%{_sysconfdir}/pki/rpm-gpg/RPM-GPG-KEY-remi2022 install -Dp -m 644 %{SOURCE2023} %{buildroot}%{_sysconfdir}/pki/rpm-gpg/RPM-GPG-KEY-remi2023 install -Dp -m 644 %{SOURCE2024} %{buildroot}%{_sysconfdir}/pki/rpm-gpg/RPM-GPG-KEY-remi2024 %if %{rhel} <= 8 ln -s RPM-GPG-KEY-remi2018 %{buildroot}%{_sysconfdir}/pki/rpm-gpg/RPM-GPG-KEY-remi.el8 %endif %if %{rhel} <= 9 ln -s RPM-GPG-KEY-remi2021 %{buildroot}%{_sysconfdir}/pki/rpm-gpg/RPM-GPG-KEY-remi.el9 %endif %if %{rhel} <= 10 ln -s RPM-GPG-KEY-remi2024 %{buildroot}%{_sysconfdir}/pki/rpm-gpg/RPM-GPG-KEY-remi.el10 %endif # DNF for src in %{SOURCE1} %{SOURCE2} %{SOURCE3} do repo=$(basename $src) install -Dp -m 644 $src %{buildroot}%{_sysconfdir}/yum.repos.d/$repo done 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 * Thu Nov 14 2024 Remi Collet - 10.0-1 - Configuration package for remi repository on RHEL-10.0-Beta * Mon May 13 2024 Remi Collet - 8.10-1 and 9.4-2 - raise dependency on redhat-release 8.10 or 9.4 - use $releasever instead of hardcoded value in configuration files * Mon May 13 2024 Remi Collet - 9.4-1 - raise dependency on redhat-release 9.4 * Tue Jan 9 2024 Remi Collet - 8.9-3 and 9.3-3 - add 2024 key * Wed Dec 20 2023 Remi Collet - 8.9-2 and 9.3-2 - disable repo_gpgcheck as it raise too much issue being proxy and CVE-2021-20271 is fixed in rpm * Tue Dec 19 2023 Remi Collet - 8.9-1 and 9.3-1 - raise dependency on redhat-release >= 8.9 or 9.3 * Tue Jun 13 2023 Remi Collet - 8.8-1 and 9.2-1 - raise dependency on redhat-release >= 8.8 or 9.2 * Thu Nov 17 2022 Remi Collet - 8.7-2 and 9.1-2 - raise dependency on redhat-release >= 8.7 or 9.1 - add 2023 key * Mon May 23 2022 Remi Collet - 8.6-1 - raise dependency on redhat-release >= 8.6 * Mon May 23 2022 Remi Collet - 9.0-6 - create remi-crypto-* to set crypto policies on build system * Tue Feb 15 2022 Remi Collet - 8.5-3 and 9.0-5 - add 2022 key (used for .src.rpm) * Sun Jan 2 2022 Remi Collet - 9.0-4 - EPEL is mandatory * Tue Nov 30 2021 Remi Collet - 8.5-2 and 9.0-3 - add remi-modular-debuginfo and remi-modular-test-debuginfo repository configurations * Mon Nov 8 2021 Remi Collet - 8.5-1 - raise dependency on redhat-release >= 8.5 - own /opt/remi - add el9 key * Mon Nov 8 2021 Remi Collet - 9.0-2 - own /opt/remi * Thu Nov 4 2021 Remi Collet - 9.0-1 - EL-9 build * Fri Jul 2 2021 Remi Collet - 8.4-1 - raise dependency on redhat-release >= 8.4 - enable repo_gpgcheck for https://github.com/remicollet/remirepo/issues/175 * Mon Jan 4 2021 Remi Collet - 8.3-1 - add 2021 key (used for .src.rpm) * Thu Feb 27 2020 Remi Collet - 8.1-2 - raise dependency on redhat-release >= 8.1 * Mon Feb 17 2020 Remi Collet - 8.1-1 - add 2020 key (used for .src.rpm) * Fri Sep 27 2019 Remi Collet - 8.0-4 - drop all php* and glpi* confusing repositories remi-modular is enough * Fri Sep 6 2019 Remi Collet - 8.0-3 - add php 7.4 repository - add link to the Wizard in package description * Mon Aug 19 2019 Remi Collet - 8.0-2 - EPEL is now available and mandatory - add 2019 key (used for .src.rpm) * Fri Dec 21 2018 Remi Collet - 8.0-1.4 - add GLPI 9.4 dedicated repostitory (despite module should be prefered) * Mon Dec 3 2018 Remi Collet - 8.0-1.3 - add modular-test repository * Fri Nov 30 2018 Remi Collet - 8.0-1.2 - add modular repository * Fri Nov 16 2018 Remi Collet - 8.0-1.1 - require system-release(releasever) * Fri Nov 16 2018 Remi Collet - 8.0-1 - Configuration package for remi repository on RHEL-8.0-Beta * Tue Jun 19 2018 Remi Collet - 6.9-4 and 7.5-2 - add php 7.3 repository - simplify sources * Tue Jun 5 2018 Remi Collet - 6.9-3 and 7.5-1 - add GLPI dedicated repostitories * Wed Mar 21 2018 Remi Collet - 7.4-2 - drop dependency with yum, fix gh#101 * Tue Jan 16 2018 Remi Collet - 6.9-2 and 7.4-1 - Add the GPG Key used for 2018 distributions - switch http mirrorlist to cdn.remirepo.net - fix package License (CC-BY-SA) * Thu Jun 29 2017 Remi Collet - 6.9-1 and 7.3-2 - add remi-php72 repository configuration * Fri Feb 10 2017 Remi Collet - 6.8-2 and 7.3-1 - add remi-php54 repository - add mirrorlist for https mirrors (as comment) * Thu Jun 30 2016 Remi Collet - 6.8-1 and 7.2-1 - add remi-php71 repository * Wed Dec 9 2015 Remi Collet - 6.6-2 and 7.1-3 - add remi-php70-test repository - fix information, remi is not more required by remi-phpxx * Fri Jul 24 2015 Remi Collet - 6.6-1 - add remi-safe repository * Thu Jul 23 2015 Remi Collet - 7.1-2 and 6.5-2 - add remi-php70 repository * Tue Jun 2 2015 Remi Collet - 7.1-1 - add remi-safe repository - translate repository name - update repository configuration for "remirepo.net" domain * Thu Apr 24 2014 Remi Collet - 7.0-1 - EL-7 build * Fri Feb 28 2014 Remi Collet - 5.10-1 and 6.5-1 - add php56 repository * Thu Oct 3 2013 Remi Collet - 5.9-1 and 6.4-1 - add php55 repository * Tue Feb 12 2013 Remi Collet - 5-9 and 6-2 - add debuginfo repo - drop failovermethod option (switch to roundrobin) * Sat Nov 13 2010 Remi Collet - 6-1.el6.remi - EL-6 rebuild * Sat May 01 2010 Remi Collet - 5-8.el5.remi - use a mirrorlist URL * Sun May 03 2009 Remi Collet - 5-7.el5.remi - new repo layout * Thu Jan 22 2009 Remi Collet - 5-6.el5.remi - fix bad $releasever in remi.repo (5Server doesn't work) * Tue Jan 20 2009 Remi Collet - 5-5.el5.remi - remove free.fr mirror * Sat Feb 2 2008 Remi Collet - 5-4.el5.remi - new mirror http://rpms.famillecollet.com/ * Sat Nov 17 2007 Remi Collet - 5-3.el5.remi - add requires epel-release * Sun Jun 24 2007 Remi Collet - 5-2.el5.remi - New key (email change, same ID) * Sat May 26 2007 Remi Collet - 5-1.el5.remi - EL-5 rebuild