2 # - superseded by createrepo_c
3 # https://fedoraproject.org/wiki/Changes/Retire_YUM_3
4 Summary: Creates a common metadata repository
5 Summary(pl.UTF-8): Tworzenie wspólnego repozytorium metadanych
10 Group: Applications/System
11 Source0: http://createrepo.baseurl.org/download/%{name}-%{version}.tar.gz
12 # Source0-md5: 1f499e055d64f03127aea3ae84c9ef1a
13 Patch1: rpm5-caps.patch
14 URL: http://createrepo.baseurl.org/
15 BuildRequires: python-devel
16 BuildRequires: python-modules
17 BuildRequires: rpm-pythonprov
18 BuildRequires: rpmbuild(macros) >= 1.673
19 BuildRequires: sed >= 4.0
21 Requires: python-deltarpm
22 Requires: python-libxml2
23 Requires: python-pylzma
25 Requires: yum >= 3.2.23
26 Requires: yum-metadata-parser >= 1.1.1-3
28 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
31 A set of utilities for generating a common metadata repository from a
32 directory of RPM packages and maintaining it.
34 %description -l pl.UTF-8
35 Zestaw narzędzi do generowania oraz utrzymywania wspólnego
36 repozytorium metadanych z katalogu pakietów RPM.
38 %package -n bash-completion-%{name}
39 Summary: bash-completion for createrepo commands
40 Summary(pl.UTF-8): bashowe uzupełnianie nazw dla poleceń createrepo
41 Group: Applications/Shells
42 Requires: %{name} = %{version}-%{release}
43 Requires: bash-completion >= 2.0
45 %description -n bash-completion-%{name}
46 bash-completion for createrepo commands.
48 %description -n bash-completion-%{name} -l pl.UTF-8
49 bashowe uzupełnianie nazw dla poleceń createrepo.
55 %{__sed} -i -e '1s,#!.*python,#!%{__python},' modifyrepo.py
58 rm -rf $RPM_BUILD_ROOT
60 compdir=%{bash_compdir} \
61 sysconfdir=%{_sysconfdir} \
62 PKGDIR=%{py_sitescriptdir}/%{name} \
63 DESTDIR=$RPM_BUILD_ROOT
65 %py_comp $RPM_BUILD_ROOT%{_datadir}/%{name}
66 %py_ocomp $RPM_BUILD_ROOT%{_datadir}/%{name}
70 rm -rf $RPM_BUILD_ROOT
73 %defattr(644,root,root,755)
75 %attr(755,root,root) %{_bindir}/createrepo
76 %attr(755,root,root) %{_bindir}/mergerepo
77 %attr(755,root,root) %{_bindir}/modifyrepo
78 %{_mandir}/man1/mergerepo.1*
79 %{_mandir}/man1/modifyrepo.1*
80 %{_mandir}/man8/createrepo.8*
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]
91 %files -n bash-completion-%{name}
92 %defattr(644,root,root,755)
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