]>
Commit | Line | Data |
---|---|---|
f5db57ea PZ |
1 | Summary: A collection of utilities related to yum |
2 | Name: yum-utils | |
3 | Version: 1.1.4 | |
4 | Release: 1 | |
5 | License: GPL | |
6 | Group: Applications/System | |
7 | Source0: http://linux.duke.edu/projects/yum/download/yum-utils/%{name}-%{version}.tar.gz | |
8 | # Source0-md5: 6d5388c557c6ca1df32f14e8509acec0 | |
9 | Patch0: %{name}-yum-config.patch | |
10 | URL: http://linux.duke.edu/projects/yum/ | |
11 | BuildRequires: gettext-devel | |
12 | BuildRequires: rpm-pythonprov | |
13 | BuildRequires: rpmbuild(macros) >= 1.228 | |
14 | Requires: python >= 2.5 | |
15 | Requires: yum | |
16 | BuildArch: noarch | |
17 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) | |
18 | ||
19 | %description | |
20 | Yum-utils is a collection of utilities, plugins and examples related to | |
21 | the yum package manager. | |
22 | ||
23 | %description -l pl.UTF-8 | |
24 | Yum to narzędzie sprawdzające i automatycznie ściągające i instalujące | |
25 | uaktualnione pakiety RPM. Zależności są ściągane automatycznie po | |
26 | zapytaniu użytkownika w razie potrzeby. | |
27 | ||
28 | %prep | |
29 | %setup -q | |
30 | %patch0 -p1 | |
31 | ||
32 | %build | |
33 | %{__make} | |
34 | ||
35 | %install | |
36 | rm -rf $RPM_BUILD_ROOT | |
37 | ||
38 | %{__make} install \ | |
39 | DESTDIR=$RPM_BUILD_ROOT \ | |
40 | PYLIBDIR=%{py_sitescriptdir}/.. | |
41 | ||
42 | # Plugins to install | |
43 | plugins="changelog fastestmirror fedorakmod protectbase versionlock tsflags kernel-module downloadonly allowdowngrade skip-broken priorities refresh-updatesd merge-conf security" | |
44 | install -d $RPM_BUILD_ROOT/{%{_sysconfdir}/yum/pluginconf.d,%{_libdir}/yum-plugins} | |
45 | ||
46 | cd plugins | |
47 | for plug in $plugins; do | |
48 | install $plug/*.conf $RPM_BUILD_ROOT/%{_sysconfdir}/yum/pluginconf.d/ | |
49 | install $plug/*.py $RPM_BUILD_ROOT/usr/lib/yum-plugins/ | |
50 | done | |
51 | ||
52 | %py_postclean | |
53 | ||
54 | %clean | |
55 | rm -rf $RPM_BUILD_ROOT | |
56 | ||
57 | %files | |
58 | %defattr(644,root,root,755) | |
59 | %doc ChangeLog README TODO | |
60 | %attr(755,root,root) %{_bindir}/debuginfo-install | |
61 | %attr(755,root,root) %{_bindir}/package-cleanup | |
62 | %attr(755,root,root) %{_bindir}/repoclosure | |
63 | %attr(755,root,root) %{_bindir}/repo-graph | |
64 | %attr(755,root,root) %{_bindir}/repomanage | |
65 | %attr(755,root,root) %{_bindir}/repoquery | |
66 | %attr(755,root,root) %{_bindir}/repo-rss | |
67 | %attr(755,root,root) %{_bindir}/reposync | |
68 | %attr(755,root,root) %{_bindir}/repotrack | |
69 | %attr(755,root,root) %{_bindir}/yum-builddep | |
70 | %attr(755,root,root) %{_bindir}/yumdownloader | |
71 | %{_sysconfdir}/yum/pluginconf.d/* | |
72 | %{_libdir}/yum-plugins/* | |
73 | %{_mandir}/man*/* |