]> git.pld-linux.org Git - packages/rsync.git/blob - rsync.spec
- updated to 2.5.3
[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.5.3
5 Release:        1
6 License:        GPL
7 Group:          Daemons
8 Source0:        http://rsync.samba.org/ftp/rsync/%{name}-%{version}.tar.gz
9 Source1:        %{name}.inet
10 Patch0:         %{name}-config.patch
11 Patch1:         %{name}-man.patch
12 BuildRequires:  autoconf
13 BuildRequires:  popt-devel
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 %package -n rsyncd
38 Summary:        Files necessary to run rsync in daemon mode
39 Summary(pl):    Pliki niezbêdne do uruchomienia rsynca w trybie serwera
40 Group:          Daemons
41 Requires:       %{name}
42 Requires:       rc-inetd
43
44 %description -n rsyncd
45 rsync is a replacement for rcp that has many more features.
46
47 rsync uses the "rsync algorithm" which provides a very fast method for
48 bringing remote files into sync. It does this by sending just the
49 differences in the files across the link, without requiring that both
50 sets of files are present at one of the ends of the link beforehand.
51
52 A technical report describing the rsync algorithm is included with
53 this package.
54
55 %description -n rsyncd -l pl
56 Rsync jest zamiennikiem programu rcp i jest bardziej rozbudowan±
57 sk³adniê poleceñ. Program ten u¿ywa efektywnego algorytmu "rsync" w
58 czasie komunikacji i transportu plików do systemu zdalnego.
59 Dokumentacja techniczna nowego algorytmu zosta³a równie¿ do³±czona do
60 pakietu.
61
62 %prep
63 %setup  -q
64 %patch0 -p1
65 %patch1 -p1
66
67 %build
68 autoconf
69 %configure \
70         --enable-ipv6
71
72 %{__make}
73
74 %install
75 rm -rf $RPM_BUILD_ROOT
76
77 %{__make} install \
78         prefix=$RPM_BUILD_ROOT%{_prefix} \
79         mandir=$RPM_BUILD_ROOT%{_mandir} \
80         bindir=$RPM_BUILD_ROOT%{_bindir}
81
82 install -d $RPM_BUILD_ROOT{%{_sysconfdir},/etc/sysconfig/rc-inetd}
83
84 :> $RPM_BUILD_ROOT%{_sysconfdir}/rsyncd.conf
85 :> $RPM_BUILD_ROOT%{_sysconfdir}/rsyncd.secrets
86
87 install %{SOURCE1} $RPM_BUILD_ROOT/etc/sysconfig/rc-inetd/rsyncd
88
89 gzip -9nf README
90
91 %post -n rsyncd
92 if [ -f /var/lock/subsys/rc-inetd ]; then
93         /etc/rc.d/init.d/rc-inetd restart 1>&2
94 else
95         echo "Type \"/etc/rc.d/init.d/rc-inetd start\" to start inet server" 1>&2
96 fi
97
98 %postun -n rsyncd
99 if [ "$1" = "0" -a -f /var/lock/subsys/rc-inetd ]; then
100         /etc/rc.d/init.d/rc-inetd reload 1>&2
101 fi
102
103 %clean
104 rm -rf $RPM_BUILD_ROOT
105
106 %files
107 %defattr(644,root,root,755)
108 %doc README.gz
109 %attr(755,root,root) %{_bindir}/*
110 %{_mandir}/man1/*
111
112 %files -n rsyncd
113 %defattr(644,root,root,755)
114 %dir %{_sysconfdir}
115 %attr(640,root,root) %config(noreplace) %{_sysconfdir}/rsyncd.conf
116 %attr(640,root,root) %config(noreplace) %{_sysconfdir}/rsyncd.secrets
117 %attr(640,root,root) /etc/sysconfig/rc-inetd/rsyncd
118 %{_mandir}/man5/*
This page took 0.067565 seconds and 4 git commands to generate.