]>
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 |
10ac8564 ER |
4 | Version: 0.9.9 |
5 | Release: 1 | |
6 | License: GPL v2 | |
6664631c | 7 | Group: Applications/System |
10ac8564 ER |
8 | Source0: http://createrepo.baseurl.org/download/%{name}-%{version}.tar.gz |
9 | # Source0-md5: 10641f19a40e9f633b300e23dde00349 | |
10 | URL: http://createrepo.baseurl.org/ | |
0dace75c | 11 | BuildRequires: python-devel |
a7290d64 | 12 | BuildRequires: python-modules |
91800c91 | 13 | BuildRequires: rpm-pythonprov |
490cb8c5 | 14 | BuildRequires: sed >= 4.0 |
6664631c | 15 | %pyrequires_eq python |
586c4230 | 16 | Requires: python-deltarpm |
6664631c AM |
17 | Requires: python-libxml2 |
18 | Requires: python-rpm | |
f3a5af06 | 19 | Requires: yum >= 3.2.23 |
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 | |
34 | ||
490cb8c5 ER |
35 | %{__sed} -i -e '1s,#!.*python,#!%{__python},' modifyrepo.py |
36 | ||
6664631c AM |
37 | %install |
38 | rm -rf $RPM_BUILD_ROOT | |
64a828da | 39 | %{__make} install \ |
64f1acc9 | 40 | PKGDIR=%{py_sitescriptdir}/%{name} \ |
64a828da | 41 | DESTDIR=$RPM_BUILD_ROOT |
6664631c | 42 | |
d75a9761 AM |
43 | %py_comp $RPM_BUILD_ROOT%{_datadir}/%{name} |
44 | %py_ocomp $RPM_BUILD_ROOT%{_datadir}/%{name} | |
ce7a40dd | 45 | %py_postclean |
d75a9761 | 46 | |
6664631c AM |
47 | %clean |
48 | rm -rf $RPM_BUILD_ROOT | |
49 | ||
6664631c AM |
50 | %files |
51 | %defattr(644,root,root,755) | |
52 | %doc ChangeLog README | |
ce7a40dd | 53 | %attr(755,root,root) %{_bindir}/createrepo |
e60d70f9 | 54 | %attr(755,root,root) %{_bindir}/mergerepo |
ce7a40dd | 55 | %attr(755,root,root) %{_bindir}/modifyrepo |
bf6e8886 | 56 | %dir %{_datadir}/%{name} |
f61dfc5d | 57 | # note that these DO NEED executable bit set! |
d75a9761 | 58 | %attr(755,root,root) %{_datadir}/%{name}/genpkgmetadata.py* |
e60d70f9 | 59 | %attr(755,root,root) %{_datadir}/%{name}/mergerepo.py* |
d75a9761 | 60 | %attr(755,root,root) %{_datadir}/%{name}/modifyrepo.py* |
10ac8564 | 61 | %attr(755,root,root) %{_datadir}/%{name}/worker.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* |