]> git.pld-linux.org Git - packages/createrepo.git/blob - createrepo.spec
- depend on yum which has disabled missingok patch; rel 3
[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:        3
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.11-1
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         PKGDIR=%{py_sitescriptdir}/%{name} \
40         DESTDIR=$RPM_BUILD_ROOT
41
42 %py_comp $RPM_BUILD_ROOT%{_datadir}/%{name}
43 %py_ocomp $RPM_BUILD_ROOT%{_datadir}/%{name}
44 %py_postclean
45
46 %clean
47 rm -rf $RPM_BUILD_ROOT
48
49 %files
50 %defattr(644,root,root,755)
51 %doc ChangeLog README
52 %attr(755,root,root) %{_bindir}/createrepo
53 %attr(755,root,root) %{_bindir}/modifyrepo
54 %dir %{_datadir}/%{name}
55 # note that these DO NEED executable bit set!
56 %attr(755,root,root) %{_datadir}/%{name}/genpkgmetadata.py*
57 %attr(755,root,root) %{_datadir}/%{name}/modifyrepo.py*
58 %dir %{py_sitescriptdir}/createrepo
59 %{py_sitescriptdir}/createrepo/*.py[co]
60 %{_mandir}/man1/modifyrepo.1*
61 %{_mandir}/man8/createrepo.8*
This page took 0.079248 seconds and 3 git commands to generate.