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