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