]> git.pld-linux.org Git - packages/createrepo.git/blob - createrepo.spec
c6b8c1be429ad5c2063d774509136ca149721b22
[packages/createrepo.git] / createrepo.spec
1 Summary:        Creates a common metadata repository
2 Summary(pl.UTF-8):      Tworzenie wspólnego repozytorium metadanych
3 Name:           createrepo
4 Version:        0.9.1
5 Release:        1
6 License:        GPL
7 Group:          Applications/System
8 Source0:        http://linux.duke.edu/createrepo/download/%{name}-%{version}.tar.gz
9 # Source0-md5:  2a903c9f33c8a56dbfb89c2875d9978d
10 URL:            http://linux.duke.edu/metadata/
11 BuildRequires:  python-devel > 1:2.5
12 BuildRequires:  python-modules
13 BuildRequires:  rpm-pythonprov
14 BuildRequires:  sed >= 4.0
15 %pyrequires_eq  python
16 Requires:       python-libxml2
17 Requires:       python-rpm
18 Requires:       yum >= 3.2.8-3
19 Requires:       yum-metadata-parser >= 1.1.1-3
20 BuildArch:      noarch
21 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
22
23 %description
24 This utility will generate a common metadata repository from a
25 directory of RPM packages.
26
27 %description -l pl.UTF-8
28 To narzędzie tworzy wspólne repozytorium metadanych z katalogu
29 pakietów RPM.
30
31 %prep
32 %setup -q
33
34 %{__sed} -i -e '1s,#!.*python,#!%{__python},' modifyrepo.py
35
36 %install
37 rm -rf $RPM_BUILD_ROOT
38 %{__make} install \
39         DESTDIR=$RPM_BUILD_ROOT
40
41 %py_comp $RPM_BUILD_ROOT%{_datadir}/%{name}
42 %py_ocomp $RPM_BUILD_ROOT%{_datadir}/%{name}
43 %py_postclean
44
45 %clean
46 rm -rf $RPM_BUILD_ROOT
47
48 %files
49 %defattr(644,root,root,755)
50 %doc ChangeLog README
51 %attr(755,root,root) %{_bindir}/createrepo
52 %attr(755,root,root) %{_bindir}/modifyrepo
53 %dir %{_datadir}/%{name}
54 # note that these DO NEED executable bit set!
55 %attr(755,root,root) %{_datadir}/%{name}/genpkgmetadata.py*
56 %attr(755,root,root) %{_datadir}/%{name}/modifyrepo.py*
57 %dir %{py_sitedir}/createrepo
58 %{py_sitedir}/createrepo/*.py[co]
59 %{_mandir}/man1/modifyrepo.1*
60 %{_mandir}/man8/createrepo.8*
This page took 0.144726 seconds and 2 git commands to generate.