1 |
# $Id: smeserver-yum.spec,v 1.22 2019/01/23 23:29:32 jpp Exp $ |
# $Id: smeserver-yum.spec,v 1.63 2020/12/10 03:14:09 jpp Exp $ |
2 |
|
|
3 |
%define name smeserver-yum |
%define name smeserver-yum |
4 |
Summary: YUM, an rpm updater |
Summary: YUM, an rpm updater |
5 |
Name: %{name} |
Name: %{name} |
6 |
%define version 2.6.0 |
%define version 2.6.0 |
7 |
%define release 19 |
%define release 44 |
8 |
Version: %{version} |
Version: %{version} |
9 |
Release: %{release}%{?dist} |
Release: %{release}%{?dist} |
10 |
License: GPL |
License: GPL |
25 |
Patch12: smeserver-yum-2.6.0-bz10170-SME10eol.patch |
Patch12: smeserver-yum-2.6.0-bz10170-SME10eol.patch |
26 |
Patch13: smeserver-yum-2.6.0.bz6499.yum-plugin-priorities.patch |
Patch13: smeserver-yum-2.6.0.bz6499.yum-plugin-priorities.patch |
27 |
Patch14: smeserver-yum-2.6.0.bz9388.no-double-contribs-check.patch |
Patch14: smeserver-yum-2.6.0.bz9388.no-double-contribs-check.patch |
28 |
|
Patch15: smeserver-yum-2.6.0.bz8782-check4contribs-formatting.patch |
29 |
|
Patch16: smeserver-yum-2.6.0.bz8705.avoidReboot-Nut-reboot-exclusions.patch |
30 |
|
Patch17: smeserver-yum-2.6.0-bz10742-openfusion.patch |
31 |
|
Patch18: smeserver-yum-2.6.0.bz10716.smecontribsvisible.patch |
32 |
|
Patch19: smeserver-yum-2.6.0-bz9697.mirrorlist.patch |
33 |
|
Patch20: smeserver-yum-2.6.0.bz10249.CentOSVault.onEOL.patch |
34 |
|
Patch21: smeserver-yum-2.6.0.bz118.groupmark.patch |
35 |
|
Patch22: smeserver-yum-2.6.0.bz6940.mismatch.btwn.manager.and.cli.patch |
36 |
|
Patch23: smeserver-yum-2.6.0.bz10843.stripheader.patch |
37 |
|
Patch24: smeserver-yum-2.6.0.bz10690.autoinstall.patch |
38 |
|
Patch25: smeserver-yum-2.6.0.bz10873.php-fpm.patch |
39 |
|
Patch26: smeserver-yum-2.6.0.bz10846.templates.patch |
40 |
|
Patch27: smeserver-yum-2.6.0.bz10931.mdadm-in-dict.patch |
41 |
|
Patch28: smeserver-yum-2.6.0-bz11047-executeactions.patch |
42 |
|
Patch29: smeserver-yum-2.6.0-bz11121-expandmetadata.patch |
43 |
|
Patch30: smeserver-yum-2.6.0-bz11175-pre-and-post-actions.patch |
44 |
|
Patch31: smeserver-yum-2.6.0-bz11168-bz11179-remi-safe_and-event.patch |
45 |
|
Patch32: smeserver-yum-2.6.0.bz11227-eolvault.patch |
46 |
|
Patch33: smeserver-yum-2.6.0-bz11184-smeserver.py.patch |
47 |
|
Patch34: smeserver-yum-2.6.0-bz11180-yum-dbupdate-systemd.patch |
48 |
|
Patch35: smeserver-yum-2.6.0-bz11243-yum_update_dbs-fork-service.patch |
49 |
|
Patch36: smeserver-yum-2.6.0-bz11300-improve-postupdate-events.patch |
50 |
|
|
51 |
BuildRoot: /var/tmp/%{name}-%{version}-%{release}-buildroot |
BuildRoot: /var/tmp/%{name}-%{version}-%{release}-buildroot |
52 |
BuildArchitectures: noarch |
BuildArchitectures: noarch |
66 |
Requires: yum-plugin-post-transaction-actions |
Requires: yum-plugin-post-transaction-actions |
67 |
Requires: mailx |
Requires: mailx |
68 |
Requires: deltarpm |
Requires: deltarpm |
69 |
|
Requires: yum-cron |
70 |
BuildRequires: e-smith-devtools >= 1.13.1-03 |
BuildRequires: e-smith-devtools >= 1.13.1-03 |
71 |
BuildRequires: python |
BuildRequires: python |
72 |
Conflicts: centos-yumconf |
Conflicts: centos-yumconf |
91 |
%patch12 -p1 |
%patch12 -p1 |
92 |
%patch13 -p1 |
%patch13 -p1 |
93 |
%patch14 -p1 |
%patch14 -p1 |
94 |
|
%patch15 -p1 |
95 |
|
%patch16 -p1 |
96 |
|
%patch17 -p1 |
97 |
|
%patch18 -p1 |
98 |
|
%patch19 -p1 |
99 |
|
%patch20 -p1 |
100 |
|
%patch21 -p1 |
101 |
|
%patch22 -p1 |
102 |
|
%patch23 -p1 |
103 |
|
%patch24 -p1 |
104 |
|
%patch25 -p1 |
105 |
|
%patch26 -p1 |
106 |
|
%patch27 -p1 |
107 |
|
%patch28 -p1 |
108 |
|
%patch29 -p1 |
109 |
|
%patch30 -p1 |
110 |
|
%patch31 -p1 |
111 |
|
%patch32 -p1 |
112 |
|
%patch33 -p1 |
113 |
|
%patch34 -p1 |
114 |
|
rm -rf root/var/service/ root/service/ |
115 |
|
%patch35 -p1 |
116 |
|
%patch36 -p1 |
117 |
|
|
118 |
%build |
%build |
119 |
perl createlinks |
perl createlinks |
|
ln -s /var/service/yum root/service/yum |
|
120 |
mkdir -p root/etc/yum.smerepos.d |
mkdir -p root/etc/yum.smerepos.d |
121 |
|
|
122 |
%install |
%install |
130 |
--file '/sbin/e-smith/check4contribsupdates' 'attr(0755,root,root)' \ |
--file '/sbin/e-smith/check4contribsupdates' 'attr(0755,root,root)' \ |
131 |
--file '/sbin/e-smith/yumdownloadonly' 'attr(0755,root,root)' \ |
--file '/sbin/e-smith/yumdownloadonly' 'attr(0755,root,root)' \ |
132 |
--file '/etc/cron.daily/smeserver-yum' 'attr(0700,root,root)' \ |
--file '/etc/cron.daily/smeserver-yum' 'attr(0700,root,root)' \ |
|
--file /var/service/yum/down 'attr(0644,root,root)' \ |
|
|
--file /var/service/yum/run 'attr(0755,root,root)' \ |
|
|
--dir /var/service/yum/log 'attr(0755,root,root)' \ |
|
|
--dir /var/service/yum/log/supervise 'attr(0700,root,root)' \ |
|
|
--dir /var/service/yum/supervise 'attr(0700,root,root)' \ |
|
|
--file /var/service/yum/log/run 'attr(0755,root,root)' \ |
|
133 |
--dir /var/log/yum 'attr(2750,smelog,smelog)' \ |
--dir /var/log/yum 'attr(2750,smelog,smelog)' \ |
134 |
$RPM_BUILD_ROOT > %{name}-%{version}-%{release}-filelist |
$RPM_BUILD_ROOT > %{name}-%{version}-%{release}-filelist |
135 |
|
|
140 |
|
|
141 |
%defattr(-,root,root) |
%defattr(-,root,root) |
142 |
|
|
143 |
|
%pre |
144 |
|
if [ $1 -gt 1 ] ; then |
145 |
|
if [ -e /var/service/yum/run ] ; then |
146 |
|
/usr/bin/sv d yum |
147 |
|
/usr/bin/sv d yum/log |
148 |
|
fi |
149 |
|
fi |
150 |
|
|
151 |
|
|
152 |
%changelog |
%changelog |
153 |
|
* Mon Feb 15 2021 Jean-Philipe Pialasse <tests@pialasse.com> 2.6.0-44.sme |
154 |
|
- fix poor handling of service adjusting and action order [SME: 11300] |
155 |
|
now a temp event is created |
156 |
|
also better logging, better handling of update vs removal |
157 |
|
|
158 |
|
* Wed Dec 09 2020 Jean-Philipe Pialasse <tests@pialasse.com> 2.6.0-43.sme |
159 |
|
- make yum dbs service fork [SME: 11243] |
160 |
|
now smeserver.py plugin call the service |
161 |
|
yum-modify can use the service restart |
162 |
|
yum.service is its own service, not called by local.service |
163 |
|
|
164 |
|
* Tue Dec 08 2020 Jean-Philipe Pialasse <tests@pialasse.com> 2.6.0-42.sme |
165 |
|
- move yum upate db service to systemd [SME: 11180] |
166 |
|
|
167 |
|
* Sun Dec 06 2020 Jean-Philipe Pialasse <tests@pialasse.com> 2.6.0-41.sme |
168 |
|
- fix -update events not runt on package upgrade [SME: 11184] |
169 |
|
lower noise on forced restart |
170 |
|
|
171 |
|
* Thu Dec 03 2020 Jean-Philipe Pialasse <tests@pialasse.com> 2.6.0-39.sme |
172 |
|
- fix switch to vault BaseURL for CentOS [SME: 11227] |
173 |
|
|
174 |
|
* Mon Nov 16 2020 Jean-Philipe Pialasse <tests@pialasse.com> 2.6.0-38.sme |
175 |
|
- add remi-safe as base repo [SME: 11179] |
176 |
|
- smeserver-yum-update event created [SME: 11168] |
177 |
|
|
178 |
|
* Sun Nov 15 2020 Jean-Philipe Pialasse <tests@pialasse.com> 2.6.0-37.sme |
179 |
|
- fix separate action before template, and after service [SME: 11175] |
180 |
|
run all actions with post-upgrade as default event |
181 |
|
|
182 |
|
* Tue Nov 10 2020 Jean-Philipe Pialasse <tests@pialasse.com> 2.6.0-36.sme |
183 |
|
- fix some templates not expanded [SME: 11121] |
184 |
|
|
185 |
|
* Tue Oct 20 2020 Jean-Philipe Pialasse <tests@pialasse.com> 2.6.0-35.sme |
186 |
|
- fix smeserver.py not executing action because of wrong path [SME: 11047] |
187 |
|
|
188 |
|
* Mon Jun 22 2020 Jean-Philipe Pialasse <tests@pialasse.com> 2.6.0-33.sme |
189 |
|
- fix error when key absent of a dict of smeserver plugin at clean stage [SME: 10931] |
190 |
|
|
191 |
|
* Thu Jan 30 2020 Jean-Philipe Pialasse <tests@pialasse.com> 2.6.0-32.sme |
192 |
|
- avoid missing template error after removal of a rpm [SME: 10846] |
193 |
|
|
194 |
|
* Thu Jan 30 2020 Jean-Philipe Pialasse <tests@pialasse.com> 2.6.0-30.sme |
195 |
|
- restart php-fpm services when needed [SME: 10873] |
196 |
|
|
197 |
|
* Mon Dec 09 2019 Jean-Philipe Pialasse <tests@pialasse.com> 2.6.0-29.sme |
198 |
|
- applying patch [SME: 10690] |
199 |
|
|
200 |
|
* Sun Dec 08 2019 Jean-Philipe Pialasse <tests@pialasse.com> 2.6.0-27.sme |
201 |
|
- fix NameError: global name 'yum_update_dbs' is not defined [SME: 6940] |
202 |
|
|
203 |
|
* Fri Dec 06 2019 Jean-Philipe Pialasse <tests@pialasse.com> 2.6.0-26.sme |
204 |
|
- use yum-cron with autoupdate feature [SME: 10690] |
205 |
|
* use yum-cron for download only or auto update |
206 |
|
* yum-cron.conf templates |
207 |
|
* update lock path |
208 |
|
* settings in server-manager |
209 |
|
* remove yumdownloadonly script and crontab template |
210 |
|
|
211 |
|
* Fri Dec 06 2019 Jean-Philipe Pialasse <tests@pialasse.com> 2.6.0-25.sme |
212 |
|
- fix typo on patch [SME: 10249] |
213 |
|
|
214 |
|
* Wed Dec 04 2019 Jean-Philipe Pialasse <tests@pialasse.com> 2.6.0-24.sme |
215 |
|
- fix header detected as package [SME: 10843] |
216 |
|
- avoid discrepancy between manager, cli and email [SME: 6940] |
217 |
|
* force refresh of metadata before db generation |
218 |
|
* add regeneration of db during check4updates, after yum update/install/remove |
219 |
|
- fix no installed groups file [SME: 118] |
220 |
|
- switch to centos vault after EOL [SME: 10249] |
221 |
|
- update http://mirrorlist.contribs.org/mirrorlist to https://mirrorlist.koozali.org/mirrorlist [SME: 9697] |
222 |
|
- make smecontribs visible [SME: 10716] |
223 |
|
|
224 |
|
* Mon Feb 18 2019 Jean-Philipe Pialasse <tests@pialasse.com> 2.6.0-22.sme |
225 |
|
- add openfusion gpg key [SME: 10742] |
226 |
|
|
227 |
|
* Sat Jan 26 2019 Jean-Philipe Pialasse <tests@pialasse.com> 2.6.0-21.sme |
228 |
|
- updated EOL patch [SME: 10170] |
229 |
|
|
230 |
* Wed Jan 23 2019 Jean-Philipe Pialasse <tests@pialasse.com> 2.6.0-19.sme |
* Wed Jan 23 2019 Jean-Philipe Pialasse <tests@pialasse.com> 2.6.0-19.sme |
231 |
- add yum-priority as requirement [SME: 6499] |
- add yum-priority as requirement [SME: 6499] |
232 |
add support for plugin priority using property priority im yum_repositories db |
add support for plugin priority using property priority im yum_repositories db |
233 |
initial priority to 10 for sme*, base and updates repos. |
initial priority to 10 for sme*, base and updates repos. |
234 |
property yum priority set as enabled as default |
property yum priority set as enabled as default |
235 |
- avoid double check updates for contribs if smecontribs is set to enabled [SME: 9388] |
- avoid double check updates for contribs if smecontribs is set to enabled [SME: 9388] |
236 |
|
- update check4contribs email format to match check4updates [SME: 8782] |
237 |
|
- improve yum plugin to avoid reboot [SME: 8705] |
238 |
|
add nut support, add exclusions for -doc, -devel... subpackages |
239 |
|
|
240 |
* Tue Jan 22 2019 Jean-Philipe Pialasse <tests@pialasse.com> 2.6.0-18.sme |
* Tue Jan 22 2019 Jean-Philipe Pialasse <tests@pialasse.com> 2.6.0-18.sme |
241 |
- add message to indicate EOL after Jun 30 2024 fix [SME: 10170] |
- add message to indicate EOL after Jun 30 2024 fix [SME: 10170] |