diff options
Diffstat (limited to 'remi-release.spec')
-rw-r--r-- | remi-release.spec | 203 |
1 files changed, 203 insertions, 0 deletions
diff --git a/remi-release.spec b/remi-release.spec new file mode 100644 index 0000000..011a15c --- /dev/null +++ b/remi-release.spec @@ -0,0 +1,203 @@ +# remirepo spec file for remi-release (RHEL, CentOS) +# +# Copyright (c) 2006-2018 Remi Collet +# License: CC-BY-SA +# http://creativecommons.org/licenses/by-sa/4.0/ +# +# Please, preserve the changelog entries +# +Name: remi-release +%if %{rhel} == 8 +Version: 8.0 +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 +URL: https://remirepo.net + +# Repository configuration files +Source1: remi.repo +Source2: remi-safe.repo +Source3: remi-glpi.repo +Source4: remi-php.repo + +# GPG Keys +Source2000: RPM-GPG-KEY-remi +Source2017: RPM-GPG-KEY-remi2017 +Source2018: RPM-GPG-KEY-remi2018 + + +BuildArchitectures: noarch + + +# Sadly system-release and redhat-release are not versionned +Requires: redhat-release +Recommends: epel-release = %{rhel} +# 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 PHP 7.3 you must enable the remi-php73 repository: + yum-config-manager --enable remi-php73 + +For PHP 7.2 you must enable the remi-php72 repository: + yum-config-manager --enable remi-php72 + +Software Collections are in the "remi-safe" repository. + +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 PHP 7.3 vous devez activer le dépôt remi-php73 + yum-config-manager --enable remi-php73 + +Pour PHP 7.2 vous devez activer le dépôt remi-php72 + yum-config-manager --enable remi-php72 + +Les "Software Collections" sont dans le dépôt "remi-safe". + +FAQ: https://blog.remirepo.net/pages/FAQ-en-Francais +Forum: https://forum.remirepo.net/ +Twitter: https://twitter.com/RemiRepository + + +%prep +%setup -c -T +sed -e 's/@VER@/72/;s/@DOTVER@/7.2/;s/VERSION/%{rhel}/' %{SOURCE4} >remi-php72.repo +sed -e 's/@VER@/73/;s/@DOTVER@/7.3/;s/VERSION/%{rhel}/' %{SOURCE4} >remi-php73.repo + +sed -e 's/@PHP@/5.6/;s/@VER@/91/;s/@DOTVER@/9.1/;s/VERSION/%{rhel}/' %{SOURCE3} >remi-glpi91.repo +sed -e 's/@PHP@/5.6/;s/@VER@/92/;s/@DOTVER@/9.2/;s/VERSION/%{rhel}/' %{SOURCE3} >remi-glpi92.repo +sed -e 's/@PHP@/5.6/;s/@VER@/93/;s/@DOTVER@/9.3/;s/VERSION/%{rhel}/' %{SOURCE3} >remi-glpi93.repo + +sed -e "s/VERSION/%{rhel}/" %{SOURCE1} | tee remi.repo +sed -e "s/VERSION/%{rhel}/" %{SOURCE2} | tee remi-safe.repo +sed -e "s/VERSION/%{rhel}/" %{SOURCE5} | tee remi-php54.repo + + +%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 + +%if %{rhel} <= 8 +ln -s RPM-GPG-KEY-remi2018 %{buildroot}%{_sysconfdir}/pki/rpm-gpg/RPM-GPG-KEY-remi.el8 +%endif + +# YUM +for repo in *repo +do + install -Dp -m 644 $repo %{buildroot}%{_sysconfdir}/yum.repos.d/$repo +done + + +%files +%config(noreplace) %{_sysconfdir}/yum.repos.d/remi*repo +%{_sysconfdir}/pki/rpm-gpg/RPM-GPG-KEY-remi* + + +%changelog +* Fri Nov 16 2018 Remi Collet <remi@remirepo.net> - 8.0-1 +- Configuration package for remi repository on RHEL-8.0-Beta + +* Tue Jun 19 2018 Remi Collet <remi@remirepo.net> - 6.9-4 and 7.5-2 +- add php 7.3 repository +- simplify sources + +* Tue Jun 5 2018 Remi Collet <remi@remirepo.net> - 6.9-3 and 7.5-1 +- add GLPI dedicated repostitories + +* Wed Mar 21 2018 Remi Collet <remi@remirepo.net> - 7.4-2 +- drop dependency with yum, fix gh#101 + +* Tue Jan 16 2018 Remi Collet <remi@remirepo.net> - 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 <remi@remirepo.net> - 6.9-1 and 7.3-2 +- add remi-php72 repository configuration + +* Fri Feb 10 2017 Remi Collet <remi@remirepo.net> - 6.8-2 and 7.3-1 +- add remi-php54 repository +- add mirrorlist for https mirrors (as comment) + +* Thu Jun 30 2016 Remi Collet <remi@remirepo.net> - 6.8-1 and 7.2-1 +- add remi-php71 repository + +* Wed Dec 9 2015 Remi Collet <remi@remirepo.net> - 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 <remi@remirepo.net> - 6.6-1 +- add remi-safe repository + +* Thu Jul 23 2015 Remi Collet <remi@remirepo.net> - 7.1-2 and 6.5-2 +- add remi-php70 repository + +* Tue Jun 2 2015 Remi Collet <remi@remirepo.net> - 7.1-1 +- add remi-safe repository +- translate repository name +- update repository configuration for "remirepo.net" domain + +* Thu Apr 24 2014 Remi Collet <RPMS@FamilleCollet.com> - 7.0-1 +- EL-7 build + +* Fri Feb 28 2014 Remi Collet <RPMS@FamilleCollet.com> - 5.10-1 and 6.5-1 +- add php56 repository + +* Thu Oct 3 2013 Remi Collet <RPMS@FamilleCollet.com> - 5.9-1 and 6.4-1 +- add php55 repository + +* Tue Feb 12 2013 Remi Collet <RPMS@FamilleCollet.com> - 5-9 and 6-2 +- add debuginfo repo +- drop failovermethod option (switch to roundrobin) + +* Sat Nov 13 2010 Remi Collet <RPMS@FamilleCollet.com> - 6-1.el6.remi +- EL-6 rebuild + +* Sat May 01 2010 Remi Collet <RPMS@FamilleCollet.com> - 5-8.el5.remi +- use a mirrorlist URL + +* Sun May 03 2009 Remi Collet <RPMS@FamilleCollet.com> - 5-7.el5.remi +- new repo layout + +* Thu Jan 22 2009 Remi Collet <RPMS@FamilleCollet.com> - 5-6.el5.remi +- fix bad $releasever in remi.repo (5Server doesn't work) + +* Tue Jan 20 2009 Remi Collet <RPMS@FamilleCollet.com> - 5-5.el5.remi +- remove free.fr mirror + +* Sat Feb 2 2008 Remi Collet <RPMS@FamilleCollet.com> - 5-4.el5.remi +- new mirror http://rpms.famillecollet.com/ + +* Sat Nov 17 2007 Remi Collet <RPMS@FamilleCollet.com> - 5-3.el5.remi +- add requires epel-release + +* Sun Jun 24 2007 Remi Collet <RPMS@FamilleCollet.com> - 5-2.el5.remi +- New key (email change, same ID) + +* Sat May 26 2007 Remi Collet <RPMS@FamilleCollet.com> - 5-1.el5.remi +- EL-5 rebuild + |