1 |
# $Id: smeserver-yum.spec,v 1.1 2016/02/05 23:20:26 stephdl Exp $ |
# $Id: smeserver-yum.spec,v 1.9 2017/02/18 17:06:46 stephdl 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 2 |
%define release 10 |
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 |
BuildRoot: /var/tmp/%{name}-%{version}-%{release}-buildroot |
BuildRoot: /var/tmp/%{name}-%{version}-%{release}-buildroot |
20 |
BuildArchitectures: noarch |
BuildArchitectures: noarch |
21 |
Requires: e-smith-formmagick >= 1.4.0-12 |
Requires: e-smith-formmagick >= 1.4.0-12 |
31 |
Obsoletes: yum-plugin-installonlyn |
Obsoletes: yum-plugin-installonlyn |
32 |
Obsoletes: yum-protect-packages <= 1.1.16 |
Obsoletes: yum-protect-packages <= 1.1.16 |
33 |
Requires: mailx |
Requires: mailx |
34 |
|
Requires: deltarpm |
35 |
BuildRequires: e-smith-devtools >= 1.13.1-03 |
BuildRequires: e-smith-devtools >= 1.13.1-03 |
36 |
BuildRequires: python |
BuildRequires: python |
37 |
Conflicts: centos-yumconf |
Conflicts: centos-yumconf |
39 |
%description |
%description |
40 |
%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 |
41 |
|
|
42 |
|
%prep |
43 |
|
%setup |
44 |
|
%patch0 -p1 |
45 |
|
%patch1 -p1 |
46 |
|
%patch2 -p1 |
47 |
|
%patch3 -p1 |
48 |
|
%patch4 -p1 |
49 |
|
%patch5 -p1 |
50 |
|
|
51 |
|
%build |
52 |
|
perl createlinks |
53 |
|
ln -s /var/service/yum root/service/yum |
54 |
|
mkdir -p root/etc/yum.smerepos.d |
55 |
|
|
56 |
|
%install |
57 |
|
/bin/rm -rf $RPM_BUILD_ROOT |
58 |
|
(cd root ; /usr/bin/find . -depth -print | /bin/cpio -dump $RPM_BUILD_ROOT) |
59 |
|
/bin/rm -f %{name}-%{version}-filelist |
60 |
|
/sbin/e-smith/genfilelist \ |
61 |
|
--file '/sbin/e-smith/yum_update_dbs' 'attr(0700,root,root)' \ |
62 |
|
--file '/sbin/e-smith/yum' 'attr(0755,root,root)' \ |
63 |
|
--file '/sbin/e-smith/check4updates' 'attr(0755,root,root)' \ |
64 |
|
--file '/sbin/e-smith/check4contribsupdates' 'attr(0755,root,root)' \ |
65 |
|
--file '/sbin/e-smith/yumdownloadonly' 'attr(0755,root,root)' \ |
66 |
|
--file '/etc/cron.daily/smeserver-yum' 'attr(0700,root,root)' \ |
67 |
|
--file /var/service/yum/down 'attr(0644,root,root)' \ |
68 |
|
--file /var/service/yum/run 'attr(0755,root,root)' \ |
69 |
|
--dir /var/service/yum/log 'attr(0755,root,root)' \ |
70 |
|
--dir /var/service/yum/log/supervise 'attr(0700,root,root)' \ |
71 |
|
--dir /var/service/yum/supervise 'attr(0700,root,root)' \ |
72 |
|
--file /var/service/yum/log/run 'attr(0755,root,root)' \ |
73 |
|
--dir /var/log/yum 'attr(2750,smelog,smelog)' \ |
74 |
|
$RPM_BUILD_ROOT > %{name}-%{version}-%{release}-filelist |
75 |
|
|
76 |
|
%clean |
77 |
|
/bin/rm -rf $RPM_BUILD_ROOT |
78 |
|
|
79 |
|
%files -f %{name}-%{version}-%{release}-filelist |
80 |
|
|
81 |
|
%defattr(-,root,root) |
82 |
|
|
83 |
|
|
84 |
%changelog |
%changelog |
85 |
|
* Sat Feb 18 2017 stephane de Labrusse <stephdl@de-labrusse.fr> 2.6.0-10.sme |
86 |
|
- Added smeserver-yum-2.6.0.bz8705.avoidReboot.patch |
87 |
|
- code by stefano zamboni <zamboni@mind-at-work.it> |
88 |
|
- Avoid to reboot after the installation of a smeserver-* package |
89 |
|
|
90 |
|
* Fri Jan 06 2017 Jean-Philipe Pialasse <tests@pialasse.com> 2.6.0-8.sme |
91 |
|
- add Remi Collet RPM GPG KEY [SME: 9903] |
92 |
|
|
93 |
|
* Thu Aug 04 2016 stephane de Labrusse <stephdl@de-labrusse.fr> 2.6.0-7.sme |
94 |
|
- Rpm updates can be downloaded during the night [SME: 1502] |
95 |
|
- Added smeserver-yum-2.6.0.bz1502.DownloadOnly.patch |
96 |
|
|
97 |
|
* Mon Aug 1 2016 stephane de Labrusse <stephdl@de-labrusse.fr> 2.6.0-6.sme |
98 |
|
- Deltarpm is now a setting in the yum panel (disabled by default) |
99 |
|
- Added smeserver-yum-2.6.0.bz8834.DeltaRpm.patch [SME: 8834] |
100 |
|
|
101 |
|
* Fri May 27 2016 Jean-Philipe Pialasse <tests@pialasse.com> 2.6.0-5.sme |
102 |
|
- adding Koozali SME10, EPEL7 and Centos7 gpg keys [SME: 9533] |
103 |
|
|
104 |
|
* Thu May 12 2016 Daniel Berteaud <daniel@firewall-services.com> 2.6.0-4.sme |
105 |
|
- Rebuild [SME: 9393] |
106 |
|
|
107 |
|
* Wed Mar 23 2016 Jean-Philipe Pialasse <tests@pialasse.com> 2.6.0-3.sme |
108 |
|
- yum points now to SME10 mirrors [SME: 9377] |
109 |
|
- moved changelog at the end of file |
110 |
|
- Eliminated rpmbuild "bogus date" warnings due to inconsistent weekday, |
111 |
|
by assuming the date is correct and changing the weekday. |
112 |
|
Fri May 31 2005 --> Fri May 27 2005 or Tue May 31 2005 or Fri Jun 03 2005 or .... |
113 |
|
Fri Nov 16 2006 --> Fri Nov 10 2006 or Thu Nov 16 2006 or Fri Nov 17 2006 or .... |
114 |
|
Fri Nov 23 2006 --> Fri Nov 17 2006 or Thu Nov 23 2006 or Fri Nov 24 2006 or .... |
115 |
|
|
116 |
|
|
117 |
* Sun Feb 7 2016 Daniel Berteaud <daniel@firewall-services.com> 2.6.0-2.sme |
* Sun Feb 7 2016 Daniel Berteaud <daniel@firewall-services.com> 2.6.0-2.sme |
118 |
- Add python to BuildReq so brp-python-bytecode compiles sme yum plugin |
- Add python to BuildReq so brp-python-bytecode compiles sme yum plugin |
119 |
[SME: 9229] |
[SME: 9229] |
351 |
* 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 |
352 |
- Revert to 10s panel refresh [SME: 2097] |
- Revert to 10s panel refresh [SME: 2097] |
353 |
|
|
354 |
* 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 |
355 |
|
Fri Nov 23 2006 --> Fri Nov 17 2006 or Thu Nov 23 2006 or Fri Nov 24 2006 or .... |
356 |
- Make CentOS base and updates enabled/Visible by default [SME: 1849] |
- Make CentOS base and updates enabled/Visible by default [SME: 1849] |
357 |
- Migrate CentOS base and updates to Visible, but leave status [SME: 1849] |
- Migrate CentOS base and updates to Visible, but leave status [SME: 1849] |
358 |
|
|
359 |
* 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 |
360 |
|
Fri Nov 23 2006 --> Fri Nov 17 2006 or Thu Nov 23 2006 or Fri Nov 24 2006 or .... |
361 |
- Adjust wording on post-upgrade page [SME: 2076] |
- Adjust wording on post-upgrade page [SME: 2076] |
362 |
|
|
363 |
* 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 |
369 |
page is displayed from other sessions |
page is displayed from other sessions |
370 |
- TODO: Re-add display of LogFile prior to reconfigure |
- TODO: Re-add display of LogFile prior to reconfigure |
371 |
|
|
372 |
* 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 |
373 |
|
Fri Nov 16 2006 --> Fri Nov 10 2006 or Thu Nov 16 2006 or Fri Nov 17 2006 or .... |
374 |
- Add dependency on yum-plugin-fastestmirror [SME: 1163] |
- Add dependency on yum-plugin-fastestmirror [SME: 1163] |
375 |
- Alpha sort dependencies |
- Alpha sort dependencies |
376 |
|
|
377 |
* 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 |
378 |
|
Fri Nov 16 2006 --> Fri Nov 10 2006 or Thu Nov 16 2006 or Fri Nov 17 2006 or .... |
379 |
- Add MirrorList options to each of the SME repos [SME: 1163] |
- Add MirrorList options to each of the SME repos [SME: 1163] |
380 |
|
|
381 |
* 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 |
382 |
|
Fri Nov 16 2006 --> Fri Nov 10 2006 or Thu Nov 16 2006 or Fri Nov 17 2006 or .... |
383 |
- Put back missed patch for post-upgrade [SME: 2071] |
- Put back missed patch for post-upgrade [SME: 2071] |
384 |
|
|
385 |
* 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 |
386 |
|
Fri Nov 16 2006 --> Fri Nov 10 2006 or Thu Nov 16 2006 or Fri Nov 17 2006 or .... |
387 |
- Re-add post-upgrade handling [SME: 2071] |
- Re-add post-upgrade handling [SME: 2071] |
388 |
- Display yum output |
- Display yum output |
389 |
- Lower refresh to 3 seconds from 10 |
- Lower refresh to 3 seconds from 10 |
424 |
* 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 |
425 |
- Roll stable stream version. [SME: 1016] |
- Roll stable stream version. [SME: 1016] |
426 |
|
|
427 |
* 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 |
428 |
- And migrate old SME repo URLs to new paths [SME: 951] |
- And migrate old SME repo URLs to new paths [SME: 951] |
429 |
|
|
430 |
* 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 |
431 |
- 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 |
432 |
with CentOS repos and can remove the symlinks [SME: 951] |
with CentOS repos and can remove the symlinks [SME: 951] |
433 |
|
|
434 |
* 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 |
435 |
- Don't force the BaseURL properties - just set defaults [SME: 951] |
- Don't force the BaseURL properties - just set defaults [SME: 951] |
436 |
|
|
437 |
* 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 |
735 |
are modified for the SMEServer releases |
are modified for the SMEServer releases |
736 |
- INSTALL: Need to manually remove old version of yum_repositories DB |
- INSTALL: Need to manually remove old version of yum_repositories DB |
737 |
|
|
738 |
* Fri May 31 2005 Gordon Rowell <gordonr@gormand.com.au> |
* Tue May 31 2005 Gordon Rowell <gordonr@gormand.com.au> |
739 |
|
Fri May 31 2005 --> Fri May 27 2005 or Tue May 31 2005 or Fri Jun 03 2005 or .... |
740 |
- [1.1.0-01gr05] |
- [1.1.0-01gr05] |
741 |
- Add enable/disable repository support to configuration page |
- Add enable/disable repository support to configuration page |
742 |
|
|
743 |
* Fri May 31 2005 Gordon Rowell <gordonr@gormand.com.au> |
* Tue May 31 2005 Gordon Rowell <gordonr@gormand.com.au> |
744 |
|
Fri May 31 2005 --> Fri May 27 2005 or Tue May 31 2005 or Fri Jun 03 2005 or .... |
745 |
- [1.1.0-01gr04] |
- [1.1.0-01gr04] |
746 |
- Hide empty group/package select boxes |
- Hide empty group/package select boxes |
747 |
|
|
987 |
* Thu Jan 22 2004 Darrell May <dmay@myezserver.com> |
* Thu Jan 22 2004 Darrell May <dmay@myezserver.com> |
988 |
- [0.0.1a-01] |
- [0.0.1a-01] |
989 |
- 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) |
|
|
|
|