]>
Commit | Line | Data |
---|---|---|
6664631c | 1 | Summary: Creates a common metadata repository |
84b9e8d5 | 2 | Summary(pl.UTF-8): Tworzenie wspólnego repozytorium metadanych |
6664631c | 3 | Name: createrepo |
64a828da | 4 | Version: 0.9.1 |
de2de94f | 5 | Release: 3 |
6664631c AM |
6 | License: GPL |
7 | Group: Applications/System | |
64a828da ER |
8 | Source0: http://linux.duke.edu/createrepo/download/%{name}-%{version}.tar.gz |
9 | # Source0-md5: 2a903c9f33c8a56dbfb89c2875d9978d | |
6664631c | 10 | URL: http://linux.duke.edu/metadata/ |
68846189 | 11 | BuildRequires: python-devel > 1:2.5 |
a7290d64 | 12 | BuildRequires: python-modules |
91800c91 | 13 | BuildRequires: rpm-pythonprov |
490cb8c5 | 14 | BuildRequires: sed >= 4.0 |
6664631c AM |
15 | %pyrequires_eq python |
16 | Requires: python-libxml2 | |
17 | Requires: python-rpm | |
de2de94f | 18 | Requires: yum >= 3.2.11-1 |
0e8ac262 | 19 | Requires: yum-metadata-parser >= 1.1.1-3 |
755a9047 JB |
20 | BuildArch: noarch |
21 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) | |
6664631c AM |
22 | |
23 | %description | |
24 | This utility will generate a common metadata repository from a | |
755a9047 JB |
25 | directory of RPM packages. |
26 | ||
1ba1eee6 JR |
27 | %description -l pl.UTF-8 |
28 | To narzędzie tworzy wspólne repozytorium metadanych z katalogu | |
29 | pakietów RPM. | |
6664631c AM |
30 | |
31 | %prep | |
32 | %setup -q | |
33 | ||
490cb8c5 ER |
34 | %{__sed} -i -e '1s,#!.*python,#!%{__python},' modifyrepo.py |
35 | ||
6664631c AM |
36 | %install |
37 | rm -rf $RPM_BUILD_ROOT | |
64a828da | 38 | %{__make} install \ |
64f1acc9 | 39 | PKGDIR=%{py_sitescriptdir}/%{name} \ |
64a828da | 40 | DESTDIR=$RPM_BUILD_ROOT |
6664631c | 41 | |
d75a9761 AM |
42 | %py_comp $RPM_BUILD_ROOT%{_datadir}/%{name} |
43 | %py_ocomp $RPM_BUILD_ROOT%{_datadir}/%{name} | |
ce7a40dd | 44 | %py_postclean |
d75a9761 | 45 | |
6664631c AM |
46 | %clean |
47 | rm -rf $RPM_BUILD_ROOT | |
48 | ||
6664631c AM |
49 | %files |
50 | %defattr(644,root,root,755) | |
51 | %doc ChangeLog README | |
ce7a40dd ER |
52 | %attr(755,root,root) %{_bindir}/createrepo |
53 | %attr(755,root,root) %{_bindir}/modifyrepo | |
bf6e8886 | 54 | %dir %{_datadir}/%{name} |
f61dfc5d | 55 | # note that these DO NEED executable bit set! |
d75a9761 | 56 | %attr(755,root,root) %{_datadir}/%{name}/genpkgmetadata.py* |
d75a9761 | 57 | %attr(755,root,root) %{_datadir}/%{name}/modifyrepo.py* |
64f1acc9 ER |
58 | %dir %{py_sitescriptdir}/createrepo |
59 | %{py_sitescriptdir}/createrepo/*.py[co] | |
ce7a40dd | 60 | %{_mandir}/man1/modifyrepo.1* |
d8ca94c5 | 61 | %{_mandir}/man8/createrepo.8* |