]>
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 | 4 | Version: 0.9.9 |
9250dd03 | 5 | Release: 2 |
10ac8564 | 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 | |
9250dd03 | 10 | Patch0: %{name}-head.patch |
10ac8564 | 11 | URL: http://createrepo.baseurl.org/ |
0dace75c | 12 | BuildRequires: python-devel |
a7290d64 | 13 | BuildRequires: python-modules |
91800c91 | 14 | BuildRequires: rpm-pythonprov |
490cb8c5 | 15 | BuildRequires: sed >= 4.0 |
9250dd03 | 16 | Requires: python |
586c4230 | 17 | Requires: python-deltarpm |
6664631c | 18 | Requires: python-libxml2 |
9250dd03 | 19 | Requires: python-pylzma |
6664631c | 20 | Requires: python-rpm |
f3a5af06 | 21 | Requires: yum >= 3.2.23 |
0e8ac262 | 22 | Requires: yum-metadata-parser >= 1.1.1-3 |
755a9047 JB |
23 | BuildArch: noarch |
24 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) | |
6664631c AM |
25 | |
26 | %description | |
27 | This utility will generate a common metadata repository from a | |
755a9047 JB |
28 | directory of RPM packages. |
29 | ||
1ba1eee6 JR |
30 | %description -l pl.UTF-8 |
31 | To narzędzie tworzy wspólne repozytorium metadanych z katalogu | |
32 | pakietów RPM. | |
6664631c | 33 | |
9250dd03 ER |
34 | %package -n bash-completion-%{name} |
35 | Summary: bash-completion for createrepo | |
36 | Summary(pl.UTF-8): bashowe uzupełnianie nazw dla createrepo | |
37 | Group: Applications/Shells | |
38 | Requires: %{name} | |
39 | Requires: bash-completion | |
40 | ||
41 | %description -n bash-completion-%{name} | |
42 | bash-completion for createrepo. | |
43 | ||
44 | %description -n bash-completion-%{name} -l pl.UTF-8 | |
45 | bashowe uzupełnianie nazw dla createrepo. | |
46 | ||
6664631c AM |
47 | %prep |
48 | %setup -q | |
9250dd03 | 49 | %patch0 -p1 |
6664631c | 50 | |
490cb8c5 ER |
51 | %{__sed} -i -e '1s,#!.*python,#!%{__python},' modifyrepo.py |
52 | ||
6664631c AM |
53 | %install |
54 | rm -rf $RPM_BUILD_ROOT | |
64a828da | 55 | %{__make} install \ |
9250dd03 | 56 | sysconfdir=%{_sysconfdir} \ |
64f1acc9 | 57 | PKGDIR=%{py_sitescriptdir}/%{name} \ |
64a828da | 58 | DESTDIR=$RPM_BUILD_ROOT |
6664631c | 59 | |
d75a9761 AM |
60 | %py_comp $RPM_BUILD_ROOT%{_datadir}/%{name} |
61 | %py_ocomp $RPM_BUILD_ROOT%{_datadir}/%{name} | |
ce7a40dd | 62 | %py_postclean |
d75a9761 | 63 | |
6664631c AM |
64 | %clean |
65 | rm -rf $RPM_BUILD_ROOT | |
66 | ||
6664631c AM |
67 | %files |
68 | %defattr(644,root,root,755) | |
69 | %doc ChangeLog README | |
ce7a40dd | 70 | %attr(755,root,root) %{_bindir}/createrepo |
e60d70f9 | 71 | %attr(755,root,root) %{_bindir}/mergerepo |
ce7a40dd | 72 | %attr(755,root,root) %{_bindir}/modifyrepo |
e60d70f9 | 73 | %{_mandir}/man1/mergerepo.1* |
ce7a40dd | 74 | %{_mandir}/man1/modifyrepo.1* |
d8ca94c5 | 75 | %{_mandir}/man8/createrepo.8* |
9250dd03 ER |
76 | %dir %{_datadir}/%{name} |
77 | # note that these DO NEED executable bit set! | |
78 | %attr(755,root,root) %{_datadir}/%{name}/genpkgmetadata.py | |
79 | %attr(755,root,root) %{_datadir}/%{name}/mergerepo.py | |
80 | %attr(755,root,root) %{_datadir}/%{name}/modifyrepo.py | |
81 | %attr(755,root,root) %{_datadir}/%{name}/worker.py | |
82 | %{_datadir}/%{name}/*.py[co] | |
83 | %dir %{py_sitescriptdir}/%{name} | |
84 | %{py_sitescriptdir}/%{name}/*.py[co] | |
85 | ||
86 | %files -n bash-completion-%{name} | |
87 | %defattr(644,root,root,755) | |
88 | /etc/bash_completion.d/createrepo.bash |