]>
Commit | Line | Data |
---|---|---|
70200f42 ER |
1 | # NOTE: |
2 | # - superseded by createrepo_c | |
3 | # https://fedoraproject.org/wiki/Changes/Retire_YUM_3 | |
6664631c | 4 | Summary: Creates a common metadata repository |
84b9e8d5 | 5 | Summary(pl.UTF-8): Tworzenie wspólnego repozytorium metadanych |
6664631c | 6 | Name: createrepo |
18154774 | 7 | Version: 0.10.4 |
62172c75 | 8 | Release: 3 |
10ac8564 | 9 | License: GPL v2 |
6664631c | 10 | Group: Applications/System |
10ac8564 | 11 | Source0: http://createrepo.baseurl.org/download/%{name}-%{version}.tar.gz |
18154774 | 12 | # Source0-md5: 1f499e055d64f03127aea3ae84c9ef1a |
bb707580 | 13 | Patch1: rpm5-caps.patch |
10ac8564 | 14 | URL: http://createrepo.baseurl.org/ |
0dace75c | 15 | BuildRequires: python-devel |
a7290d64 | 16 | BuildRequires: python-modules |
91800c91 | 17 | BuildRequires: rpm-pythonprov |
18f88232 | 18 | BuildRequires: rpmbuild(macros) >= 1.673 |
490cb8c5 | 19 | BuildRequires: sed >= 4.0 |
9250dd03 | 20 | Requires: python |
586c4230 | 21 | Requires: python-deltarpm |
6664631c | 22 | Requires: python-libxml2 |
9250dd03 | 23 | Requires: python-pylzma |
6664631c | 24 | Requires: python-rpm |
f3a5af06 | 25 | Requires: yum >= 3.2.23 |
0e8ac262 | 26 | Requires: yum-metadata-parser >= 1.1.1-3 |
755a9047 JB |
27 | BuildArch: noarch |
28 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) | |
6664631c AM |
29 | |
30 | %description | |
18f88232 | 31 | A set of utilities for generating a common metadata repository from a |
7edf9130 | 32 | directory of RPM packages and maintaining it. |
755a9047 | 33 | |
1ba1eee6 | 34 | %description -l pl.UTF-8 |
7edf9130 JB |
35 | Zestaw narzędzi do generowania oraz utrzymywania wspólnego |
36 | repozytorium metadanych z katalogu pakietów RPM. | |
6664631c | 37 | |
9250dd03 | 38 | %package -n bash-completion-%{name} |
3da1a522 JB |
39 | Summary: bash-completion for createrepo commands |
40 | Summary(pl.UTF-8): bashowe uzupełnianie nazw dla poleceń createrepo | |
9250dd03 | 41 | Group: Applications/Shells |
3da1a522 | 42 | Requires: %{name} = %{version}-%{release} |
3fe7eadf | 43 | Requires: bash-completion >= 2.0 |
9250dd03 ER |
44 | |
45 | %description -n bash-completion-%{name} | |
3da1a522 | 46 | bash-completion for createrepo commands. |
9250dd03 ER |
47 | |
48 | %description -n bash-completion-%{name} -l pl.UTF-8 | |
3da1a522 | 49 | bashowe uzupełnianie nazw dla poleceń createrepo. |
9250dd03 | 50 | |
6664631c AM |
51 | %prep |
52 | %setup -q | |
bb707580 | 53 | %patch1 -p1 |
6664631c | 54 | |
490cb8c5 ER |
55 | %{__sed} -i -e '1s,#!.*python,#!%{__python},' modifyrepo.py |
56 | ||
6664631c AM |
57 | %install |
58 | rm -rf $RPM_BUILD_ROOT | |
64a828da | 59 | %{__make} install \ |
3da1a522 | 60 | compdir=%{bash_compdir} \ |
9250dd03 | 61 | sysconfdir=%{_sysconfdir} \ |
64f1acc9 | 62 | PKGDIR=%{py_sitescriptdir}/%{name} \ |
64a828da | 63 | DESTDIR=$RPM_BUILD_ROOT |
6664631c | 64 | |
d75a9761 AM |
65 | %py_comp $RPM_BUILD_ROOT%{_datadir}/%{name} |
66 | %py_ocomp $RPM_BUILD_ROOT%{_datadir}/%{name} | |
ce7a40dd | 67 | %py_postclean |
d75a9761 | 68 | |
6664631c AM |
69 | %clean |
70 | rm -rf $RPM_BUILD_ROOT | |
71 | ||
6664631c AM |
72 | %files |
73 | %defattr(644,root,root,755) | |
74 | %doc ChangeLog README | |
ce7a40dd | 75 | %attr(755,root,root) %{_bindir}/createrepo |
e60d70f9 | 76 | %attr(755,root,root) %{_bindir}/mergerepo |
ce7a40dd | 77 | %attr(755,root,root) %{_bindir}/modifyrepo |
e60d70f9 | 78 | %{_mandir}/man1/mergerepo.1* |
ce7a40dd | 79 | %{_mandir}/man1/modifyrepo.1* |
d8ca94c5 | 80 | %{_mandir}/man8/createrepo.8* |
9250dd03 ER |
81 | %dir %{_datadir}/%{name} |
82 | # note that these DO NEED executable bit set! | |
83 | %attr(755,root,root) %{_datadir}/%{name}/genpkgmetadata.py | |
84 | %attr(755,root,root) %{_datadir}/%{name}/mergerepo.py | |
85 | %attr(755,root,root) %{_datadir}/%{name}/modifyrepo.py | |
86 | %attr(755,root,root) %{_datadir}/%{name}/worker.py | |
87 | %{_datadir}/%{name}/*.py[co] | |
88 | %dir %{py_sitescriptdir}/%{name} | |
89 | %{py_sitescriptdir}/%{name}/*.py[co] | |
90 | ||
91 | %files -n bash-completion-%{name} | |
92 | %defattr(644,root,root,755) | |
3fe7eadf ER |
93 | %{_datadir}/bash-completion/completions/createrepo |
94 | %{_datadir}/bash-completion/completions/genpkgmetadata.py | |
95 | %{_datadir}/bash-completion/completions/mergerepo | |
96 | %{_datadir}/bash-completion/completions/mergerepo.py | |
97 | %{_datadir}/bash-completion/completions/modifyrepo | |
98 | %{_datadir}/bash-completion/completions/modifyrepo.py |