1 |
%define _unpackaged_files_terminate_build 0 |
# $Id: smeserver-yum.spec,v 1.40 2009/11/05 18:43:13 slords Exp $ |
2 |
|
|
|
Summary: YUM, an rpm updater |
|
3 |
%define name smeserver-yum |
%define name smeserver-yum |
4 |
|
Summary: YUM, an rpm updater |
5 |
Name: %{name} |
Name: %{name} |
6 |
%define version 1.2.0 |
%define version 2.2.0 |
7 |
%define release 36 |
%define release 13 |
8 |
|
|
9 |
|
# These packages come from CentOS, but wee need to use care when |
10 |
|
# updating them - either we've patched them, or we need to do something |
11 |
|
# prior to taking the update |
12 |
|
|
13 |
|
# TODO: check mkinitrd,mdadm to see if needed |
14 |
|
%define centos_excludes initscripts |
15 |
|
|
16 |
Version: %{version} |
Version: %{version} |
17 |
Release: %{release}%{?dist} |
Release: %{release}%{?dist} |
18 |
License: GPL |
License: GPL |
19 |
Group: SMEServer/addon |
Group: SMEServer/addon |
20 |
Source: %{name}-%{version}.tar.gz |
Source: %{name}-%{version}.tar.gz |
21 |
Patch0: smeserver-yum-1.2.0-DisplayStatus.patch |
Patch1: smeserver-yum-2.2.0-extras.patch |
22 |
Patch1: smeserver-yum-1.2.0-ModifyUpdateDBs.patch |
Patch2: smeserver-yum-2.2.0-repodir.patch |
23 |
Patch2: smeserver-yum-1.2.0-DisplayStatus.patch2 |
Patch3: smeserver-yum-2.2.0-buffer.patch |
24 |
Patch3: smeserver-yum-1.2.0-quoting.patch |
Patch4: smeserver-yum-2.2.0-protected.patch |
25 |
Patch4: smeserver-yum-1.2.0-reposdir.patch |
Patch5: smeserver-yum-2.2.0-mirrorlist.patch |
26 |
Patch5: smeserver-yum-1.2.0-MirrorList.patch |
Patch6: smeserver-yum-2.2.0-updatetoggle.patch |
27 |
Patch6: smeserver-yum-1.2.0-MirrorList.patch2 |
Patch7: smeserver-yum-2.2.0-nosemi.patch |
28 |
Patch7: smeserver-yum-1.2.0-distroverpkg.patch |
Patch8: smeserver-yum-2.2.0-unsavedchanges.patch |
29 |
Patch8: smeserver-yum-1.2.0-yumplugin.patch |
Patch9: smeserver-yum-2.2.0-import-keys.patch |
30 |
Patch9: smeserver-yum-1.2.0-yumplugin.patch2 |
Patch10: smeserver-yum-2.2.0-fixremove.patch |
|
Patch10: smeserver-yum-1.2.0-yumplugin.patch3 |
|
|
Patch11: smeserver-yum-1.2.0-mirrorlists.patch |
|
|
Patch12: smeserver-yum-1.2.0-reconfigurepage.patch |
|
|
Patch13: smeserver-yum-1.2.0-reconfigurepage.patch2 |
|
|
Patch14: smeserver-yum-1.2.0-wording.patch |
|
|
Patch15: smeserver-yum-1.2.0-centosrepos.patch |
|
|
Patch16: smeserver-yum-1.2.0-Refresh10.patch |
|
|
Patch17: smeserver-yum-1.2.0-SMEMirrorLists.patch |
|
|
Patch18: smeserver-yum-1.2.0-SMEMirrorLists.patch2 |
|
|
Patch19: smeserver-yum-1.2.0-includepkgs.patch |
|
|
Patch20: smeserver-yum-1.2.0-includepkgs.patch2 |
|
|
Patch21: smeserver-yum-1.2.0-Notestingrepo.patch |
|
|
Patch22: smeserver-yum-1.2.0-httpcache.patch |
|
|
Patch23: smeserver-yum-1.2.0-dupkeys.patch |
|
|
Patch24: smeserver-yum-1.2.0-runit17.patch |
|
|
Patch25: smeserver-yum-1.2.0-epel_key.patch |
|
|
Patch26: smeserver-yum-1.2.0-restrictAvailable.patch |
|
|
Patch27: smeserver-yum-1.2.0-restrictAvailable.patch2 |
|
31 |
BuildRoot: /var/tmp/%{name}-%{version}-%{release}-buildroot |
BuildRoot: /var/tmp/%{name}-%{version}-%{release}-buildroot |
32 |
BuildArchitectures: noarch |
BuildArchitectures: noarch |
33 |
Requires: e-smith-formmagick |
Requires: e-smith-formmagick >= 1.4.0-12 |
34 |
|
Requires: e-smith-base |
35 |
|
Requires: yum-protect-packages |
36 |
Requires: perl(CGI::FormMagick) >= 0.91-26 |
Requires: perl(CGI::FormMagick) >= 0.91-26 |
37 |
Requires: rpm-python >= 4.0.4-7x.18 |
Requires: rpm-python >= 4.0.4-7x.18 |
38 |
Requires: yum >= 1.0.3-1_73 |
Requires: yum >= 1.0.3-1_73 |
39 |
Provides: yumconf |
Provides: yumconf |
40 |
%if "%{?rhel}" == "5" |
Obsoletes: check4updates |
41 |
|
Provides: check4updates |
42 |
Obsoletes: rpmdb-CentOS |
Obsoletes: rpmdb-CentOS |
43 |
Obsoletes: yum-plugin-fastestmirror |
Obsoletes: yum-plugin-fastestmirror |
44 |
|
Obsoletes: yum-plugin-installonlyn |
45 |
Requires: yum-fastestmirror |
Requires: yum-fastestmirror |
46 |
%else |
Requires: mailx |
|
Requires: rpmdb-CentOS |
|
|
Requires: yum-plugin-fastestmirror |
|
|
%endif |
|
47 |
BuildRequires: e-smith-devtools >= 1.13.1-03 |
BuildRequires: e-smith-devtools >= 1.13.1-03 |
48 |
Conflicts: centos-yumconf |
Conflicts: centos-yumconf |
49 |
AutoReqProv: no |
AutoReqProv: no |
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 |
%changelog |
%changelog |
54 |
|
* Mon May 17 2010 Jonathan Martens <smeserver-contribs@snetram.nl> 2.2.0-13.sme |
55 |
|
- Migrate CentOS Exclude property default values to smeserver-yum [SME: 5962] |
56 |
|
|
57 |
|
* Thu Nov 5 2009 Shad L. Lords <slords@mail.com> 2.2.0-12.sme |
58 |
|
- only unlink file if we created it [SME: 5476] |
59 |
|
|
60 |
|
* Wed Oct 14 2009 Filipo Carletti <filippo.carletti@gmail.com> 2.2.0-11.sme |
61 |
|
- Import only keys not already imported [SME: 5507] |
62 |
|
|
63 |
|
* Tue Sep 15 2009 Shad L. Lords <slords@mail.com> 2.2.0-10.sme |
64 |
|
- set unsaved changes in yum event [SME: 5475] |
65 |
|
- move yum warming to sme yum plugin [SME: 5474] |
66 |
|
- ensure file exists before unlinking [SME: 5476] |
67 |
|
- remove semicolons from yum plugin |
68 |
|
|
69 |
|
* Tue Sep 15 2009 Shad L. Lords <slords@mail.com> 2.2.0-9.sme |
70 |
|
- Add frequency of updates toggle [SME: 3764] |
71 |
|
- remove stray file |
72 |
|
|
73 |
|
* Sat May 30 2009 Shad L. Lords <slords@mail.com> 2.2.0-8.sme |
74 |
|
- Add /etc/yum.smerepos.d to package [SME: 5305] |
75 |
|
|
76 |
|
* Mon May 18 2009 Shad L. Lords <slords@mail.com> 2.2.0-7.sme |
77 |
|
- Change SME mirrorlists to point to ibiblio [SME: 5242] |
78 |
|
|
79 |
|
* Fri Apr 10 2009 Jonathan Martens <smeserver-contribs@snetram.nl> 2.2.0-6.sme |
80 |
|
- Require mailx [SME: 5131] |
81 |
|
|
82 |
|
* Mon Nov 24 2008 Shad L. Lords <slords@mail.com> 2.2.0-5.sme |
83 |
|
- Add yum-protect-packages support to prevent removal of |
84 |
|
needed pacakges [SME: 3133] |
85 |
|
|
86 |
|
* Tue Oct 28 2008 Shad L. Lords <slords@mail.com> 2.2.0-4.sme |
87 |
|
- Make yum update unbuffered for web interface [SME: 4726] |
88 |
|
|
89 |
|
* Mon Oct 13 2008 Shad L. Lords <slords@mail.com> 2.2.0-3.sme |
90 |
|
- Move repos to repodir to fix yum bug [SME: 3676] |
91 |
|
|
92 |
|
* Sun Oct 12 2008 Shad L. Lords <slords@mail.com> 2.2.0-2.sme |
93 |
|
- Fix name for smeextras [SME: 4585] |
94 |
|
|
95 |
|
* Tue Oct 7 2008 Shad L. Lords <slords@mail.com> 2.2.0-1.sme |
96 |
|
- Roll new stream to separate sme7/sme8 trees [SME: 4633] |
97 |
|
|
98 |
|
* Tue Oct 7 2008 Shad L. Lords <slords@mail.com> 1.2.0-58 |
99 |
|
- Fix mirrorlist for sme8 [SME: 4508] |
100 |
|
|
101 |
|
* Fri Sep 19 2008 Shad L. Lords <slords@mail.com> 1.2.0-57 |
102 |
|
- Add smeextras repo database and information [SME: 4585] |
103 |
|
|
104 |
|
* Sun Aug 10 2008 Shad L. Lords <slords@mail.com> 1.2.0-56 |
105 |
|
- Remove links to crontab in bootstrap-console-save [SME: 4494] |
106 |
|
|
107 |
|
* Sat Jul 5 2008 Jonathan Martens <smeserver-contribs@snetram.nl> 1.2.0-55 |
108 |
|
- Add common <base> tags to e-smith-formmagick's general [SME: 4279] |
109 |
|
|
110 |
|
* Sun Apr 27 2008 Jonathan Martens <smeserver-contribs@snetram.nl> 1.2.0-54 |
111 |
|
- Add common <base> tags to e-smith-formmagick's general [SME: 4290] |
112 |
|
|
113 |
|
* Mon Mar 31 2008 Shad L. Lords <slords@mail.com> 1.2.0-53 |
114 |
|
- Include installonlyn plugin to manage kernels [SME: 2101] |
115 |
|
|
116 |
|
* Mon Mar 31 2008 Stephen Noble <support@dungog.net> 1.2.0-52 |
117 |
|
- Delete dungog repository, reworked [SME: 4097] |
118 |
|
|
119 |
|
* Fri Mar 14 2008 Shad L. Lords <slords@mail.com> 1.2.0-51 |
120 |
|
- Clean up "rpm -qa" warnings in yum wrapper [SME: 4052] |
121 |
|
|
122 |
|
* Wed Feb 13 2008 Stephen Noble <support@dungog.net> 1.2.0-50 |
123 |
|
- Remove <base> tags now in general [SME: 3914] |
124 |
|
|
125 |
|
* Sun Feb 10 2008 Stephen Noble <support@dungog.net> 1.2.0-49 |
126 |
|
- Remove duplicate <base> entries [SME: 3889] |
127 |
|
|
128 |
|
* Fri Jan 11 2008 Shad L. Lords <slords@mail.com> 1.2.0-48 |
129 |
|
- Put check4updates obsoletes & provides in the right place [SME: 3250] |
130 |
|
|
131 |
|
* Fri Jan 11 2008 Shad L. Lords <slords@mail.com> 1.2.0-47 |
132 |
|
- Add check4update script, make cronjob run same as scheduled dirs [SME: 3250] |
133 |
|
|
134 |
|
* Wed Jan 09 2008 Stephen Noble <support@dungog.net> 1.2.0-46 |
135 |
|
- Add server is up to date message on panel [SME: 2512] |
136 |
|
|
137 |
|
* Mon Jan 7 2008 Stephen Noble <support@dungog.net> 1.2.0-45 |
138 |
|
- remove BaseURL property for repos with mirrorlists [SME: 3275] |
139 |
|
|
140 |
|
* Mon Jan 7 2008 Stephen Noble <support@dungog.net> 1.2.0-44 |
141 |
|
- safesymlink yum into local [SME: 3238] |
142 |
|
|
143 |
|
* Mon Jan 7 2008 Stephen Noble <support@dungog.net> 1.2.0-43 |
144 |
|
- add check4updates cronjob, obsolete check4updates rpm [SME: 3250] |
145 |
|
|
146 |
|
* Mon Jan 7 2008 Stephen Noble <support@dungog.net> 1.2.0-42 |
147 |
|
- yum-import-keys action to yum-update event [SME: 3196] |
148 |
|
|
149 |
|
* Mon Dec 24 2007 Stephen Noble <support@dungog.net> 1.2.0-41 |
150 |
|
- add smecontribs repo [SME: 3551] |
151 |
|
|
152 |
|
* Tue Dec 11 2007 Gavin Weight <gweight@gmail.com> 1.2.0-40 |
153 |
|
- Remove bad mirror and add two new mirrors. [SME: 3636] |
154 |
|
|
155 |
|
* Fri Nov 30 2007 Gavin Weight <gweight@gmail.com> 1.2.0-39 |
156 |
|
- Change EnableGroups value to no/yes instead of 0/1. [SME: 3607] |
157 |
|
|
158 |
|
* Fri Nov 30 2007 Gavin Weight <gweight@gmail.com> 1.2.0-38 |
159 |
|
- Fix use of uninitialized value in migrate 10GPG_and_Groups. [SME: 2491] |
160 |
|
|
161 |
|
* Sat Jul 14 2007 Shad L. Lords <slords@mail.com> 1.2.0-37 |
162 |
|
- Add GPG keys for CentOS 5 [SME: 3160] |
163 |
|
|
164 |
* Sun Jun 10 2007 Stephen Noble <support@dungog.net> 1.2.0-36 |
* Sun Jun 10 2007 Stephen Noble <support@dungog.net> 1.2.0-36 |
165 |
- Refine matching of rpms or repos [SME: 2416] |
- Refine matching of rpms or repos [SME: 2416] |
166 |
|
|
852 |
|
|
853 |
%prep |
%prep |
854 |
%setup |
%setup |
|
%patch0 -p1 |
|
855 |
%patch1 -p1 |
%patch1 -p1 |
856 |
%patch2 -p1 |
%patch2 -p1 |
|
rm root/usr/lib/perl5/site_perl/esmith/FormMagick/Panel/yum.pm.orig |
|
857 |
%patch3 -p1 |
%patch3 -p1 |
858 |
%patch4 -p1 |
%patch4 -p1 |
859 |
%patch5 -p1 |
%patch5 -p1 |
862 |
%patch8 -p1 |
%patch8 -p1 |
863 |
%patch9 -p1 |
%patch9 -p1 |
864 |
%patch10 -p1 |
%patch10 -p1 |
|
%patch11 -p1 |
|
|
%patch12 -p1 |
|
|
%patch13 -p1 |
|
|
%patch14 -p1 |
|
|
%patch15 -p1 |
|
|
%patch16 -p1 |
|
|
%patch17 -p1 |
|
|
%patch18 -p1 |
|
|
%patch19 -p1 |
|
|
%patch20 -p1 |
|
|
%patch21 -p1 |
|
|
%patch22 -p1 |
|
|
%patch23 -p1 |
|
|
%patch24 -p1 |
|
|
%patch25 -p1 |
|
|
%patch26 -p1 |
|
|
%patch27 -p1 |
|
865 |
|
|
866 |
%build |
%build |
867 |
perl createlinks |
perl createlinks |
872 |
touch root/var/service/yum/down |
touch root/var/service/yum/down |
873 |
mkdir -p root/var/service/yum/log/supervise |
mkdir -p root/var/service/yum/log/supervise |
874 |
mkdir -p root/var/log/yum |
mkdir -p root/var/log/yum |
875 |
|
mkdir -p root/etc/yum.smerepos.d |
876 |
|
|
877 |
mkdir -p root/etc/e-smith/db/yum_{available,installed,updates} |
mkdir -p root/etc/e-smith/db/yum_{available,installed,updates} |
878 |
|
|
879 |
mkdir -p root/etc/yum.repos.d/ |
YUM_REPOS=root/etc/e-smith/db/yum_repositories/ |
880 |
for repo in smeaddons smedev smeos smetest smeupdates smeupdates-testing |
for dir in base updates |
881 |
do |
do |
882 |
cat > root/etc/yum.repos.d/mirrors-$repo <<END_OF_HERE |
mkdir -p $YUM_REPOS/defaults/$dir |
883 |
http://distro.ibiblio.org/pub/linux/distributions/smeserver/releases/7/$repo/\$basearch |
echo %{centos_excludes} > $YUM_REPOS/defaults/$dir/Exclude |
|
ftp://ftp.planetmirror.com/pub/smeserver/releases/7/$repo/\$basearch |
|
|
http://ftp.nluug.nl/os/Linux/distr/smeserver/releases/7/$repo/\$basearch |
|
|
http://ftp.surfnet.nl/ftp/pub/os/Linux/distr/smeserver/releases/7/$repo/\$basearch |
|
|
http://mirror.pacific.net.au/linux/smeserver/releases/7/$repo/\$basearch |
|
|
END_OF_HERE |
|
|
|
|
884 |
done |
done |
885 |
|
|
886 |
%install |
%install |
890 |
/sbin/e-smith/genfilelist \ |
/sbin/e-smith/genfilelist \ |
891 |
--file '/sbin/e-smith/yum_update_dbs' 'attr(0700,root,root)' \ |
--file '/sbin/e-smith/yum_update_dbs' 'attr(0700,root,root)' \ |
892 |
--file '/sbin/e-smith/yum' 'attr(0755,root,root)' \ |
--file '/sbin/e-smith/yum' 'attr(0755,root,root)' \ |
893 |
|
--file '/sbin/e-smith/check4updates' 'attr(0755,root,root)' \ |
894 |
--file '/etc/cron.daily/smeserver-yum' 'attr(0700,root,root)' \ |
--file '/etc/cron.daily/smeserver-yum' 'attr(0700,root,root)' \ |
895 |
--file /var/service/yum/down 'attr(0644,root,root)' \ |
--file /var/service/yum/down 'attr(0644,root,root)' \ |
896 |
--file /var/service/yum/run 'attr(0755,root,root)' \ |
--file /var/service/yum/run 'attr(0755,root,root)' \ |