diff --git a/yum-utils.spec b/yum-utils.spec index ae3d95e..5a24e59 100644 --- a/yum-utils.spec +++ b/yum-utils.spec @@ -1,14 +1,14 @@ Summary: Utilities based around the yum package manager Name: yum-utils -Version: 0.3.1 -Release: 1%{?dist} +Version: 0.5 +Release: 1 License: GPL Group: Development/Tools Source: http://linux.duke.edu/yum/download/yum-utils/%{name}-%{version}.tar.gz URL: http://linux.duke.edu/yum/download/yum-utils/ BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) BuildArch: noarch -Requires: python, yum >= 2.3.2 +Requires: python, yum >= 2.5.1 %description yum-utils is a collection of utilities and examples for the yum package @@ -27,6 +27,24 @@ Runs yum update on system boot. This allows machines that have been turned off for an extended amount of time to become secure immediately, instead of waiting until the next early morning cron job. +%package -n yum-changelog +Summary: Yum plugin for viewing package changelogs before/after updating +Group: System Environment/Base +Requires: yum >= 2.3.4 + +%description -n yum-changelog +This plugin adds a command line option to allow viewing package changelog +deltas before or after updating packages. + +%package -n yum-fastestmirror +Summary: Yum plugin which chooses fastest repository from a mirrorlist +Group: System Environment/Base +Requires: yum >= 2.4.1 + +%description -n yum-fastestmirror +This plugin sorts each repository's mirrorlist by connection speed +prior to downloading packages. + %prep %setup -q @@ -35,6 +53,16 @@ rm -rf $RPM_BUILD_ROOT make DESTDIR=$RPM_BUILD_ROOT install make -C updateonboot DESTDIR=$RPM_BUILD_ROOT install +# only changelog plugin for now... +plugins="changelog fastestmirror" +mkdir -p $RPM_BUILD_ROOT/%{_sysconfdir}/yum/pluginconf.d/ $RPM_BUILD_ROOT/usr/lib/yum-plugins/ + +cd plugins +for plug in $plugins; do + install -m 644 $plug/*.conf $RPM_BUILD_ROOT/%{_sysconfdir}/yum/pluginconf.d/ + install -m 644 $plug/*.py $RPM_BUILD_ROOT/usr/lib/yum-plugins/ +done + %clean rm -rf $RPM_BUILD_ROOT @@ -50,23 +78,63 @@ fi %files %defattr(-, root, root) %doc README +%doc COPYING +%doc plugins/ %{_bindir}/package-cleanup %{_bindir}/repoclosure %{_bindir}/repomanage %{_bindir}/repoquery +%{_bindir}/repotrack +%{_bindir}/repo-graph %{_bindir}/repo-rss %{_bindir}/yumdownloader %{_bindir}/yum-builddep +%{_mandir}/man1/* %files -n yum-updateonboot %defattr(-, root, root) %doc updateonboot/README -%{_sysconfdir}/sysconfig/yum-updateonboot +%config(noreplace) %{_sysconfdir}/sysconfig/yum-updateonboot %{_initrddir}/yum-updateonboot +%files -n yum-changelog +%defattr(-, root, root) +%config(noreplace) %{_sysconfdir}/yum/pluginconf.d/changelog.conf +/usr/lib/yum-plugins/changelog.py + +%files -n yum-fastestmirror +%defattr(-, root, root) +%config(noreplace) %{_sysconfdir}/yum/pluginconf.d/fastestmirror.conf +/usr/lib/yum-plugins/fastestmirror.py + %changelog -* Mon Sep 26 2005 Gijs Hollestelle -- 0.3.1 +* Thu Feb 23 2006 Seth Vidal +- changed some of the yum version dependencies + +* Fri Feb 10 2006 Seth Vidal +- added repotrack to utils +- bumped version for 2.5.X-compatible release + +* Tue Jan 10 2006 Brian Long +- bump version to 0.4 +- add yum-fastestmirror subpackage + +* Mon Oct 17 2005 Panu Matilainen +- add repoquery man page + +* Sat Sep 17 2005 Panu Matilainen +- version 0.3.1 +- various enhancements and fixes to repoquery +- avoid tracebacks in yumex and pup when changelog plugin is enabled + +* Mon Jul 25 2005 Panu Matilainen +- bump version to 0.3 +- add yum-changelog subpackage +- add plugins as documentation to the main package +- require yum >= 2.3.4 (for getCacheDir) + +* Tue Jun 21 2005 Gijs Hollestelle +- Added missing GPL COPYING file * Wed Jun 1 2005 Seth Vidal - 0.2