1 |
# $Id: smeserver-yum.spec,v 1.29 2019/02/19 01:51:55 jpp Exp $ |
# $Id: smeserver-yum.spec,v 1.86 2022/11/22 19:39: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.2 |
7 |
%define release 23 |
%define release 3 |
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.0.SME10CentOS7EPEL7Keys.rpm |
Patch1: smeserver-yum-2.6.2-bz12171_bz12209_no_reconfigure.patch |
|
Patch2: smeserver-yum-2.6.0.bz8834.DeltaRpm.patch |
|
|
Patch3: smeserver-yum-2.6.0.bz1502.DownloadOnly.patch |
|
|
Patch4: smeserver-yum-2.6.0.bz9903.remiGPG.patch |
|
|
Patch5: smeserver-yum-2.6.0.bz8705.avoidReboot.patch |
|
|
Patch6: smeserver-yum-2.6.0.bz10119.scloGPGkey.patch |
|
|
Patch7: smeserver-yum-2.6.0.bz10156.remContrib.patch |
|
|
Patch8: smeserver-yum-2.6.0.bz8705.avoidReboot-fixKeyError.patch |
|
|
Patch9: smeserver-yum-2.6.0.bz8705.avoidReboot-service-names.patch |
|
|
Patch10: smeserver-yum-2.6.0.bz8705.smeserver-locale.avoidreboot.patch |
|
|
Patch11: smeserver-yum-2.6.0.bz10263.rpmfusionfreeEL7.patch |
|
|
Patch12: smeserver-yum-2.6.0-bz10170-SME10eol.patch |
|
|
Patch13: smeserver-yum-2.6.0.bz6499.yum-plugin-priorities.patch |
|
|
Patch14: smeserver-yum-2.6.0.bz9388.no-double-contribs-check.patch |
|
|
Patch15: smeserver-yum-2.6.0.bz8782-check4contribs-formatting.patch |
|
|
Patch16: smeserver-yum-2.6.0.bz8705.avoidReboot-Nut-reboot-exclusions.patch |
|
|
Patch17: smeserver-yum-2.6.0-bz10742-openfusion.patch |
|
|
Patch18:smeserver-yum-2.6.0.bz10716.smecontribsvisible.patch |
|
|
|
|
|
|
|
15 |
|
|
16 |
BuildRoot: /var/tmp/%{name}-%{version}-%{release}-buildroot |
BuildRoot: /var/tmp/%{name}-%{version}-%{release}-buildroot |
17 |
BuildArchitectures: noarch |
BuildArchitectures: noarch |
41 |
|
|
42 |
%prep |
%prep |
43 |
%setup |
%setup |
44 |
|
rm -rf root/var/service/ root/service/ |
45 |
|
rm -rf root/etc/e-smith/db/configuration/force |
46 |
%patch0 -p1 |
%patch0 -p1 |
47 |
%patch1 -p1 |
%patch1 -p1 |
|
%patch2 -p1 |
|
|
%patch3 -p1 |
|
|
%patch4 -p1 |
|
|
%patch5 -p1 |
|
|
%patch6 -p1 |
|
|
%patch7 -p1 |
|
|
%patch8 -p1 |
|
|
%patch9 -p1 |
|
|
%patch10 -p1 |
|
|
%patch11 -p1 |
|
|
%patch12 -p1 |
|
|
%patch13 -p1 |
|
|
%patch14 -p1 |
|
|
%patch15 -p1 |
|
|
%patch16 -p1 |
|
|
%patch17 -p1 |
|
|
%patch18 -p1 |
|
|
|
|
48 |
|
|
49 |
%build |
%build |
50 |
perl createlinks |
perl createlinks |
|
ln -s /var/service/yum root/service/yum |
|
51 |
mkdir -p root/etc/yum.smerepos.d |
mkdir -p root/etc/yum.smerepos.d |
52 |
|
|
53 |
%install |
%install |
61 |
--file '/sbin/e-smith/check4contribsupdates' 'attr(0755,root,root)' \ |
--file '/sbin/e-smith/check4contribsupdates' 'attr(0755,root,root)' \ |
62 |
--file '/sbin/e-smith/yumdownloadonly' 'attr(0755,root,root)' \ |
--file '/sbin/e-smith/yumdownloadonly' 'attr(0755,root,root)' \ |
63 |
--file '/etc/cron.daily/smeserver-yum' 'attr(0700,root,root)' \ |
--file '/etc/cron.daily/smeserver-yum' 'attr(0700,root,root)' \ |
64 |
--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)' \ |
|
65 |
$RPM_BUILD_ROOT > %{name}-%{version}-%{release}-filelist |
$RPM_BUILD_ROOT > %{name}-%{version}-%{release}-filelist |
66 |
|
|
67 |
%clean |
%clean |
71 |
|
|
72 |
%defattr(-,root,root) |
%defattr(-,root,root) |
73 |
|
|
74 |
|
%pre |
75 |
|
if [ $1 -gt 1 ] ; then |
76 |
|
if [ -e /var/service/yum/run ] ; then |
77 |
|
/usr/bin/sv d yum |
78 |
|
/usr/bin/sv d yum/log |
79 |
|
fi |
80 |
|
fi |
81 |
|
|
82 |
|
|
83 |
%changelog |
%changelog |
84 |
* Wed Dec 04 2019 Jean-Philipe Pialasse <tests@pialasse.com> 2.6.0-23.sme |
* Mon Feb 27 2023 Michel Begue <mab974@misouk.com> 2.6.2-3.sme |
85 |
- implement yum-cron [SME: 10690] |
- fix reconfigure asked when not needed [SME: 12171] |
86 |
* use yum-cron for download only (TODO) |
- do not show reconfigure button and message if not needed [SME: 12209] |
87 |
* yum-cron templates (TODO) |
|
88 |
* update lock path (TODO) |
* Tue Nov 22 2022 Jean-Philippe Pialasse <tests@pialasse.com> 2.6.2-2.sme |
89 |
* setting in server-manager (TODO) |
- set smecontribs enabled on new install [SME: 12179] |
90 |
|
|
91 |
|
* Mon Jul 11 2022 Jean-Philippe Pialasse <tests@pialasse.com> 2.6.2-1.sme |
92 |
|
- bump version number |
93 |
|
- no reboot for dbus-glib [SME: 12091] |
94 |
|
|
95 |
|
* Tue Jun 14 2022 Jean-Philippe Pialasse <tests@pialasse.com> 2.6.0-64.sme |
96 |
|
- rephrase contrib update message [SME: 11543] |
97 |
|
- move mysqld to mariadb in smeserver plugin [SME: 11921] |
98 |
|
|
99 |
|
* Sun Apr 24 2022 Jean-Philippe Pialasse <tests@pialasse.com> 2.6.0-63.sme |
100 |
|
- remove force AutoInstallUpdates to disabled [SME: 11961] |
101 |
|
|
102 |
|
* Sun Apr 17 2022 Jean-Philippe Pialasse <tests@pialasse.com> 2.6.0-61.sme |
103 |
|
- fix rotate yum.log as not standard location [SME: 11951] |
104 |
|
- remove yum_update_dbs from messages log [SME: 11952] |
105 |
|
|
106 |
|
* Tue Mar 08 2022 Jean-Philippe Pialasse <tests@pialasse.com> 2.6.0-60.sme |
107 |
|
- restart cvm-unix on cvm or bglibs update [SME: 11886] |
108 |
|
|
109 |
|
* Mon Dec 20 2021 Jean-Philippe Pialasse <tests@pialasse.com> 2.6.0-59.sme |
110 |
|
- remove pop3 and pop3s services from plugin [SME: 11808] |
111 |
|
|
112 |
|
* Thu Dec 09 2021 Jean-Philippe Pialasse <tests@pialasse.com> 2.6.0-58.sme |
113 |
|
- fix restarting spamd instead of spamassassin [SME: 11803] |
114 |
|
|
115 |
|
* Fri Dec 03 2021 Brian Read <brianr@bjsystems.co.uk> 2.6.0-57.sme |
116 |
|
- Re-word-reboot-required-message.patch [SME: 11790] |
117 |
|
|
118 |
|
* Sun Nov 21 2021 Jean-Philippe Pialasse <tests@pialasse.com> 2.6.0-56.sme |
119 |
|
- fix wrong qpsmtpd handling [SME: 11768] |
120 |
|
|
121 |
|
* Mon Jun 07 2021 Jean-Philippe Pialasse <tests@pialasse.com> 2.6.0-55.sme |
122 |
|
- add elrepo GPG key [SME: 11625] |
123 |
|
|
124 |
|
* Mon May 31 2021 Jean-Philippe Pialasse <tests@pialasse.com> 2.6.0-54.sme |
125 |
|
- no reboot needed for systemd-python [SME: 11609] |
126 |
|
|
127 |
|
* Tue Mar 30 2021 Jean-Philippe Pialasse <tests@pialasse.com> 2.6.0-53.sme |
128 |
|
- fix services stop on removal [SME: 11510] |
129 |
|
|
130 |
|
* Tue Mar 30 2021 Jean-Philippe Pialasse <tests@pialasse.com> 2.6.0-52.sme |
131 |
|
- run navigation-conf when a panel is installed [SME: 11507] |
132 |
|
|
133 |
|
* Sun Mar 21 2021 Jean-Philippe Pialasse <tests@pialasse.com> 2.6.0-51.sme |
134 |
|
- migrate back to normal CentOS mirrors after el6 EOL [SME: 11477] |
135 |
|
- version 2 with |
136 |
|
deleting yum{eolversion} if for previous release or not yet eol |
137 |
|
better handling of conditions |
138 |
|
|
139 |
|
* Wed Mar 17 2021 Jean-Philippe Pialasse <tests@pialasse.com> 2.6.0-49.sme |
140 |
|
- avoid reboot on removal of smeserver-* rpms [SME: 11458] |
141 |
|
- navigation-conf when a panel is installed |
142 |
|
|
143 |
|
* Wed Feb 24 2021 Jean-Philipe Pialasse <tests@pialasse.com> 2.6.0-47.sme |
144 |
|
- fix wrong path for rsyslog.conf [SME: 11364] |
145 |
|
|
146 |
|
* Sun Feb 21 2021 Jean-Philipe Pialasse <tests@pialasse.com> 2.6.0-46.sme |
147 |
|
- remove noise in yum process "overriding all signals, forcing restart" [SME: 11372] |
148 |
|
|
149 |
|
* Fri Feb 19 2021 Jean-Philipe Pialasse <tests@pialasse.com> 2.6.0-45.sme |
150 |
|
- packages installed logged both in yum.log and message [SME: 11364] |
151 |
|
- set priority to 10 for remi-safe [SME: 11360] |
152 |
|
|
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] |
- avoid discrepancy between manager, cli and email [SME: 6940] |
217 |
* force refresh of metadata before db generation (TODO) |
* force refresh of metadata before db generation |
218 |
* add regeneration of db after... (TODO) |
* add regeneration of db during check4updates, after yum update/install/remove |
219 |
- fix There is no installed groups file [SME: 118] (TODO) |
- fix no installed groups file [SME: 118] |
220 |
- switch to centos vault after EOL [SME: 10249] (TODO) |
- switch to centos vault after EOL [SME: 10249] |
221 |
- update http://mirrorlist.contribs.org/mirrorlist to https://mirrorlist.koozali.org/mirrorlist [SME: 9697] (TODO) |
- update http://mirrorlist.contribs.org/mirrorlist to https://mirrorlist.koozali.org/mirrorlist [SME: 9697] |
222 |
- make smecontribs visible [SME: 10716] |
- make smecontribs visible [SME: 10716] |
223 |
|
|
224 |
* Mon Feb 18 2019 Jean-Philipe Pialasse <tests@pialasse.com> 2.6.0-22.sme |
* Mon Feb 18 2019 Jean-Philipe Pialasse <tests@pialasse.com> 2.6.0-22.sme |