Seth Vidal d197ab2
Summary: Utilities based around the yum package manager
Seth Vidal d197ab2
Name: yum-utils
Seth Vidal 09c4bb4
Version: 1.0
Seth Vidal f653317
Release: 2%{?dist}
Seth Vidal d197ab2
License: GPL
Seth Vidal d197ab2
Group: Development/Tools
Seth Vidal d197ab2
Source: http://linux.duke.edu/yum/download/yum-utils/%{name}-%{version}.tar.gz
Seth Vidal d197ab2
URL: http://linux.duke.edu/yum/download/yum-utils/
Seth Vidal d197ab2
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
Seth Vidal d197ab2
BuildArch: noarch
Seth Vidal 09c4bb4
Requires: python >= 2.4 , yum >= 3.0
Seth Vidal d197ab2
Seth Vidal d197ab2
%description
Seth Vidal d197ab2
yum-utils is a collection of utilities and examples for the yum package
Seth Vidal d197ab2
manager. It includes utilities by different authors that make yum easier and 
Seth Vidal d197ab2
more powerful to use.
Seth Vidal d197ab2
Seth Vidal d197ab2
%package -n yum-updateonboot
Seth Vidal d197ab2
Summary: Run yum update on system boot
Seth Vidal d197ab2
Group: System Environment/Base
Seth Vidal 09c4bb4
Requires: python, yum >= 2.4
Seth Vidal d197ab2
Requires(pre): chkconfig
Seth Vidal d197ab2
Requires(post): chkconfig
Seth Vidal d197ab2
Seth Vidal d197ab2
%description -n yum-updateonboot
Seth Vidal d197ab2
Runs yum update on system boot. This allows machines that have been turned
Seth Vidal d197ab2
off for an extended amount of time to become secure immediately, instead of
Seth Vidal d197ab2
waiting until the next early morning cron job.
Seth Vidal d197ab2
Seth Vidal 14fb1f2
%package -n yum-changelog
Seth Vidal 14fb1f2
Summary: Yum plugin for viewing package changelogs before/after updating
Seth Vidal 14fb1f2
Group: System Environment/Base
Seth Vidal 09c4bb4
Requires: yum >= 3.0
Seth Vidal 14fb1f2
Seth Vidal 14fb1f2
%description -n yum-changelog
Seth Vidal 14fb1f2
This plugin adds a command line option to allow viewing package changelog 
Seth Vidal 14fb1f2
deltas before or after updating packages.
Seth Vidal 14fb1f2
Seth Vidal 14fb1f2
%package -n yum-fastestmirror
Seth Vidal 14fb1f2
Summary: Yum plugin which chooses fastest repository from a mirrorlist
Seth Vidal 14fb1f2
Group: System Environment/Base
Seth Vidal 09c4bb4
Requires: yum >= 3.0
Seth Vidal 14fb1f2
Seth Vidal 14fb1f2
%description -n yum-fastestmirror
Seth Vidal 14fb1f2
This plugin sorts each repository's mirrorlist by connection speed
Seth Vidal 14fb1f2
prior to downloading packages.
Seth Vidal 14fb1f2
Seth Vidal cd6d27e
%package -n yum-fedorakmod
Seth Vidal cd6d27e
Summary: Yum plugin to handle fedora kernel modules.
Seth Vidal cd6d27e
Group: System Environment/Base
Seth Vidal 09c4bb4
Requires: yum >= 3.0
Seth Vidal cd6d27e
Seth Vidal cd6d27e
%description -n yum-fedorakmod
Seth Vidal cd6d27e
Plugin for Yum to handle installation of kmod-foo type of kernel modules, when new kernel versions 
Seth Vidal cd6d27e
are installed.
Seth Vidal cd6d27e
kmod-foo kernel modules is described by the Fedora Extras packaging standards.
Seth Vidal cd6d27e
Seth Vidal cd6d27e
%package -n yum-protectbase
Seth Vidal cd6d27e
Summary: Yum plugin to protect packages from certain repositories.
Seth Vidal cd6d27e
Group: System Environment/Base
Seth Vidal 09c4bb4
Requires: yum >= 3.0
Seth Vidal cd6d27e
Seth Vidal cd6d27e
%description -n yum-protectbase
Seth Vidal cd6d27e
This plugin allows certain repositories to be protected. Packages in the
Seth Vidal cd6d27e
protected repositories can't be overridden by packages in non-protected
Seth Vidal cd6d27e
repositories even if the non-protected repo has a later version.
Seth Vidal cd6d27e
Seth Vidal cd6d27e
%package -n yum-versionlock
Seth Vidal cd6d27e
Summary: Yum plugin to lock specified packages from being updated
Seth Vidal cd6d27e
Group: System Environment/Base
Seth Vidal 09c4bb4
Requires: yum >= 3.0
Seth Vidal cd6d27e
Seth Vidal cd6d27e
%description -n yum-versionlock
Seth Vidal cd6d27e
This plugin allows certain packages specified in a file to be protected from being updated by 
Seth Vidal cd6d27e
newer versions.
Seth Vidal cd6d27e
Seth Vidal cd6d27e
%package -n yum-tsflags
Seth Vidal cd6d27e
Summary: Yum plugin to add tsflags by a commandline option
Seth Vidal cd6d27e
Group: System Environment/Base
Seth Vidal 09c4bb4
Requires: yum >= 3.0
Seth Vidal cd6d27e
Seth Vidal cd6d27e
%description -n yum-tsflags
Seth Vidal cd6d27e
This plugin allows you to specify optional transaction flags on the yum
Seth Vidal cd6d27e
command line
Seth Vidal cd6d27e
Seth Vidal cd6d27e
%package -n yum-kernel-module
Seth Vidal cd6d27e
Summary: Yum plugin to handle kernel-module-foo type of kernel module
Seth Vidal cd6d27e
Group: System Environment/Base
Seth Vidal 09c4bb4
Requires: yum >= 3.0
Seth Vidal cd6d27e
Seth Vidal cd6d27e
%description -n yum-kernel-module
Seth Vidal cd6d27e
This plugin handle installation of kernel-module-foo type of kernel modules when new version of 
Seth Vidal cd6d27e
kernels are installed.
Seth Vidal cd6d27e
Seth Vidal cd6d27e
Seth Vidal cd6d27e
%package -n yum-downloadonly
Seth Vidal cd6d27e
Summary: Yum plugin to add downloadonly command option
Seth Vidal cd6d27e
Group: System Environment/Base
Seth Vidal 09c4bb4
Requires: yum >= 3.0
Seth Vidal cd6d27e
Seth Vidal cd6d27e
%description -n yum-downloadonly
Seth Vidal cd6d27e
This plugin adds a --downloadonly flag to yum so that yum will only download
Seth Vidal cd6d27e
the packages and not install/update them.
Seth Vidal cd6d27e
Seth Vidal 09c4bb4
%package -n yum-allowdowngrade
Seth Vidal 09c4bb4
Summary: Yum plugin to enable manual downgrading of packages
Seth Vidal 09c4bb4
Group: System Environment/Base
Seth Vidal e53ae04
Requires: yum >= 3.0
Seth Vidal 09c4bb4
Seth Vidal 09c4bb4
%description -n yum-allowdowngrade
Seth Vidal 09c4bb4
This plugin adds a --allow-downgrade flag to yum to make it possible to
Seth Vidal 09c4bb4
manually downgrade packages to specific versions.
Seth Vidal 09c4bb4
Seth Vidal 09c4bb4
%package -n yum-skip-broken
Seth Vidal 09c4bb4
Summary: Yum plugin to handle skiping packages with dependency problems
Seth Vidal 09c4bb4
Group: System Environment/Base
Seth Vidal e53ae04
Requires: yum >= 3.0
Seth Vidal 09c4bb4
Seth Vidal 09c4bb4
%description -n yum-skip-broken
Seth Vidal 09c4bb4
This plugin adds a --ignore-broken to yum to make it possible to
Seth Vidal 09c4bb4
check packages for dependency problems and skip the one with problems.
Seth Vidal 09c4bb4
Seth Vidal d197ab2
%prep
Seth Vidal d197ab2
%setup -q
Seth Vidal d197ab2
Seth Vidal d197ab2
%install
Seth Vidal d197ab2
rm -rf $RPM_BUILD_ROOT
Seth Vidal d197ab2
make DESTDIR=$RPM_BUILD_ROOT install
Seth Vidal d197ab2
make -C updateonboot DESTDIR=$RPM_BUILD_ROOT install
Seth Vidal d197ab2
Seth Vidal cd6d27e
# Plugins to install
Seth Vidal 09c4bb4
plugins="changelog fastestmirror fedorakmod protectbase versionlock tsflags kernel-module downloadonly allowdowngrade skip-broken"
Seth Vidal 14fb1f2
mkdir -p $RPM_BUILD_ROOT/%{_sysconfdir}/yum/pluginconf.d/ $RPM_BUILD_ROOT/usr/lib/yum-plugins/
Seth Vidal 14fb1f2
Seth Vidal 14fb1f2
cd plugins
Seth Vidal 14fb1f2
for plug in $plugins; do
Seth Vidal 14fb1f2
    install -m 644 $plug/*.conf $RPM_BUILD_ROOT/%{_sysconfdir}/yum/pluginconf.d/
Seth Vidal 14fb1f2
    install -m 644 $plug/*.py $RPM_BUILD_ROOT/usr/lib/yum-plugins/
Seth Vidal 14fb1f2
done
Seth Vidal 14fb1f2
Seth Vidal d197ab2
%clean
Seth Vidal d197ab2
rm -rf $RPM_BUILD_ROOT
Seth Vidal d197ab2
Seth Vidal d197ab2
%post -n yum-updateonboot
Seth Vidal d197ab2
/sbin/chkconfig --add yum-updateonboot >/dev/null 2>&1 || :;
Seth Vidal d197ab2
Seth Vidal d197ab2
%preun -n yum-updateonboot
Seth Vidal d197ab2
if [ $1 = 0 ]; then
Seth Vidal d197ab2
    /sbin/service yum-updateonboot stop >/dev/null 2>&1 || :;
Seth Vidal d197ab2
    /sbin/chkconfig --del yum >/dev/null 2>&1 || :;
Seth Vidal d197ab2
fi
Seth Vidal d197ab2
Seth Vidal d197ab2
%files
Seth Vidal d197ab2
%defattr(-, root, root)
Seth Vidal d197ab2
%doc README 
Seth Vidal 14fb1f2
%doc COPYING
Seth Vidal 09c4bb4
%doc plugins/README
Seth Vidal d197ab2
%{_bindir}/package-cleanup
Seth Vidal d197ab2
%{_bindir}/repoclosure
Seth Vidal d197ab2
%{_bindir}/repomanage
Seth Vidal d197ab2
%{_bindir}/repoquery
Seth Vidal 14fb1f2
%{_bindir}/repotrack
Seth Vidal cd6d27e
%{_bindir}/reposync
Seth Vidal 14fb1f2
%{_bindir}/repo-graph
Seth Vidal d197ab2
%{_bindir}/repo-rss
Seth Vidal d197ab2
%{_bindir}/yumdownloader
Seth Vidal d197ab2
%{_bindir}/yum-builddep
Seth Vidal 14fb1f2
%{_mandir}/man1/*
Seth Vidal d197ab2
Seth Vidal d197ab2
%files -n yum-updateonboot
Seth Vidal d197ab2
%defattr(-, root, root)
Seth Vidal d197ab2
%doc updateonboot/README
Seth Vidal 14fb1f2
%config(noreplace) %{_sysconfdir}/sysconfig/yum-updateonboot
Seth Vidal d197ab2
%{_initrddir}/yum-updateonboot
Seth Vidal d197ab2
Seth Vidal 14fb1f2
%files -n yum-changelog
Seth Vidal 14fb1f2
%defattr(-, root, root)
Seth Vidal 14fb1f2
%config(noreplace) %{_sysconfdir}/yum/pluginconf.d/changelog.conf
Seth Vidal cd6d27e
/usr/lib/yum-plugins/changelog.*
Seth Vidal 14fb1f2
Seth Vidal 14fb1f2
%files -n yum-fastestmirror
Seth Vidal 14fb1f2
%defattr(-, root, root)
Seth Vidal 14fb1f2
%config(noreplace) %{_sysconfdir}/yum/pluginconf.d/fastestmirror.conf
Seth Vidal cd6d27e
/usr/lib/yum-plugins/fastestmirror.*
Seth Vidal cd6d27e
Seth Vidal cd6d27e
%files -n yum-fedorakmod
Seth Vidal cd6d27e
%defattr(-, root, root)
Seth Vidal cd6d27e
%config(noreplace) %{_sysconfdir}/yum/pluginconf.d/fedorakmod.conf
Seth Vidal cd6d27e
/usr/lib/yum-plugins/fedorakmod.*
Seth Vidal cd6d27e
Seth Vidal cd6d27e
%files -n yum-protectbase
Seth Vidal cd6d27e
%defattr(-, root, root)
Seth Vidal cd6d27e
%config(noreplace) %{_sysconfdir}/yum/pluginconf.d/protectbase.conf
Seth Vidal cd6d27e
/usr/lib/yum-plugins/protectbase.*
Seth Vidal cd6d27e
Seth Vidal cd6d27e
%files -n yum-versionlock
Seth Vidal cd6d27e
%defattr(-, root, root)
Seth Vidal cd6d27e
%config(noreplace) %{_sysconfdir}/yum/pluginconf.d/versionlock.conf
Seth Vidal cd6d27e
/usr/lib/yum-plugins/versionlock.*
Seth Vidal cd6d27e
Seth Vidal cd6d27e
%files -n yum-tsflags
Seth Vidal cd6d27e
%defattr(-, root, root)
Seth Vidal cd6d27e
%config(noreplace) %{_sysconfdir}/yum/pluginconf.d/tsflags.conf
Seth Vidal cd6d27e
/usr/lib/yum-plugins/tsflags.*
Seth Vidal cd6d27e
Seth Vidal cd6d27e
%files -n yum-kernel-module
Seth Vidal cd6d27e
%defattr(-, root, root)
Seth Vidal cd6d27e
%config(noreplace) %{_sysconfdir}/yum/pluginconf.d/kernel-module.conf
Seth Vidal cd6d27e
/usr/lib/yum-plugins/kernel-module.*
Seth Vidal cd6d27e
Seth Vidal cd6d27e
%files -n yum-downloadonly
Seth Vidal cd6d27e
%defattr(-, root, root)
Seth Vidal cd6d27e
%config(noreplace) %{_sysconfdir}/yum/pluginconf.d/downloadonly.conf
Seth Vidal cd6d27e
/usr/lib/yum-plugins/downloadonly.*
Seth Vidal 14fb1f2
Seth Vidal 09c4bb4
%files -n yum-allowdowngrade
Seth Vidal 09c4bb4
%defattr(-, root, root)
Seth Vidal 09c4bb4
%config(noreplace) %{_sysconfdir}/yum/pluginconf.d/allowdowngrade.conf
Seth Vidal 09c4bb4
/usr/lib/yum-plugins/allowdowngrade.*
Seth Vidal 09c4bb4
Seth Vidal 09c4bb4
%files -n yum-skip-broken
Seth Vidal 09c4bb4
%defattr(-, root, root)
Seth Vidal 09c4bb4
%config(noreplace) %{_sysconfdir}/yum/pluginconf.d/skip-broken.conf
Seth Vidal 09c4bb4
/usr/lib/yum-plugins/skip-broken.*
Seth Vidal 09c4bb4
Seth Vidal d197ab2
%changelog
Seth Vidal 09c4bb4
* Wed Oct  4 2006 Seth Vidal <skvidal at linux.duke.edu>
Seth Vidal 09c4bb4
- mark it as 1.0
Seth Vidal 09c4bb4
- change requires for the packages to yum 3.0
Seth Vidal 09c4bb4
Seth Vidal 09c4bb4
* Wed Sep 27 2006 Tim Lauridsen <tla@rasmil.dk>
Seth Vidal 09c4bb4
- added skip-broken plugin
Seth Vidal 09c4bb4
Seth Vidal 09c4bb4
* Tue Sep 05 2006 Panu Matilainen <pmatilai@laiskianen.org>
Seth Vidal 09c4bb4
- added allowdowngrade plugin
c7c0a66
Seth Vidal 09c4bb4
* Sun Aug 13 2006 Seth Vidal <skvidal at linux.duke.edu>
Seth Vidal 09c4bb4
- fix the plugins/ doc issue
aae3b21
Seth Vidal cd6d27e
* Sat May  6 2006 Seth Vidal <skvidal at linux.duke.edu>
Seth Vidal cd6d27e
- bump version number
Seth Vidal cd6d27e
- added yum-downloadonly plugin
Seth Vidal cd6d27e
- fix minor item in tsflags description
Seth Vidal cd6d27e
Seth Vidal cd6d27e
* Sat Apr 29 2006 Seth Vidal <skvidal at linux.duke.edu>
Seth Vidal cd6d27e
- add reposync
Seth Vidal cd6d27e
Seth Vidal cd6d27e
* Fri Apr 28 2006 Tim Lauridsen <tla@rasmil.dk>
Seth Vidal cd6d27e
- added yum-fedorakmod plugin subpackage
Seth Vidal cd6d27e
- added yum-protectbase plugin subpackage.
Seth Vidal cd6d27e
- added yum-versionlock plugin subpackage.
Seth Vidal cd6d27e
- added yum-tsflags plugin subpackage.
Seth Vidal cd6d27e
- added yum-kernel-module plugin subpackage
Seth Vidal cd6d27e
- changed .py to .* in files sections for plugin subpackages to build rpms without error.
Seth Vidal cd6d27e
Seth Vidal 14fb1f2
* Thu Feb 23 2006 Seth Vidal <skvidal at linux.duke.edu>
Seth Vidal 14fb1f2
-  changed some of the yum version dependencies
Seth Vidal 14fb1f2
Seth Vidal 14fb1f2
* Fri Feb 10 2006 Seth Vidal <skvidal@linux.duke.edu>
Seth Vidal 14fb1f2
- added repotrack to utils
Seth Vidal 14fb1f2
- bumped version for 2.5.X-compatible release
Seth Vidal 14fb1f2
Seth Vidal 14fb1f2
* Tue Jan 10 2006 Brian Long <brilong@cisco.com>
Seth Vidal 14fb1f2
- bump version to 0.4
Seth Vidal 14fb1f2
- add yum-fastestmirror subpackage
Seth Vidal 14fb1f2
Seth Vidal 14fb1f2
* Mon Oct 17 2005 Panu Matilainen <pmatilai@laiskiainen.org>
Seth Vidal 14fb1f2
- add repoquery man page
Seth Vidal 14fb1f2
Seth Vidal 14fb1f2
* Sat Sep 17 2005 Panu Matilainen <pmatilai@laiskiainen.org>
Seth Vidal 14fb1f2
- version 0.3.1
Seth Vidal 14fb1f2
- various enhancements and fixes to repoquery
Seth Vidal 14fb1f2
- avoid tracebacks in yumex and pup when changelog plugin is enabled
Seth Vidal 14fb1f2
Seth Vidal 14fb1f2
* Mon Jul 25 2005 Panu Matilainen <pmatilai@laiskiainen.org>
Seth Vidal 14fb1f2
- bump version to 0.3
Seth Vidal 14fb1f2
- add yum-changelog subpackage
Seth Vidal 14fb1f2
- add plugins as documentation to the main package
Seth Vidal 14fb1f2
- require yum >= 2.3.4 (for getCacheDir)
Seth Vidal 14fb1f2
Seth Vidal 14fb1f2
* Tue Jun  21 2005 Gijs Hollestelle <gijs@gewis.nl>
Seth Vidal 14fb1f2
- Added missing GPL COPYING file
gijs 7c19d50
Seth Vidal d197ab2
* Wed Jun  1 2005 Seth Vidal <skvidal@phy.duke.edu>
Seth Vidal d197ab2
- 0.2
Seth Vidal d197ab2
Seth Vidal d197ab2
* Mon May 23 2005 Panu Matilainen <pmatilai@laiskiainen.org>
Seth Vidal d197ab2
- add yum-updateboot subpackage
Seth Vidal d197ab2
Seth Vidal d197ab2
* Mon May 16 2005 Gijs Hollestelle <gijs@gewis.nl>
Seth Vidal d197ab2
- first version based on the mock spec file