1 |
# $Id$ |
2 |
|
3 |
Summary: Limit the number of kernels installed for the yum package manager |
4 |
Name: yum-plugin-installonlyn |
5 |
Version: 0.91 |
6 |
Release: 1%{?dist} |
7 |
License: GPL |
8 |
Group: Development/Tools |
9 |
Source: %{name}-%{version}.tar.gz |
10 |
Patch0: yum-plugin-installonlyn-sme_fix.patch |
11 |
URL: http://wiki.linux.duke.edu/YumPlugins |
12 |
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) |
13 |
BuildArch: noarch |
14 |
Requires: python, yum >= 2.3.4 |
15 |
|
16 |
%description |
17 |
The installonlyn plugin for yum will allow you to set the number of retained |
18 |
kernels installed on your system. |
19 |
|
20 |
%prep |
21 |
%setup -q |
22 |
%patch0 -p1 |
23 |
|
24 |
%install |
25 |
rm -rf $RPM_BUILD_ROOT |
26 |
|
27 |
plugins="installonlyn" |
28 |
mkdir -p $RPM_BUILD_ROOT/%{_sysconfdir}/yum/pluginconf.d/ $RPM_BUILD_ROOT/usr/lib/yum-plugins/ |
29 |
|
30 |
for plug in $plugins; do |
31 |
install -m 644 $plug.conf $RPM_BUILD_ROOT/%{_sysconfdir}/yum/pluginconf.d/ |
32 |
install -m 644 $plug.py $RPM_BUILD_ROOT/usr/lib/yum-plugins/ |
33 |
done |
34 |
|
35 |
%clean |
36 |
rm -rf $RPM_BUILD_ROOT |
37 |
|
38 |
%post |
39 |
|
40 |
%preun |
41 |
|
42 |
%files |
43 |
%defattr(-, root, root) |
44 |
%doc README* |
45 |
%doc COPYING |
46 |
%doc ChangeLog |
47 |
%{_sysconfdir}/yum/pluginconf.d |
48 |
/usr/lib/yum-plugins |
49 |
|
50 |
%changelog |
51 |
* Wed Mar 26 2008 Paul Floor <paul@smeserver.us> 0.91-1 |
52 |
- first version extracted from yum-utils-0.5-2 |
53 |
- fixed counting error in installonlyn.py |
54 |
- increased tokeep to 5 |