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