--- rpms/smeserver-yum/sme7/smeserver-yum.spec 2008/10/13 03:13:32 1.27 +++ rpms/smeserver-yum/sme7/smeserver-yum.spec 2012/03/22 03:58:21 1.40 @@ -1,16 +1,28 @@ -# $Id: smeserver-yum.spec,v 1.26 2008/10/13 01:13:20 slords Exp $ +# $Id: smeserver-yum.spec,v 1.39 2012/03/17 02:00:24 wellsi Exp $ %define name smeserver-yum Summary: YUM, an rpm updater Name: %{name} %define version 2.0.0 -%define release 2 +%define release 14 Version: %{version} Release: %{release}%{?dist} License: GPL Group: SMEServer/addon Source: %{name}-%{version}.tar.gz Patch1: smeserver-yum-2.0.0-extras.patch +Patch2: smeserver-yum-2.0.0-repodir.patch +Patch3: smeserver-yum-2.0.0-buffer.patch +Patch4: smeserver-yum-2.0.0-yumremove.patch +Patch5: smeserver-yum-2.0.0-protected.patch +Patch6: smeserver-yum-2.0.0-mirrorlist.patch +Patch7: smeserver-yum-2.0.0-updatetoggle.patch +Patch8: smeserver-yum-2.0.0-nosemi.patch +Patch9: smeserver-yum-2.0.0-unsavedchanges.patch +Patch10: smeserver-yum-2.0.0-fixremove.patch +Patch11: smeserver-yum-2.0.0-add-wait-timer.patch +Patch12: smeserver-yum-2.0.0-CentOS.patch +Patch13: smeserver-yum-2.0.0-CentOS-full.patch BuildRoot: /var/tmp/%{name}-%{version}-%{release}-buildroot BuildArchitectures: noarch Requires: e-smith-formmagick >= 1.4.0-12 @@ -24,6 +36,7 @@ Provides: check4updates Requires: rpmdb-CentOS Requires: yum-plugin-fastestmirror Requires: yum-plugin-installonlyn +Requires: mailx BuildRequires: e-smith-devtools >= 1.13.1-03 Conflicts: centos-yumconf AutoReqProv: no @@ -31,6 +44,47 @@ AutoReqProv: no %name is an implementation of http://linux.duke.edu/projects/yum on SME Server %changelog +* Wed Mar 21 2012 Ian Wells 2.0.0-14.sme +- Enable CentOS repos using BaseURL pointing to the vault [SME: 6873] + +* Wed Mar 14 2012 Ian Wells 2.0.0-13.sme +- Disable CentOS base and updates repos [SME: 6868] + +* Tue Mar 1 2011 Jonathan Martens 2.0.0-12.sme +- Add random wait timer for check4updates script to distribute load on ibiblio [SME: 6489] + +* Thu Nov 5 2009 Shad L. Lords 2.0.0-11.sme +- only unlink file if we created it [SME: 4169] + +* Tue Sep 15 2009 Shad L. Lords 2.0.0-10.sme +- set unsaved changes in yum event [SME: 2081] +- move yum warming to sme yum plugin [SME: 5472] +- ensure file exists before unlinking [SME: 4169] +- remove semicolons from yum plugin + +* Tue Sep 15 2009 Shad L. Lords 2.0.0-9.sme +- Add frequency of updates toggle [SME: 5473] +- remove stray file + +* Sat May 30 2009 Shad L. Lords 2.0.0-8.sme +- Add /etc/yum.smerepos.d to package [SME: 5306] + +* Mon May 18 2009 Shad L. Lords 2.0.0-7.sme +- Change SME mirrorlists to point to ibiblio [SME: 5242] + +* Fri Apr 10 2009 Jonathan Martens 2.0.0-6.sme +- Require mailx [SME: 5131] + +* Mon Nov 24 2008 Shad L. Lords 2.0.0-5.sme +- Add yum-protect-packages support to prevent removal of + needed pacakges [SME: 3133] + +* Tue Oct 28 2008 Shad L. Lords 2.0.0-4.sme +- Make yum update unbuffered for web interface [SME: 4726] + +* Mon Oct 13 2008 Shad L. Lords 2.0.0-3.sme +- Move repos to repodir to fix yum bug [SME: 3676] + * Sun Oct 12 2008 Shad L. Lords 2.0.0-2.sme - Fix name for smeextras [SME: 4585] @@ -792,6 +846,18 @@ AutoReqProv: no %prep %setup %patch1 -p1 +%patch2 -p1 +%patch3 -p1 +%patch4 -p1 +%patch5 -p1 +%patch6 -p1 +%patch7 -p1 +%patch8 -p1 +%patch9 -p1 +%patch10 -p1 +%patch11 -p1 +%patch12 -p1 +%patch13 -p1 %build perl createlinks @@ -802,25 +868,10 @@ mkdir -p root/var/service/yum/supervise touch root/var/service/yum/down mkdir -p root/var/service/yum/log/supervise mkdir -p root/var/log/yum +mkdir -p root/etc/yum.smerepos.d mkdir -p root/etc/e-smith/db/yum_{available,installed,updates} -ver=7 - -mkdir -p root/etc/yum.repos.d/ -for repo in smeaddons smecontribs smedev smeextras smeos smetest smeupdates smeupdates-testing -do - cat > root/etc/yum.repos.d/mirrors-$repo <