]> git.pld-linux.org Git - packages/rsync.git/blob - rsync.spec
- added new ipv6 patch
[packages/rsync.git] / rsync.spec
1 Summary:        Program for efficient remote updates of files.
2 Summary(pl):    Program efektywnego modyfikowania plików na zdalnym komputerze.
3 Name:           rsync
4 Version:        2.3.2
5 Release:        1
6 Copyright:      GPL
7 Group:          Daemons
8 Group(pl):      Serwery
9 Source:         ftp://samba.anu.edu.au/pub/rsync/%{name}-%{version}.tar.gz
10 Patch0:         rsync-config.patch
11 Patch1:         rsync-man.patch
12 Patch2:         rsync-configure.patch
13 Patch3:         http://www.misiek.eu.org/ipv6/rsync-2.3.2-ipv6-13121999.patch.gz
14 URL:            http://samba.anu.edu.au/rsync/
15 BuildRoot:      /tmp/%{name}-%{version}-root
16
17 %define _sysconfdir /etc/rsyncd
18
19 %description
20 rsync is a replacement for rcp that has many more features.
21
22 rsync uses the "rsync algorithm" which provides a very fast method for
23 bringing remote files into sync. It does this by sending just the
24 differences in the files across the link, without requiring that both
25 sets of files are present at one of the ends of the link beforehand.
26
27 A technical report describing the rsync algorithm is included with
28 this package. 
29
30 %description -l pl
31 Rsync jest zamiennikiem programu rcp i jest bardziej rozbudowan± sk³adniê
32 poleceñ. Program ten u¿ywa efektywnego algorytmu "rsync" w czasie komunikacji 
33 i transportu plików do systemu zdalnego. Dokumentacja techniczna nowego 
34 algorytmu zosta³a równie¿ do³±czona do pakietu.
35
36 %prep
37 %setup  -q
38 %patch0 -p1
39 %patch1 -p1
40 %patch2 -p1
41 %patch3 -p1
42
43 %build
44 autoconf 
45 LDFLAGS="-s"; export LDFLAGS
46
47 %configure \
48         --enable-ipv6
49
50 make 
51
52 %install
53 rm -rf $RPM_BUILD_ROOT
54
55 make install \
56         prefix=$RPM_BUILD_ROOT%{_prefix} \
57         mandir=$RPM_BUILD_ROOT%{_mandir} \
58         bindir=$RPM_BUILD_ROOT%{_sbindir}
59
60 install -d $RPM_BUILD_ROOT/etc/rsyncd
61
62 :> $RPM_BUILD_ROOT/etc/rsyncd/rsyncd.conf
63 :> $RPM_BUILD_ROOT/etc/rsyncd/rsyncd.secrets
64
65 gzip -9nf $RPM_BUILD_ROOT%{_mandir}/man*/* README 
66
67 %clean
68 rm -rf $RPM_BUILD_ROOT
69
70 %files
71 %defattr(644,root,root,755)
72 %doc README.gz 
73 %dir /etc/rsyncd
74 %attr(640,root,root) %config /etc/rsyncd/rsyncd.conf
75 %attr(640,root,root) %config /etc/rsyncd/rsyncd.secrets
76
77 %attr(755,root,root) %{_sbindir}/*
78 %{_mandir}/man[15]/*
This page took 0.054942 seconds and 3 git commands to generate.