summaryrefslogtreecommitdiffstats
path: root/remi-release-el.spec
blob: 1aa40c10290fb4a2d28087efbdea80e9a98b72ab (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
# remirepo spec file for remi-release (RHEL, CentOS)
#
# Copyright (c) 2006-2017 Remi Collet
# License: CC-BY-SA
# http://creativecommons.org/licenses/by-sa/4.0/
#
# Please, preserve the changelog entries
#
Name:           remi-release
%if %{rhel} == 7
Version:        7.3
Release:        1%{?dist}
%endif
%if %{rhel} == 6
Version:        6.8
Release:        2%{?dist}
%endif
%if %{rhel} == 5
Version:        5.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:        GPL
URL:            http://remirepo.net
Source0:        RPM-GPG-KEY-remi
Source1:        remi-el.repo
Source2:        remi-safe.repo
Source3:        remi-php70.repo
Source4:        remi-php71.repo
Source5:        remi-php54.repo

BuildRoot:      %{_tmppath}/%{name}-%{version}
BuildArchitectures: noarch

Requires:       yum
# Sadly system-release and redhat-release are not versionned
Requires:       redhat-release
Requires:       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.
%if %{rhel} >= 6
Only the "remi-safe" repository is enabled after installation.
%else
The repository is not enabled after installation.
%endif
For PHP 5.6 you must enable the remi-php56 repository:
    yum-config-manager --enable remi-php56

For PHP 7.0 you must enable the remi-php70 repository:
    yum-config-manager --enable remi-php70

For PHP 7.1 you must enable the remi-php71 repository:
    yum-config-manager --enable remi-php71

%if %{rhel} >= 6
Software Collections are in the "remi-safe" repository.
%endif
FAQ:   http://blog.remirepo.net/pages/English-FAQ
Forum: http://forum.remirepo.net/

%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.
%if %{rhel} >= 6
Seul le dépôt "remi-safe" est activé après l'installation.
%else
Le dépôt n'est pas activé après l'installation.
%endif
Pour PHP 5.6 vous devez activer le dépôt remi-php56
    yum-config-manager --enable remi-php56

Pour PHP 7.0 vous devez activer le dépôt remi-php70
    yum-config-manager --enable remi-php70

Pour PHP 7.1 vous devez activer le dépôt remi-php71
    yum-config-manager --enable remi-php71

%if %{rhel} >= 6
Les "Software Collections" sont dans le dépôt "remi-safe".
%endif
FAQ:   http://blog.remirepo.net/pages/FAQ-en-Francais
Forum: http://forum.remirepo.net/


%prep
%setup -c -T
sed -e "s/VERSION/%{rhel}/" %{SOURCE1} | tee remi.repo

%if %{rhel} >= 6
sed -e "s/VERSION/%{rhel}/" %{SOURCE2} | tee remi-safe.repo
sed -e "s/VERSION/%{rhel}/" %{SOURCE3} | tee remi-php70.repo
sed -e "s/VERSION/%{rhel}/" %{SOURCE4} | tee remi-php71.repo
sed -e "s/VERSION/%{rhel}/" %{SOURCE5} | tee remi-php54.repo
%endif


%build
echo empty build


%install
rm -rf %{buildroot}

# PGP
install -Dp -m 644 %{SOURCE0} %{buildroot}%{_sysconfdir}/pki/rpm-gpg/RPM-GPG-KEY-remi

# YUM
for repo in *repo
do
  install -Dp -m 644 $repo %{buildroot}%{_sysconfdir}/yum.repos.d/$repo
done


%clean
rm -rf %{buildroot}


%files
%defattr(-,root,root,-)
%config(noreplace) %{_sysconfdir}/yum.repos.d/remi*repo
%{_sysconfdir}/pki/rpm-gpg/RPM-GPG-KEY-remi


%changelog
* Fri Feb 10 2017 Remi Collet <remmi@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 <remmi@remirepo.net> - 6.8-1 and 7.2-1
- add remi-php71 repository

* Wed Dec  9 2015 Remi Collet <remmi@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 <remmi@remirepo.net> - 6.6-1
- add remi-safe repository

* Thu Jul 23 2015 Remi Collet <remmi@remirepo.net> - 7.1-2 and 6.5-2
- add remi-php70 repository

* Tue Jun  2 2015 Remi Collet <remmi@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