]> git.pld-linux.org Git - packages/rsync.git/blob - rsync.spec
- spec adapterized.
[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.4.3
5 Release:        1
6 License:        GPL
7 Group:          Daemons
8 Group(pl):      Serwery
9 Source0:        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:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
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±
32 sk³adniê poleceñ. Program ten u¿ywa efektywnego algorytmu "rsync" w
33 czasie komunikacji i transportu plików do systemu zdalnego.
34 Dokumentacja techniczna nowego algorytmu zosta³a równie¿ do³±czona do
35 pakietu.
36
37 %prep
38 %setup  -q
39 %patch0 -p1
40 %patch1 -p1
41 %patch2 -p1
42 # %patch3 -p1
43
44 %build
45 autoconf 
46 LDFLAGS="-s"; export LDFLAGS
47
48 %configure
49 #       --enable-ipv6
50
51 make 
52
53 %install
54 rm -rf $RPM_BUILD_ROOT
55
56 make install \
57         prefix=$RPM_BUILD_ROOT%{_prefix} \
58         mandir=$RPM_BUILD_ROOT%{_mandir} \
59         bindir=$RPM_BUILD_ROOT%{_sbindir}
60
61 install -d $RPM_BUILD_ROOT%{_sysconfdir}
62
63 :> $RPM_BUILD_ROOT%{_sysconfdir}/rsyncd.conf
64 :> $RPM_BUILD_ROOT%{_sysconfdir}/rsyncd.secrets
65
66 gzip -9nf $RPM_BUILD_ROOT%{_mandir}/man*/* README 
67
68 %clean
69 rm -rf $RPM_BUILD_ROOT
70
71 %files
72 %defattr(644,root,root,755)
73 %doc README.gz 
74 %dir %{_sysconfdir}
75 %attr(640,root,root) %config %{_sysconfdir}/rsyncd.conf
76 %attr(640,root,root) %config %{_sysconfdir}/rsyncd.secrets
77
78 %attr(755,root,root) %{_sbindir}/*
79 %{_mandir}/man[15]/*
This page took 0.034571 seconds and 4 git commands to generate.