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