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