1 |
# $Id: smeserver-yum.spec,v 1.14 2016/01/13 10:55:43 vip-ire Exp $ |
# $Id: smeserver-yum.spec,v 1.21 2019/01/23 23:28:56 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 1 |
%define release 19 |
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 |
14 |
|
Patch1: smeserver-yum-2.6.0.SME10CentOS7EPEL7Keys.rpm |
15 |
|
Patch2: smeserver-yum-2.6.0.bz8834.DeltaRpm.patch |
16 |
|
Patch3: smeserver-yum-2.6.0.bz1502.DownloadOnly.patch |
17 |
|
Patch4: smeserver-yum-2.6.0.bz9903.remiGPG.patch |
18 |
|
Patch5: smeserver-yum-2.6.0.bz8705.avoidReboot.patch |
19 |
|
Patch6: smeserver-yum-2.6.0.bz10119.scloGPGkey.patch |
20 |
|
Patch7: smeserver-yum-2.6.0.bz10156.remContrib.patch |
21 |
|
Patch8: smeserver-yum-2.6.0.bz8705.avoidReboot-fixKeyError.patch |
22 |
|
Patch9: smeserver-yum-2.6.0.bz8705.avoidReboot-service-names.patch |
23 |
|
Patch10: smeserver-yum-2.6.0.bz8705.smeserver-locale.avoidreboot.patch |
24 |
|
Patch11: smeserver-yum-2.6.0.bz10263.rpmfusionfreeEL7.patch |
25 |
|
Patch12: smeserver-yum-2.6.0-bz10170-SME10eol.patch |
26 |
|
Patch13: smeserver-yum-2.6.0.bz6499.yum-plugin-priorities.patch |
27 |
|
|
28 |
BuildRoot: /var/tmp/%{name}-%{version}-%{release}-buildroot |
BuildRoot: /var/tmp/%{name}-%{version}-%{release}-buildroot |
29 |
BuildArchitectures: noarch |
BuildArchitectures: noarch |
30 |
Requires: e-smith-formmagick >= 1.4.0-12 |
Requires: e-smith-formmagick >= 1.4.0-12 |
37 |
Provides: check4updates |
Provides: check4updates |
38 |
Obsoletes: rpmdb-CentOS |
Obsoletes: rpmdb-CentOS |
39 |
Requires: yum-plugin-fastestmirror |
Requires: yum-plugin-fastestmirror |
40 |
|
Requires: yum-plugin-priorities |
41 |
Obsoletes: yum-plugin-installonlyn |
Obsoletes: yum-plugin-installonlyn |
42 |
Obsoletes: yum-protect-packages <= 1.1.16 |
Obsoletes: yum-protect-packages <= 1.1.16 |
43 |
|
Requires: yum-plugin-post-transaction-actions |
44 |
Requires: mailx |
Requires: mailx |
45 |
|
Requires: deltarpm |
46 |
BuildRequires: e-smith-devtools >= 1.13.1-03 |
BuildRequires: e-smith-devtools >= 1.13.1-03 |
47 |
|
BuildRequires: python |
48 |
Conflicts: centos-yumconf |
Conflicts: centos-yumconf |
49 |
AutoReqProv: no |
AutoReqProv: no |
50 |
%description |
%description |
51 |
%name is an implementation of http://linux.duke.edu/projects/yum on SME Server |
%name is an implementation of http://linux.duke.edu/projects/yum on SME Server |
52 |
|
|
53 |
|
%prep |
54 |
|
%setup |
55 |
|
%patch0 -p1 |
56 |
|
%patch1 -p1 |
57 |
|
%patch2 -p1 |
58 |
|
%patch3 -p1 |
59 |
|
%patch4 -p1 |
60 |
|
%patch5 -p1 |
61 |
|
%patch6 -p1 |
62 |
|
%patch7 -p1 |
63 |
|
%patch8 -p1 |
64 |
|
%patch9 -p1 |
65 |
|
%patch10 -p1 |
66 |
|
%patch11 -p1 |
67 |
|
%patch12 -p1 |
68 |
|
%patch13 -p1 |
69 |
|
|
70 |
|
%build |
71 |
|
perl createlinks |
72 |
|
ln -s /var/service/yum root/service/yum |
73 |
|
mkdir -p root/etc/yum.smerepos.d |
74 |
|
|
75 |
|
%install |
76 |
|
/bin/rm -rf $RPM_BUILD_ROOT |
77 |
|
(cd root ; /usr/bin/find . -depth -print | /bin/cpio -dump $RPM_BUILD_ROOT) |
78 |
|
/bin/rm -f %{name}-%{version}-filelist |
79 |
|
/sbin/e-smith/genfilelist \ |
80 |
|
--file '/sbin/e-smith/yum_update_dbs' 'attr(0700,root,root)' \ |
81 |
|
--file '/sbin/e-smith/yum' 'attr(0755,root,root)' \ |
82 |
|
--file '/sbin/e-smith/check4updates' 'attr(0755,root,root)' \ |
83 |
|
--file '/sbin/e-smith/check4contribsupdates' 'attr(0755,root,root)' \ |
84 |
|
--file '/sbin/e-smith/yumdownloadonly' 'attr(0755,root,root)' \ |
85 |
|
--file '/etc/cron.daily/smeserver-yum' 'attr(0700,root,root)' \ |
86 |
|
--file /var/service/yum/down 'attr(0644,root,root)' \ |
87 |
|
--file /var/service/yum/run 'attr(0755,root,root)' \ |
88 |
|
--dir /var/service/yum/log 'attr(0755,root,root)' \ |
89 |
|
--dir /var/service/yum/log/supervise 'attr(0700,root,root)' \ |
90 |
|
--dir /var/service/yum/supervise 'attr(0700,root,root)' \ |
91 |
|
--file /var/service/yum/log/run 'attr(0755,root,root)' \ |
92 |
|
--dir /var/log/yum 'attr(2750,smelog,smelog)' \ |
93 |
|
$RPM_BUILD_ROOT > %{name}-%{version}-%{release}-filelist |
94 |
|
|
95 |
|
%clean |
96 |
|
/bin/rm -rf $RPM_BUILD_ROOT |
97 |
|
|
98 |
|
%files -f %{name}-%{version}-%{release}-filelist |
99 |
|
|
100 |
|
%defattr(-,root,root) |
101 |
|
|
102 |
|
|
103 |
%changelog |
%changelog |
104 |
|
* Wed Jan 23 2019 Jean-Philipe Pialasse <tests@pialasse.com> 2.6.0-19.sme |
105 |
|
- add yum-priority as requirement [SME: 6499] |
106 |
|
add support for plugin priority using property priority im yum_repositories db |
107 |
|
initial priority to 10 for sme*, base and updates repos. |
108 |
|
property yum priority set as enabled as default |
109 |
|
|
110 |
|
* Tue Jan 22 2019 Jean-Philipe Pialasse <tests@pialasse.com> 2.6.0-18.sme |
111 |
|
- add message to indicate EOL after Jun 30 2024 fix [SME: 10170] |
112 |
|
|
113 |
|
* Mon Nov 06 2017 Jean-Philipe Pialasse <tests@pialasse.com> 2.6.0-17.sme |
114 |
|
- add yum-plugin-post-transaction-actions as requirement [SME: 1100] |
115 |
|
|
116 |
|
* Tue May 02 2017 Jean-Philipe Pialasse <tests@pialasse.com> 2.6.0-16.sme |
117 |
|
- add rpmfusion free el7 RPM GPG KEY [SME: 10263] |
118 |
|
|
119 |
|
* Mon Apr 10 2017 Jean-Philipe Pialasse <tests@pialasse.com> 2.6.0-15.sme |
120 |
|
- avoid reboot for smeserver-locale upgrade [SME: 8705] |
121 |
|
- code by stefano zamboni <zamboni@mind-at-work.it> |
122 |
|
|
123 |
|
* Wed Mar 29 2017 Jean-Philipe Pialasse <tests@pialasse.com> 2.6.0-14.sme |
124 |
|
- correct service names with plugin to avoid reboot [SME: 8705] |
125 |
|
- code by stefano zamboni <zamboni@mind-at-work.it> |
126 |
|
|
127 |
|
* Mon Mar 27 2017 Jean-Philipe Pialasse <tests@pialasse.com> 2.6.0-13.sme |
128 |
|
- fix KeyError with plugin to avoid reboot [SME: 8705] |
129 |
|
- code by stefano zamboni <zamboni@mind-at-work.it> |
130 |
|
|
131 |
|
* Mon Mar 20 2017 Jean-Philipe Pialasse <tests@pialasse.com> 2.6.0-12.sme |
132 |
|
- remove centos contrib repo [SME: 10156] |
133 |
|
|
134 |
|
* Sat Feb 25 2017 Jean-Philipe Pialasse <tests@pialasse.com> 2.6.0-11.sme |
135 |
|
- added centos SCLo SIG gpg rpm signing key [SME: 10119] |
136 |
|
- will allow to install SCL packages directly from smecontribs |
137 |
|
|
138 |
|
* Sat Feb 18 2017 stephane de Labrusse <stephdl@de-labrusse.fr> 2.6.0-10.sme |
139 |
|
- Added smeserver-yum-2.6.0.bz8705.avoidReboot.patch [SME: 8705] |
140 |
|
- code by stefano zamboni <zamboni@mind-at-work.it> |
141 |
|
- Avoid to reboot after the installation of a smeserver-* package |
142 |
|
|
143 |
|
* Fri Jan 06 2017 Jean-Philipe Pialasse <tests@pialasse.com> 2.6.0-8.sme |
144 |
|
- add Remi Collet RPM GPG KEY [SME: 9903] |
145 |
|
|
146 |
|
* Thu Aug 04 2016 stephane de Labrusse <stephdl@de-labrusse.fr> 2.6.0-7.sme |
147 |
|
- Rpm updates can be downloaded during the night [SME: 1502] |
148 |
|
- Added smeserver-yum-2.6.0.bz1502.DownloadOnly.patch |
149 |
|
|
150 |
|
* Mon Aug 1 2016 stephane de Labrusse <stephdl@de-labrusse.fr> 2.6.0-6.sme |
151 |
|
- Deltarpm is now a setting in the yum panel (disabled by default) |
152 |
|
- Added smeserver-yum-2.6.0.bz8834.DeltaRpm.patch [SME: 8834] |
153 |
|
|
154 |
|
* Fri May 27 2016 Jean-Philipe Pialasse <tests@pialasse.com> 2.6.0-5.sme |
155 |
|
- adding Koozali SME10, EPEL7 and Centos7 gpg keys [SME: 9533] |
156 |
|
|
157 |
|
* Thu May 12 2016 Daniel Berteaud <daniel@firewall-services.com> 2.6.0-4.sme |
158 |
|
- Rebuild [SME: 9393] |
159 |
|
|
160 |
|
* Wed Mar 23 2016 Jean-Philipe Pialasse <tests@pialasse.com> 2.6.0-3.sme |
161 |
|
- yum points now to SME10 mirrors [SME: 9377] |
162 |
|
- moved changelog at the end of file |
163 |
|
- Eliminated rpmbuild "bogus date" warnings due to inconsistent weekday, |
164 |
|
by assuming the date is correct and changing the weekday. |
165 |
|
Fri May 31 2005 --> Fri May 27 2005 or Tue May 31 2005 or Fri Jun 03 2005 or .... |
166 |
|
Fri Nov 16 2006 --> Fri Nov 10 2006 or Thu Nov 16 2006 or Fri Nov 17 2006 or .... |
167 |
|
Fri Nov 23 2006 --> Fri Nov 17 2006 or Thu Nov 23 2006 or Fri Nov 24 2006 or .... |
168 |
|
|
169 |
|
|
170 |
|
* Sun Feb 7 2016 Daniel Berteaud <daniel@firewall-services.com> 2.6.0-2.sme |
171 |
|
- Add python to BuildReq so brp-python-bytecode compiles sme yum plugin |
172 |
|
[SME: 9229] |
173 |
|
|
174 |
* Sat Feb 06 2016 stephane de Labrusse <stephdl@de-labrusse.fr> 2.6.0-1.sme |
* Sat Feb 06 2016 stephane de Labrusse <stephdl@de-labrusse.fr> 2.6.0-1.sme |
175 |
- Initial release to sme10 |
- Initial release to sme10 |
176 |
|
|
404 |
* Wed Nov 29 2006 Gordon Rowell <gordonr@gormand.com.au> 1.2.0-20 |
* Wed Nov 29 2006 Gordon Rowell <gordonr@gormand.com.au> 1.2.0-20 |
405 |
- Revert to 10s panel refresh [SME: 2097] |
- Revert to 10s panel refresh [SME: 2097] |
406 |
|
|
407 |
* Fri Nov 23 2006 Gordon Rowell <gordonr@gormand.com.au> 1.2.0-19 |
* Thu Nov 23 2006 Gordon Rowell <gordonr@gormand.com.au> 1.2.0-19 |
408 |
|
Fri Nov 23 2006 --> Fri Nov 17 2006 or Thu Nov 23 2006 or Fri Nov 24 2006 or .... |
409 |
- Make CentOS base and updates enabled/Visible by default [SME: 1849] |
- Make CentOS base and updates enabled/Visible by default [SME: 1849] |
410 |
- Migrate CentOS base and updates to Visible, but leave status [SME: 1849] |
- Migrate CentOS base and updates to Visible, but leave status [SME: 1849] |
411 |
|
|
412 |
* Fri Nov 23 2006 Gordon Rowell <gordonr@gormand.com.au> 1.2.0-18 |
* Thu Nov 23 2006 Gordon Rowell <gordonr@gormand.com.au> 1.2.0-18 |
413 |
|
Fri Nov 23 2006 --> Fri Nov 17 2006 or Thu Nov 23 2006 or Fri Nov 24 2006 or .... |
414 |
- Adjust wording on post-upgrade page [SME: 2076] |
- Adjust wording on post-upgrade page [SME: 2076] |
415 |
|
|
416 |
* Tue Nov 21 2006 Gordon Rowell <gordonr@gormand.com.au> 1.2.0-17 |
* Tue Nov 21 2006 Gordon Rowell <gordonr@gormand.com.au> 1.2.0-17 |
422 |
page is displayed from other sessions |
page is displayed from other sessions |
423 |
- TODO: Re-add display of LogFile prior to reconfigure |
- TODO: Re-add display of LogFile prior to reconfigure |
424 |
|
|
425 |
* Fri Nov 16 2006 Gordon Rowell <gordonr@gormand.com.au> 1.2.0-15 |
* Thu Nov 16 2006 Gordon Rowell <gordonr@gormand.com.au> 1.2.0-15 |
426 |
|
Fri Nov 16 2006 --> Fri Nov 10 2006 or Thu Nov 16 2006 or Fri Nov 17 2006 or .... |
427 |
- Add dependency on yum-plugin-fastestmirror [SME: 1163] |
- Add dependency on yum-plugin-fastestmirror [SME: 1163] |
428 |
- Alpha sort dependencies |
- Alpha sort dependencies |
429 |
|
|
430 |
* Fri Nov 16 2006 Gordon Rowell <gordonr@gormand.com.au> 1.2.0-14 |
* Thu Nov 16 2006 Gordon Rowell <gordonr@gormand.com.au> 1.2.0-14 |
431 |
|
Fri Nov 16 2006 --> Fri Nov 10 2006 or Thu Nov 16 2006 or Fri Nov 17 2006 or .... |
432 |
- Add MirrorList options to each of the SME repos [SME: 1163] |
- Add MirrorList options to each of the SME repos [SME: 1163] |
433 |
|
|
434 |
* Fri Nov 16 2006 Gordon Rowell <gordonr@gormand.com.au> 1.2.0-13 |
* Thu Nov 16 2006 Gordon Rowell <gordonr@gormand.com.au> 1.2.0-13 |
435 |
|
Fri Nov 16 2006 --> Fri Nov 10 2006 or Thu Nov 16 2006 or Fri Nov 17 2006 or .... |
436 |
- Put back missed patch for post-upgrade [SME: 2071] |
- Put back missed patch for post-upgrade [SME: 2071] |
437 |
|
|
438 |
* Fri Nov 16 2006 Gordon Rowell <gordonr@gormand.com.au> 1.2.0-12 |
* Thu Nov 16 2006 Gordon Rowell <gordonr@gormand.com.au> 1.2.0-12 |
439 |
|
Fri Nov 16 2006 --> Fri Nov 10 2006 or Thu Nov 16 2006 or Fri Nov 17 2006 or .... |
440 |
- Re-add post-upgrade handling [SME: 2071] |
- Re-add post-upgrade handling [SME: 2071] |
441 |
- Display yum output |
- Display yum output |
442 |
- Lower refresh to 3 seconds from 10 |
- Lower refresh to 3 seconds from 10 |
477 |
* Wed Mar 15 2006 Charlie Brady <charlie_brady@mitel.com> 1.2.0-01 |
* Wed Mar 15 2006 Charlie Brady <charlie_brady@mitel.com> 1.2.0-01 |
478 |
- Roll stable stream version. [SME: 1016] |
- Roll stable stream version. [SME: 1016] |
479 |
|
|
480 |
* Wed Mar 6 2006 Gordon Rowell <gordonr@gormand.com.au> 1.1.2-26 |
* Mon Mar 6 2006 Gordon Rowell <gordonr@gormand.com.au> 1.1.2-26 |
481 |
- And migrate old SME repo URLs to new paths [SME: 951] |
- And migrate old SME repo URLs to new paths [SME: 951] |
482 |
|
|
483 |
* Wed Mar 6 2006 Gordon Rowell <gordonr@gormand.com.au> 1.1.2-25 |
* Mon Mar 6 2006 Gordon Rowell <gordonr@gormand.com.au> 1.1.2-25 |
484 |
- Change SME Server repo URLs to match repo names so we avoid confusion |
- Change SME Server repo URLs to match repo names so we avoid confusion |
485 |
with CentOS repos and can remove the symlinks [SME: 951] |
with CentOS repos and can remove the symlinks [SME: 951] |
486 |
|
|
487 |
* Wed Mar 6 2006 Gordon Rowell <gordonr@gormand.com.au> 1.1.2-24 |
* Mon Mar 6 2006 Gordon Rowell <gordonr@gormand.com.au> 1.1.2-24 |
488 |
- Don't force the BaseURL properties - just set defaults [SME: 951] |
- Don't force the BaseURL properties - just set defaults [SME: 951] |
489 |
|
|
490 |
* Wed Feb 22 2006 Gordon Rowell <gordonr@gormand.com.au> 1.1.2-23 |
* Wed Feb 22 2006 Gordon Rowell <gordonr@gormand.com.au> 1.1.2-23 |
788 |
are modified for the SMEServer releases |
are modified for the SMEServer releases |
789 |
- INSTALL: Need to manually remove old version of yum_repositories DB |
- INSTALL: Need to manually remove old version of yum_repositories DB |
790 |
|
|
791 |
* Fri May 31 2005 Gordon Rowell <gordonr@gormand.com.au> |
* Tue May 31 2005 Gordon Rowell <gordonr@gormand.com.au> |
792 |
|
Fri May 31 2005 --> Fri May 27 2005 or Tue May 31 2005 or Fri Jun 03 2005 or .... |
793 |
- [1.1.0-01gr05] |
- [1.1.0-01gr05] |
794 |
- Add enable/disable repository support to configuration page |
- Add enable/disable repository support to configuration page |
795 |
|
|
796 |
* Fri May 31 2005 Gordon Rowell <gordonr@gormand.com.au> |
* Tue May 31 2005 Gordon Rowell <gordonr@gormand.com.au> |
797 |
|
Fri May 31 2005 --> Fri May 27 2005 or Tue May 31 2005 or Fri Jun 03 2005 or .... |
798 |
- [1.1.0-01gr04] |
- [1.1.0-01gr04] |
799 |
- Hide empty group/package select boxes |
- Hide empty group/package select boxes |
800 |
|
|
1040 |
* Thu Jan 22 2004 Darrell May <dmay@myezserver.com> |
* Thu Jan 22 2004 Darrell May <dmay@myezserver.com> |
1041 |
- [0.0.1a-01] |
- [0.0.1a-01] |
1042 |
- Original version |
- Original version |
|
|
|
|
%prep |
|
|
%setup |
|
|
|
|
|
%build |
|
|
perl createlinks |
|
|
ln -s /var/service/yum root/service/yum |
|
|
mkdir -p root/etc/yum.smerepos.d |
|
|
|
|
|
%install |
|
|
/bin/rm -rf $RPM_BUILD_ROOT |
|
|
(cd root ; /usr/bin/find . -depth -print | /bin/cpio -dump $RPM_BUILD_ROOT) |
|
|
/bin/rm -f %{name}-%{version}-filelist |
|
|
/sbin/e-smith/genfilelist \ |
|
|
--file '/sbin/e-smith/yum_update_dbs' 'attr(0700,root,root)' \ |
|
|
--file '/sbin/e-smith/yum' 'attr(0755,root,root)' \ |
|
|
--file '/sbin/e-smith/check4updates' 'attr(0755,root,root)' \ |
|
|
--file '/sbin/e-smith/check4contribsupdates' 'attr(0755,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)' \ |
|
|
--dir /var/log/yum 'attr(2750,smelog,smelog)' \ |
|
|
$RPM_BUILD_ROOT > %{name}-%{version}-%{release}-filelist |
|
|
|
|
|
%clean |
|
|
/bin/rm -rf $RPM_BUILD_ROOT |
|
|
|
|
|
%files -f %{name}-%{version}-%{release}-filelist |
|
|
|
|
|
%defattr(-,root,root) |
|
|
|
|