]> git.pld-linux.org Git - packages/yum-utils.git/blob - yum-utils.spec
- pl
[packages/yum-utils.git] / yum-utils.spec
1 Summary:        A collection of utilities related to yum
2 Summary(pl.UTF-8):      Zestaw narzędzi związanych z yumem
3 Name:           yum-utils
4 Version:        1.1.4
5 Release:        1
6 License:        GPL
7 Group:          Applications/System
8 Source0:        http://linux.duke.edu/projects/yum/download/yum-utils/%{name}-%{version}.tar.gz
9 # Source0-md5:  6d5388c557c6ca1df32f14e8509acec0
10 Patch0:         %{name}-yum-config.patch
11 URL:            http://linux.duke.edu/projects/yum/
12 BuildRequires:  gettext-devel
13 BuildRequires:  rpm-pythonprov
14 BuildRequires:  rpmbuild(macros) >= 1.228
15 Requires:       python >= 1:2.5
16 Requires:       yum
17 BuildArch:      noarch
18 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
19
20 %description
21 Yum-utils is a collection of utilities, plugins and examples related
22 to the yum package manager.
23
24 %description -l pl.UTF-8
25 yum-utils to zestaw narzędzi, wtyczek i przykładów związanych z
26 zarządcą pakietów yum.
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*/*
This page took 0.415453 seconds and 3 git commands to generate.