summaryrefslogtreecommitdiffstats
path: root/remi-release.spec
blob: 0bada8d0548e8b9fe53d86c5bc1a05266fe4512a (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
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
# remirepo spec file for remi-release (Fedora)
#
# 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
#
%global pkgman dnf

Name:           remi-release
Version:        %{fedora}
%if %{fedora} == 41
Release:        1%{?dist}
%endif
%if %{fedora} == 40
Release:        1%{?dist}
%endif
%if %{fedora} == 39
Release:        4%{?dist}
%endif
Summary:        Configuration for remi repository
Summary(fr):	Configuration pour le dépôt remi

Group:          System Environment/Base
License:        CC-BY-SA-4.0
URL:            https://rpms.remirepo.net/

# Repository configuration files
Source1:        remi.repo
Source2:        remi-test.repo
Source6:        remi-modular.repo
Source7:        remi-modular-test.repo
Source8:        remi-debug.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

BuildArch:      noarch

Requires:       /etc/yum.repos.d
Requires:       fedora-release >= %{fedora}

# For smoth upgrade
%if %{fedora} >= 40
# F40 have ICU 74.2-1, F41 have ICU 74.2-2
Obsoletes:      icu74          < 74.3
Obsoletes:      libicu74       < 74.3
Obsoletes:      libicu74-devel < 74.3
Obsoletes:      libicu74-doc   < 74.3
%endif
%if %{fedora} == 39
# F39 have ICU 73.2-2
Obsoletes:      icu73          < 73.3
Obsoletes:      libicu73       < 73.3
Obsoletes:      libicu73-devel < 73.3
Obsoletes:      libicu73-doc   < 73.3
%endif


%description
This package contains %{pkgman} configuration for the "remi" RPM Repository,
as well as the public GPG keys used to sign them.

The repository is not enabled after installation, so you must use
the --enablerepo=remi option for %{pkgman}.

For proper PHP installation, follow the wizard instructions:
  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 %{pkgman} pour utiliser
les RPM du dépôt "remi" ainsi que la clé GPG utilisée pour les signer.

Le dépôt n'est pas activé après l'installation, vous devez donc utiliser
l'option --enablerepo=remi de %{pkgman}.

Pour une bonne installation de PHP, suivre les instructions de l'assistant :
  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 %{fedora} <= 41
ln -s RPM-GPG-KEY-remi2024  %{buildroot}%{_sysconfdir}/pki/rpm-gpg/RPM-GPG-KEY-remi-41
%endif
%if %{fedora} <= 40
ln -s RPM-GPG-KEY-remi2024  %{buildroot}%{_sysconfdir}/pki/rpm-gpg/RPM-GPG-KEY-remi-40
%endif
%if %{fedora} <= 39
ln -s RPM-GPG-KEY-remi2023  %{buildroot}%{_sysconfdir}/pki/rpm-gpg/RPM-GPG-KEY-remi-39
%endif

# YUM
install -Dp -m 644 %{SOURCE1} %{buildroot}%{_sysconfdir}/yum.repos.d/remi.repo
install -Dp -m 644 %{SOURCE2} %{buildroot}%{_sysconfdir}/yum.repos.d/remi-test.repo

install -Dp -m 644 %{SOURCE6} %{buildroot}%{_sysconfdir}/yum.repos.d/remi-modular.repo
install -Dp -m 644 %{SOURCE7} %{buildroot}%{_sysconfdir}/yum.repos.d/remi-modular-test.repo

install -Dp -m 644 %{SOURCE8} %{buildroot}%{_sysconfdir}/yum.repos.d/remi-debuginfo.repo

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
* Tue Aug 20 2024 Remi Collet <remi@remirepo.net> - 41-1
- Fedora 41 using 2024 GPG key

* Wed Feb 14 2024 Remi Collet <remi@remirepo.net> - 40-1
- Fedora 40 using 2024 GPG key

* Tue Jan  9 2024 Remi Collet <remi@remirepo.net> - 39-4, 38-5
- Add 2024 GPG key (Fedora 40 and 41)

* Wed Dec 20 2023 Remi Collet <remi@remirepo.net> - 39-3, 38-4
- disable repo_gpgcheck as it raise too much issue being proxy
  and CVE-2021-20271 is fixed in rpm

* Mon Oct 30 2023 Remi Collet <remi@remirepo.net> - 39-2, 38-3, 37-3
- only obsolete libicu compat package when it matches system version
  libicu71 on F37, libicu72 on F38, libicu73 on F39

* Mon Aug 21 2023 Remi Collet <remi@remirepo.net> - 39-1
- Fedora 39 using 2023 GPG key

* Fri Apr 14 2023 Remi Collet <remi@remirepo.net> - 38-2
- obsoletes icu72 for smoth upgrade from F36/F37

* Fri Feb 10 2023 Remi Collet <remi@remirepo.net> - 38-1
- Fedora 38 using 2023 GPG key

* Mon Jul 11 2022 Remi Collet <remi@remirepo.net> - 37-2, 36-3, 35-6
- Add 2023 GPG key (Fedora 38 and 39)

* Mon Jul 11 2022 Remi Collet <remi@remirepo.net> - 37-1, 36-2, 35-5
- Fedora 36 GPG key
- own /opt/remi
- enable "remi" repository by default as it provides
  dependencies of "remi-modular"

* Thu Feb 10 2022 Remi Collet <remi@remirepo.net> - 36-1, 35-4, 34-7
- Fedora 36 using 2022 GPG key

* Tue Nov 30 2021 Remi Collet <remi@remirepo.net> - 34-6, 35-3
- add remi-modular-debuginfo and remi-modular-test-debuginfo
  repository configurations

* Wed Nov  3 2021 Remi Collet <remi@remirepo.net> - 35-2
- obsoletes icu69 for smoth upgrade from F33/F34

* Fri Sep  3 2021 Remi Collet <remi@remirepo.net> - 35-1, 34-5, 33-6
- Fedora release 35

* Thu Sep  2 2021 Remi Collet <remi@remirepo.net> - 34-4, 33-5
- add php81 repositories

* Mon May 17 2021 Remi Collet <remi@remirepo.net> - 34-3, 33-4
- enable repo_gpgcheck for https://github.com/remicollet/remirepo/issues/175

* Fri Apr 16 2021 Remi Collet <remi@remirepo.net> - 34-2, 33-3, 32-5
- drop glpi repository configuration files

* Tue Feb 16 2021 Remi Collet <remi@remirepo.net> - 34-1
- Fedora release 34

* Mon Jan  4 2021 Remi Collet <remi@remirepo.net> - 33-2, 32-4
- add new 2021 GPG key

* Tue Aug 18 2020 Remi Collet <remi@remirepo.net> - 33-1, 32-3, 31-4
- Fedora release 33

* Mon Aug 17 2020 Remi Collet <remi@remirepo.net> - 32-2, 31-3
- add php80 repositories

* Mon Feb 17 2020 Remi Collet <remi@remirepo.net> - 32-1, 31-2, 30-3
- Fedora release 32
- new GPG key

* Fri Mar  1 2019 Remi Collet <remi@remirepo.net> - 31-1, 30-2, 29-8
- add fedora 31 and php74 repositories

* Fri Mar  1 2019 Remi Collet <remi@remirepo.net> - 30-1
- Fedora release 30

* Fri Dec 21 2018 Remi Collet <remi@remirepo.net> - 29-6 and 28-6
- add remi-glpi94 repository

* Mon Dec  3 2018 Remi Collet <remi@remirepo.net> - 29-5
- add remi-modular-test repository

* Wed Nov 28 2018 Remi Collet <remi@remirepo.net> - 29-4
- add remi-modular repository

* Wed Nov  7 2018 Remi Collet <remi@remirepo.net> - 29-3
- use expanded mirrorlist, workaround for https://bugzilla.redhat.com/1637148

* Wed Aug 22 2018 Remi Collet <remi@remirepo.net> - 27-5, 28-4 and 29-2
- drop failovermethod which is unkown with DNF

* Wed Aug 22 2018 Remi Collet <remi@remirepo.net> - 29-1
- Fedora release 29

* Thu Jun 14 2018 Remi Collet <remi@remirepo.net> - 27-4 and 28-3
- add php 7.3 repository
- simplify sources

* Tue Jun  5 2018 Remi Collet <remi@remirepo.net> - 27-3 and 28-2
- add GLPI dedicated repostitories
- add symlink to have a key per version and allow system upgrade

* Mon Feb 26 2018 Remi Collet <remi@remirepo.net> - 28-1
- Fedora release 28
- fix package License (CC-BY-SA)

* Fri Jan 12 2018 Remi Collet <remi@remirepo.net> - 27-2, 26-3
- Add the GPG Key used for Fedora 28
- switch mirrorlist to cdn.remirepo.net

* Tue Aug 22 2017 Remi Collet <remi@remirepo.net> - 27-1
- Fedora release 27

* Thu Jun 29 2017 Remi Collet <remi@remirepo.net> - 26-2, 25-4
- add remi-php72 repository configuration

* Mon Mar  6 2017 Remi Collet <remi@remirepo.net> - 26-1, 25-3 and 24-3
- Fedora release 26
- Add the GPG Key used for Fedora 26

* Sun Sep 11 2016 Remi Collet <remi@remirepo.net> - 25-1
- Fedora release 25

* Thu Jun 30 2016 Remi Collet <remi@remirepo.net> - 22-4, 23-4 and 24-2
- add remi-php71 repository configuration
- add debuginfo repository configuration

* Fri Mar  4 2016 Remi Collet <remi@remirepo.net> - 24-1.fc24
- Fedora release 24

* Fri Jan 15 2016 Remi Collet <remi@remirepo.net> - 23-3.fc23.remi
- add remi-php70-test repository

* Fri Aug 28 2015 Remi Collet <RPMS@FamilleCollet.com> - 23-1.fc23.remi
- Fedora release 23

* Thu Jul 23 2015 Remi Collet <remi@remirepo.net> - ##-2.fc##.remi
- add php70 repository
- update repository configuration for new "remirepo.net" domain

* Fri Feb 27 2015 Remi Collet <RPMS@FamilleCollet.com> - 22-1.fc22.remi
- Fedora release 22

* Sun Aug 31 2014 Remi Collet <RPMS@FamilleCollet.com> - 21-1.fc21.remi
- Fedora release 21
- drop dependency on yum, as dnf exists

* Sun Aug 31 2014 Remi Collet <RPMS@FamilleCollet.com> - 20-3.fc20.remi
- split configuration, one file per repository
- add failovermethod=roundrobin for yum
- add fastestmirror=1 for dnf > 0.4
- drop apt configuration

* Fri Feb 28 2014 Remi Collet <RPMS@FamilleCollet.com> - 19-2 and 20-2
- add php56 repository

* Tue Sep 10 2013 Remi Collet <RPMS@FamilleCollet.com> - 20-1.fc20.remi
- Fedora release 20 (Heisenbug)

* Wed Apr 24 2013 Remi Collet <RPMS@FamilleCollet.com> - 19-1.fc19.remi
- Fedora release 19 (Schrödinger's Cat)

* Sun Oct 21 2012 Remi Collet <RPMS@FamilleCollet.com> - 18-1.fc18.remi
- Fedora release 18 (Spherical Cow)

* Tue Jun 26 2012 Remi Collet <RPMS@FamilleCollet.com> - 17-7.fc17.remi
- remove post scriptlet (smart stuff)

* Sat May 05 2012 Remi Collet <RPMS@FamilleCollet.com> - 17-6.fc17.remi
- Fedora release 17 (Beefy Miracle)
- drop Smart config

* Sun Oct 02 2011 Remi Collet <RPMS@FamilleCollet.com> - 16-6.fc16.remi
- F16 build - Verne

* Sat Apr 16 2011 Remi Collet <RPMS@FamilleCollet.com> - 15-6.fc15.remi
- F15 build - Lovelock

* Wed Sep 22 2010 Remi Collet <RPMS@FamilleCollet.com> - 14-6.fc14.remi
- F14 build - Laughlin

* Sat May 01 2010 Remi Collet <RPMS@FamilleCollet.com> - ##-6.fc##.remi
- use a mirrorlist URL

* Sat Apr 17 2010 Remi Collet <RPMS@FamilleCollet.com> - 13-5.fc13.remi
- F13 build - Goddard

* Fri Nov 06 2009 Remi Collet <RPMS@FamilleCollet.com> - 12-5.fc12.remi
- F12 build

* Thu Apr 30 2009 Remi Collet <RPMS@FamilleCollet.com> - ##-5.fc##.remi
- F11 build
- new repo layout

* Wed Nov 12 2008 Remi Collet <RPMS@FamilleCollet.com> - 10-4.fc10.remi
- F10 build
- remove old site (remi.collet.free.fr)

* Wed May  7 2008 Remi Collet <RPMS@FamilleCollet.com> - 9-4.fc9.remi
- F9 build

* Sat Feb  2 2008 Remi Collet <RPMS@FamilleCollet.com> - {3-8}-4.fc{3-8}.remi
- new mirror http://rpms.famillecollet.com/

* Fri Nov 02 2007 Remi Collet <RPMS@FamilleCollet.com> - 8-3.fc8.remi
- F8 build

* Thu Aug 23 2007 Remi Collet <RPMS@FamilleCollet.com> - {3-5}-3.fc{3-5}.remi
- update smart.channel during %%post only on fc > 5

* Sun Jun 24 2007 Remi Collet <RPMS@FamilleCollet.com> - {3-7}-2.el4.remi
- New key (email change, same ID)

* Sun May 20 2007 Remi Collet <RPMS@FamilleCollet.com> - 7-1.fc7.remi
- F-7 rebuild

* Sat Mar 24 2007 Remi Collet <RPMS@FamilleCollet.com> - 6-1.fc6.remi
- add remi.channel for smart
- add remi.list for apt

* Mon Nov 20 2006 Remi Collet <RPMS@FamilleCollet.com> - 1-2.fc6.remi
- change mirror list (iut-info.ens.univ-reims.fr to iut-info.univ-reims.fr)

* Tue Oct 24 2006 Remi Collet <RPMS@FamilleCollet.com> - 1-1.fc6.remi
- open FC6 repo

* Sun Mar 26 2006 Remi Collet <RPMS@FamilleCollet.com> - 1-1.fc5.remi
- open FC5 repo

* Tue Jan 03 2006  Remi Collet <remi.collet@univ-reims.fr> - 1-1.fc{3,4}.remi
- initial package