1 |
# $Id: smeserver-yum.spec,v 1.2 2016/02/07 12:10:35 vip-ire Exp $ |
# $Id: smeserver-yum.spec,v 1.87 2023/02/27 08:57:26 michel 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.2 |
7 |
%define release 3 |
%define release 4 |
8 |
Version: %{version} |
Version: %{version} |
9 |
Release: %{release}%{?dist} |
Release: %{release}%{?dist} |
10 |
License: GPL |
License: GPL |
11 |
Group: SMEServer/addon |
Group: SMEServer/addon |
12 |
Source: %{name}-%{version}.tar.xz |
Source: %{name}-%{version}.tar.xz |
13 |
Patch0: smeserver-yum-2.6.0.SME10.patch |
Patch0: smeserver-yum-2.6.2-bz12179-smecontribs-enabled.patch |
14 |
|
Patch1: smeserver-yum-2.6.2-bz12171_bz12209_no_reconfigure.patch |
15 |
|
Patch2: smeserver-yum-2.6.2-bz10926-bz12170-bz12173-bz12172.patch |
16 |
|
|
17 |
BuildRoot: /var/tmp/%{name}-%{version}-%{release}-buildroot |
BuildRoot: /var/tmp/%{name}-%{version}-%{release}-buildroot |
18 |
BuildArchitectures: noarch |
BuildArchitectures: noarch |
19 |
Requires: e-smith-formmagick >= 1.4.0-12 |
Requires: e-smith-formmagick >= 1.4.0-12 |
26 |
Provides: check4updates |
Provides: check4updates |
27 |
Obsoletes: rpmdb-CentOS |
Obsoletes: rpmdb-CentOS |
28 |
Requires: yum-plugin-fastestmirror |
Requires: yum-plugin-fastestmirror |
29 |
|
Requires: yum-plugin-priorities |
30 |
Obsoletes: yum-plugin-installonlyn |
Obsoletes: yum-plugin-installonlyn |
31 |
Obsoletes: yum-protect-packages <= 1.1.16 |
Obsoletes: yum-protect-packages <= 1.1.16 |
32 |
|
Requires: yum-plugin-post-transaction-actions |
33 |
Requires: mailx |
Requires: mailx |
34 |
|
Requires: deltarpm |
35 |
|
Requires: yum-cron |
36 |
BuildRequires: e-smith-devtools >= 1.13.1-03 |
BuildRequires: e-smith-devtools >= 1.13.1-03 |
37 |
BuildRequires: python |
BuildRequires: python |
38 |
Conflicts: centos-yumconf |
Conflicts: centos-yumconf |
42 |
|
|
43 |
%prep |
%prep |
44 |
%setup |
%setup |
45 |
|
rm -rf root/var/service/ root/service/ |
46 |
|
rm -rf root/etc/e-smith/db/configuration/force |
47 |
%patch0 -p1 |
%patch0 -p1 |
48 |
|
%patch1 -p1 |
49 |
|
%patch2 -p1 |
50 |
|
|
51 |
%build |
%build |
52 |
perl createlinks |
perl createlinks |
|
ln -s /var/service/yum root/service/yum |
|
53 |
mkdir -p root/etc/yum.smerepos.d |
mkdir -p root/etc/yum.smerepos.d |
54 |
|
|
55 |
%install |
%install |
61 |
--file '/sbin/e-smith/yum' 'attr(0755,root,root)' \ |
--file '/sbin/e-smith/yum' 'attr(0755,root,root)' \ |
62 |
--file '/sbin/e-smith/check4updates' 'attr(0755,root,root)' \ |
--file '/sbin/e-smith/check4updates' 'attr(0755,root,root)' \ |
63 |
--file '/sbin/e-smith/check4contribsupdates' 'attr(0755,root,root)' \ |
--file '/sbin/e-smith/check4contribsupdates' 'attr(0755,root,root)' \ |
64 |
|
--file '/sbin/e-smith/yumdownloadonly' 'attr(0755,root,root)' \ |
65 |
--file '/etc/cron.daily/smeserver-yum' 'attr(0700,root,root)' \ |
--file '/etc/cron.daily/smeserver-yum' 'attr(0700,root,root)' \ |
66 |
--file /var/service/yum/down 'attr(0644,root,root)' \ |
--dir /var/log/yum 'attr(2750,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)' \ |
|
|
--dir /var/log/yum 'attr(2750,smelog,smelog)' \ |
|
67 |
$RPM_BUILD_ROOT > %{name}-%{version}-%{release}-filelist |
$RPM_BUILD_ROOT > %{name}-%{version}-%{release}-filelist |
68 |
|
|
69 |
%clean |
%clean |
73 |
|
|
74 |
%defattr(-,root,root) |
%defattr(-,root,root) |
75 |
|
|
76 |
|
%pre |
77 |
|
if [ $1 -gt 1 ] ; then |
78 |
|
if [ -e /var/service/yum/run ] ; then |
79 |
|
/usr/bin/sv d yum |
80 |
|
/usr/bin/sv d yum/log |
81 |
|
fi |
82 |
|
fi |
83 |
|
|
84 |
|
|
85 |
%changelog |
%changelog |
86 |
|
* Wed Aug 16 2023 Jean-Philippe Pialasse <tests@pialasse.com> 2.6.2-4.sme |
87 |
|
- remove initialize-default-databases and navigation-conf from yum-* events [SME: 12172] |
88 |
|
- fix warning readline() on closed filehandle YUM_STATUS [SME: 12170] |
89 |
|
- fix warning on uninitialized value in concatenation [SME: 12173] |
90 |
|
- fix CSRF time-out during yum update [SME: 10926] |
91 |
|
now 10 minutes for this panel updated on last generation of a page |
92 |
|
|
93 |
|
* Mon Feb 27 2023 Michel Begue <mab974@misouk.com> 2.6.2-3.sme |
94 |
|
- fix reconfigure asked when not needed [SME: 12171] |
95 |
|
- do not show reconfigure button and message if not needed [SME: 12209] |
96 |
|
|
97 |
|
* Tue Nov 22 2022 Jean-Philippe Pialasse <tests@pialasse.com> 2.6.2-2.sme |
98 |
|
- set smecontribs enabled on new install [SME: 12179] |
99 |
|
|
100 |
|
* Mon Jul 11 2022 Jean-Philippe Pialasse <tests@pialasse.com> 2.6.2-1.sme |
101 |
|
- bump version number |
102 |
|
- no reboot for dbus-glib [SME: 12091] |
103 |
|
|
104 |
|
* Tue Jun 14 2022 Jean-Philippe Pialasse <tests@pialasse.com> 2.6.0-64.sme |
105 |
|
- rephrase contrib update message [SME: 11543] |
106 |
|
- move mysqld to mariadb in smeserver plugin [SME: 11921] |
107 |
|
|
108 |
|
* Sun Apr 24 2022 Jean-Philippe Pialasse <tests@pialasse.com> 2.6.0-63.sme |
109 |
|
- remove force AutoInstallUpdates to disabled [SME: 11961] |
110 |
|
|
111 |
|
* Sun Apr 17 2022 Jean-Philippe Pialasse <tests@pialasse.com> 2.6.0-61.sme |
112 |
|
- fix rotate yum.log as not standard location [SME: 11951] |
113 |
|
- remove yum_update_dbs from messages log [SME: 11952] |
114 |
|
|
115 |
|
* Tue Mar 08 2022 Jean-Philippe Pialasse <tests@pialasse.com> 2.6.0-60.sme |
116 |
|
- restart cvm-unix on cvm or bglibs update [SME: 11886] |
117 |
|
|
118 |
|
* Mon Dec 20 2021 Jean-Philippe Pialasse <tests@pialasse.com> 2.6.0-59.sme |
119 |
|
- remove pop3 and pop3s services from plugin [SME: 11808] |
120 |
|
|
121 |
|
* Thu Dec 09 2021 Jean-Philippe Pialasse <tests@pialasse.com> 2.6.0-58.sme |
122 |
|
- fix restarting spamd instead of spamassassin [SME: 11803] |
123 |
|
|
124 |
|
* Fri Dec 03 2021 Brian Read <brianr@bjsystems.co.uk> 2.6.0-57.sme |
125 |
|
- Re-word-reboot-required-message.patch [SME: 11790] |
126 |
|
|
127 |
|
* Sun Nov 21 2021 Jean-Philippe Pialasse <tests@pialasse.com> 2.6.0-56.sme |
128 |
|
- fix wrong qpsmtpd handling [SME: 11768] |
129 |
|
|
130 |
|
* Mon Jun 07 2021 Jean-Philippe Pialasse <tests@pialasse.com> 2.6.0-55.sme |
131 |
|
- add elrepo GPG key [SME: 11625] |
132 |
|
|
133 |
|
* Mon May 31 2021 Jean-Philippe Pialasse <tests@pialasse.com> 2.6.0-54.sme |
134 |
|
- no reboot needed for systemd-python [SME: 11609] |
135 |
|
|
136 |
|
* Tue Mar 30 2021 Jean-Philippe Pialasse <tests@pialasse.com> 2.6.0-53.sme |
137 |
|
- fix services stop on removal [SME: 11510] |
138 |
|
|
139 |
|
* Tue Mar 30 2021 Jean-Philippe Pialasse <tests@pialasse.com> 2.6.0-52.sme |
140 |
|
- run navigation-conf when a panel is installed [SME: 11507] |
141 |
|
|
142 |
|
* Sun Mar 21 2021 Jean-Philippe Pialasse <tests@pialasse.com> 2.6.0-51.sme |
143 |
|
- migrate back to normal CentOS mirrors after el6 EOL [SME: 11477] |
144 |
|
- version 2 with |
145 |
|
deleting yum{eolversion} if for previous release or not yet eol |
146 |
|
better handling of conditions |
147 |
|
|
148 |
|
* Wed Mar 17 2021 Jean-Philippe Pialasse <tests@pialasse.com> 2.6.0-49.sme |
149 |
|
- avoid reboot on removal of smeserver-* rpms [SME: 11458] |
150 |
|
- navigation-conf when a panel is installed |
151 |
|
|
152 |
|
* Wed Feb 24 2021 Jean-Philipe Pialasse <tests@pialasse.com> 2.6.0-47.sme |
153 |
|
- fix wrong path for rsyslog.conf [SME: 11364] |
154 |
|
|
155 |
|
* Sun Feb 21 2021 Jean-Philipe Pialasse <tests@pialasse.com> 2.6.0-46.sme |
156 |
|
- remove noise in yum process "overriding all signals, forcing restart" [SME: 11372] |
157 |
|
|
158 |
|
* Fri Feb 19 2021 Jean-Philipe Pialasse <tests@pialasse.com> 2.6.0-45.sme |
159 |
|
- packages installed logged both in yum.log and message [SME: 11364] |
160 |
|
- set priority to 10 for remi-safe [SME: 11360] |
161 |
|
|
162 |
|
* Mon Feb 15 2021 Jean-Philipe Pialasse <tests@pialasse.com> 2.6.0-44.sme |
163 |
|
- fix poor handling of service adjusting and action order [SME: 11300] |
164 |
|
now a temp event is created |
165 |
|
also better logging, better handling of update vs removal |
166 |
|
|
167 |
|
* Wed Dec 09 2020 Jean-Philipe Pialasse <tests@pialasse.com> 2.6.0-43.sme |
168 |
|
- make yum dbs service fork [SME: 11243] |
169 |
|
now smeserver.py plugin call the service |
170 |
|
yum-modify can use the service restart |
171 |
|
yum.service is its own service, not called by local.service |
172 |
|
|
173 |
|
* Tue Dec 08 2020 Jean-Philipe Pialasse <tests@pialasse.com> 2.6.0-42.sme |
174 |
|
- move yum upate db service to systemd [SME: 11180] |
175 |
|
|
176 |
|
* Sun Dec 06 2020 Jean-Philipe Pialasse <tests@pialasse.com> 2.6.0-41.sme |
177 |
|
- fix -update events not runt on package upgrade [SME: 11184] |
178 |
|
lower noise on forced restart |
179 |
|
|
180 |
|
* Thu Dec 03 2020 Jean-Philipe Pialasse <tests@pialasse.com> 2.6.0-39.sme |
181 |
|
- fix switch to vault BaseURL for CentOS [SME: 11227] |
182 |
|
|
183 |
|
* Mon Nov 16 2020 Jean-Philipe Pialasse <tests@pialasse.com> 2.6.0-38.sme |
184 |
|
- add remi-safe as base repo [SME: 11179] |
185 |
|
- smeserver-yum-update event created [SME: 11168] |
186 |
|
|
187 |
|
* Sun Nov 15 2020 Jean-Philipe Pialasse <tests@pialasse.com> 2.6.0-37.sme |
188 |
|
- fix separate action before template, and after service [SME: 11175] |
189 |
|
run all actions with post-upgrade as default event |
190 |
|
|
191 |
|
* Tue Nov 10 2020 Jean-Philipe Pialasse <tests@pialasse.com> 2.6.0-36.sme |
192 |
|
- fix some templates not expanded [SME: 11121] |
193 |
|
|
194 |
|
* Tue Oct 20 2020 Jean-Philipe Pialasse <tests@pialasse.com> 2.6.0-35.sme |
195 |
|
- fix smeserver.py not executing action because of wrong path [SME: 11047] |
196 |
|
|
197 |
|
* Mon Jun 22 2020 Jean-Philipe Pialasse <tests@pialasse.com> 2.6.0-33.sme |
198 |
|
- fix error when key absent of a dict of smeserver plugin at clean stage [SME: 10931] |
199 |
|
|
200 |
|
* Thu Jan 30 2020 Jean-Philipe Pialasse <tests@pialasse.com> 2.6.0-32.sme |
201 |
|
- avoid missing template error after removal of a rpm [SME: 10846] |
202 |
|
|
203 |
|
* Thu Jan 30 2020 Jean-Philipe Pialasse <tests@pialasse.com> 2.6.0-30.sme |
204 |
|
- restart php-fpm services when needed [SME: 10873] |
205 |
|
|
206 |
|
* Mon Dec 09 2019 Jean-Philipe Pialasse <tests@pialasse.com> 2.6.0-29.sme |
207 |
|
- applying patch [SME: 10690] |
208 |
|
|
209 |
|
* Sun Dec 08 2019 Jean-Philipe Pialasse <tests@pialasse.com> 2.6.0-27.sme |
210 |
|
- fix NameError: global name 'yum_update_dbs' is not defined [SME: 6940] |
211 |
|
|
212 |
|
* Fri Dec 06 2019 Jean-Philipe Pialasse <tests@pialasse.com> 2.6.0-26.sme |
213 |
|
- use yum-cron with autoupdate feature [SME: 10690] |
214 |
|
* use yum-cron for download only or auto update |
215 |
|
* yum-cron.conf templates |
216 |
|
* update lock path |
217 |
|
* settings in server-manager |
218 |
|
* remove yumdownloadonly script and crontab template |
219 |
|
|
220 |
|
* Fri Dec 06 2019 Jean-Philipe Pialasse <tests@pialasse.com> 2.6.0-25.sme |
221 |
|
- fix typo on patch [SME: 10249] |
222 |
|
|
223 |
|
* Wed Dec 04 2019 Jean-Philipe Pialasse <tests@pialasse.com> 2.6.0-24.sme |
224 |
|
- fix header detected as package [SME: 10843] |
225 |
|
- avoid discrepancy between manager, cli and email [SME: 6940] |
226 |
|
* force refresh of metadata before db generation |
227 |
|
* add regeneration of db during check4updates, after yum update/install/remove |
228 |
|
- fix no installed groups file [SME: 118] |
229 |
|
- switch to centos vault after EOL [SME: 10249] |
230 |
|
- update http://mirrorlist.contribs.org/mirrorlist to https://mirrorlist.koozali.org/mirrorlist [SME: 9697] |
231 |
|
- make smecontribs visible [SME: 10716] |
232 |
|
|
233 |
|
* Mon Feb 18 2019 Jean-Philipe Pialasse <tests@pialasse.com> 2.6.0-22.sme |
234 |
|
- add openfusion gpg key [SME: 10742] |
235 |
|
|
236 |
|
* Sat Jan 26 2019 Jean-Philipe Pialasse <tests@pialasse.com> 2.6.0-21.sme |
237 |
|
- updated EOL patch [SME: 10170] |
238 |
|
|
239 |
|
* Wed Jan 23 2019 Jean-Philipe Pialasse <tests@pialasse.com> 2.6.0-19.sme |
240 |
|
- add yum-priority as requirement [SME: 6499] |
241 |
|
add support for plugin priority using property priority im yum_repositories db |
242 |
|
initial priority to 10 for sme*, base and updates repos. |
243 |
|
property yum priority set as enabled as default |
244 |
|
- avoid double check updates for contribs if smecontribs is set to enabled [SME: 9388] |
245 |
|
- update check4contribs email format to match check4updates [SME: 8782] |
246 |
|
- improve yum plugin to avoid reboot [SME: 8705] |
247 |
|
add nut support, add exclusions for -doc, -devel... subpackages |
248 |
|
|
249 |
|
* Tue Jan 22 2019 Jean-Philipe Pialasse <tests@pialasse.com> 2.6.0-18.sme |
250 |
|
- add message to indicate EOL after Jun 30 2024 fix [SME: 10170] |
251 |
|
|
252 |
|
* Mon Nov 06 2017 Jean-Philipe Pialasse <tests@pialasse.com> 2.6.0-17.sme |
253 |
|
- add yum-plugin-post-transaction-actions as requirement [SME: 1100] |
254 |
|
|
255 |
|
* Tue May 02 2017 Jean-Philipe Pialasse <tests@pialasse.com> 2.6.0-16.sme |
256 |
|
- add rpmfusion free el7 RPM GPG KEY [SME: 10263] |
257 |
|
|
258 |
|
* Mon Apr 10 2017 Jean-Philipe Pialasse <tests@pialasse.com> 2.6.0-15.sme |
259 |
|
- avoid reboot for smeserver-locale upgrade [SME: 8705] |
260 |
|
- code by stefano zamboni <zamboni@mind-at-work.it> |
261 |
|
|
262 |
|
* Wed Mar 29 2017 Jean-Philipe Pialasse <tests@pialasse.com> 2.6.0-14.sme |
263 |
|
- correct service names with plugin to avoid reboot [SME: 8705] |
264 |
|
- code by stefano zamboni <zamboni@mind-at-work.it> |
265 |
|
|
266 |
|
* Mon Mar 27 2017 Jean-Philipe Pialasse <tests@pialasse.com> 2.6.0-13.sme |
267 |
|
- fix KeyError with plugin to avoid reboot [SME: 8705] |
268 |
|
- code by stefano zamboni <zamboni@mind-at-work.it> |
269 |
|
|
270 |
|
* Mon Mar 20 2017 Jean-Philipe Pialasse <tests@pialasse.com> 2.6.0-12.sme |
271 |
|
- remove centos contrib repo [SME: 10156] |
272 |
|
|
273 |
|
* Sat Feb 25 2017 Jean-Philipe Pialasse <tests@pialasse.com> 2.6.0-11.sme |
274 |
|
- added centos SCLo SIG gpg rpm signing key [SME: 10119] |
275 |
|
- will allow to install SCL packages directly from smecontribs |
276 |
|
|
277 |
|
* Sat Feb 18 2017 stephane de Labrusse <stephdl@de-labrusse.fr> 2.6.0-10.sme |
278 |
|
- Added smeserver-yum-2.6.0.bz8705.avoidReboot.patch [SME: 8705] |
279 |
|
- code by stefano zamboni <zamboni@mind-at-work.it> |
280 |
|
- Avoid to reboot after the installation of a smeserver-* package |
281 |
|
|
282 |
|
* Fri Jan 06 2017 Jean-Philipe Pialasse <tests@pialasse.com> 2.6.0-8.sme |
283 |
|
- add Remi Collet RPM GPG KEY [SME: 9903] |
284 |
|
|
285 |
|
* Thu Aug 04 2016 stephane de Labrusse <stephdl@de-labrusse.fr> 2.6.0-7.sme |
286 |
|
- Rpm updates can be downloaded during the night [SME: 1502] |
287 |
|
- Added smeserver-yum-2.6.0.bz1502.DownloadOnly.patch |
288 |
|
|
289 |
|
* Mon Aug 1 2016 stephane de Labrusse <stephdl@de-labrusse.fr> 2.6.0-6.sme |
290 |
|
- Deltarpm is now a setting in the yum panel (disabled by default) |
291 |
|
- Added smeserver-yum-2.6.0.bz8834.DeltaRpm.patch [SME: 8834] |
292 |
|
|
293 |
|
* Fri May 27 2016 Jean-Philipe Pialasse <tests@pialasse.com> 2.6.0-5.sme |
294 |
|
- adding Koozali SME10, EPEL7 and Centos7 gpg keys [SME: 9533] |
295 |
|
|
296 |
|
* Thu May 12 2016 Daniel Berteaud <daniel@firewall-services.com> 2.6.0-4.sme |
297 |
|
- Rebuild [SME: 9393] |
298 |
|
|
299 |
* Wed Mar 23 2016 Jean-Philipe Pialasse <tests@pialasse.com> 2.6.0-3.sme |
* Wed Mar 23 2016 Jean-Philipe Pialasse <tests@pialasse.com> 2.6.0-3.sme |
300 |
- yum points now to SME10 mirrors [SME: 9377] |
- yum points now to SME10 mirrors [SME: 9377] |
301 |
- moved changelog at the end of file |
- moved changelog at the end of file |