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