46316b18e681446bebefd88e92380f4d7c17621b
[packages/emirror.git] / emirror.spec
1 Summary:        FTP mirroring program
2 Summary(pl):    Program do mirrorowania FTP
3 Name:           emirror
4 Version:        2.1.17
5 Release:        1
6 License:        GPL
7 Group:          Networking/Utilities
8 Group(pl):      Sieciowe/Narz√™dzia
9 Source0:        ftp://eclipt.uni-klu.ac.at:/pub/projects/emirror/%{name}-%{version}.tar.gz
10 Patch0:         %{name}-cfg.patch
11 BuildRequires:  python
12 Requires:       python
13 BuildArch:      noarch
14 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
15
16 %description
17 FTP mirroring program.
18
19 %description -l pl
20 Program do mirrorowania FTP.
21
22 %prep
23 %setup -q
24 %patch -p1
25
26 %build
27 %configure
28
29 %install
30 rm -rf $RPM_BUILD_ROOT
31 %{__make} install \
32         prefix=$RPM_BUILD_ROOT%{_prefix} \
33         bindir=$RPM_BUILD_ROOT%{_bindir} \
34         mandir=$RPM_BUILD_ROOT%{_mandir}/man1 \
35         libdir=$RPM_BUILD_ROOT%{_libdir}/emirror \
36         etcdir=$RPM_BUILD_ROOT%{_sysconfdir}/emirror \
37         docdir=$RPM_BUILD_ROOT%{_docdir}/emirror
38
39 (\
40 cd $RPM_BUILD_ROOT%{_bindir}; \
41 mv -f mirror mirror.bak; \
42 sed 's#@OUTPUTDIRECTORY@#/home/httpd/htdocs/mirrors#' mirror.bak > mirror; \
43 mv -f updateindex updateindex.bak; \
44 sed 's#@OUTPUTDIRECTORY@#/home/httpd/htdocs/mirrors#' updateindex.bak > updateindex;\
45 rm -f *.bak
46 )
47
48 install general.cfg $RPM_BUILD_ROOT%{_sysconfdir}/emirror
49
50 gzip -9nf doc/* $RPM_BUILD_ROOT%{_mandir}/man1/*
51
52 %clean
53 rm -rf $RPM_BUILD_ROOT
54
55 %files
56 %defattr(644,root,root,755)
57 %doc doc/*
58 %config(noreplace) %{_sysconfdir}/emirror
59 %attr(755,root,root) %{_bindir}/*
60 %{_libdir}/emirror
61 %{_mandir}/man1/*
This page took 0.027644 seconds and 2 git commands to generate.