]> git.pld-linux.org Git - packages/rsync.git/blob - rsync.spec
- removed requires rsh - this is optional feature, but rsync complains
[packages/rsync.git] / rsync.spec
1 Summary:        Program for efficient remote updates of files
2 Summary(es):    Programa para actualizar archivos remotos de forma eficiente
3 Summary(pl):    Program do wydajnego zdalnego uaktualniania plików
4 Summary(pt_BR): Programa para atualizar arquivos remotos de forma eficiente
5 Summary(ru):    ðÒÏÇÒÁÍÍÁ ÄÌÑ ÜÆÆÅËÔÉ×ÎÏÇÏ ÕÄÁÌÅÎÎÏÇÏ ÏÂÎÏ×ÌÅÎÉÑ ÆÁÊÌÏ×
6 Summary(uk):    ðÒÏÇÒÁÍÁ ÄÌÑ ÅÆÅËÔÉ×ÎÏÇϠצÄÄÁÌÅÎÏÇÏ ÏÎÏ×ÌÅÎÎÑ ÆÁÊ̦×
7 Summary(zh_CN): [ͨѶ]´«Ê乤¾ß
8 Summary(zh_TW): [³ñ°Ô]\e$(B6G?i¤õ(c\e(B
9 Name:           rsync
10 Version:        2.5.5
11 Release:        3
12 License:        GPL
13 Group:          Daemons
14 Source0:        http://rsync.samba.org/ftp/rsync/%{name}-%{version}.tar.gz
15 Source1:        %{name}.inet
16 Source2:        %{name}.init
17 Source3:        %{name}.sysconfig
18 Patch0:         %{name}-config.patch
19 Patch1:         %{name}-man.patch
20 BuildRequires:  autoconf
21 BuildRequires:  popt-devel
22 URL:            http://samba.anu.edu.au/rsync/
23 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
24
25 %define         _sysconfdir     /etc/rsyncd
26
27 %description
28 rsync is a replacement for rcp that has many more features.
29
30 rsync uses the "rsync algorithm" which provides a very fast method for
31 bringing remote files into sync. It does this by sending just the
32 differences in the files across the link, without requiring that both
33 sets of files are present at one of the ends of the link beforehand.
34
35 A technical report describing the rsync algorithm is included with
36 this package.
37
38 %description -l es
39 rsync es un substituto más rápido y flexible para rcp que permite la
40 sincronización de archivos o directorios, vía red, de forma rápida y
41 eficiente, entre diferentes máquinas transfiriendo solamente las
42 diferencias entre estos directorios de forma compactada. No necesita
43 que ninguna de las máquinas tengan una copia de lo que está en la
44 otra. Está disponible en este paquete, una relación técnica
45 describiendo el algoritmo usado por el rsync.
46
47 %description -l pl
48 Rsync jest zamiennikiem programu rcp z bardziej rozbudowan± sk³adni±
49 poleceñ. Program ten u¿ywa efektywnego algorytmu "rsync" w czasie
50 komunikacji i transportu plików do systemu zdalnego. Dokumentacja
51 techniczna nowego algorytmu zosta³a równie¿ do³±czona do pakietu.
52
53 %description -l pt_BR
54 O rsync é um substituto mais rápido e flexível para o rcp permitindo
55 sincronização de arquivos ou diretórios via rede de forma rápida e
56 eficiente entre diferentes máquinas transferindo somente as diferenças
57 entre estes diretórios de forma compactada. Ele não precisa que
58 nenhuma das máquinas tenha uma cópia do que está na outra.
59
60 Um relatório técnico descrevendo o algoritmo usado pelo rsync está
61 disponível neste pacote.
62
63 %description -l ru
64 rsync - ÜÔÏ ÂÏÌÅÅ ÂÙÓÔÒÁÑ É ÇÉÂËÁÑ ÁÌØÔÅÒÎÁÔÉ×Á rcp, ÐÏÚ×ÏÌÑÀÝÁÑ
65 ÂÙÓÔÒÕÀ É ÜÆÆÅËÔÉ×ÎÕÀ ÐÏ ÏÔÎÏÛÅÎÉÀ Ë ÒÅÓÕÒÓÁÍ ÓÅÔÉ ÓÉÎÈÒÏÎÉÚÁÃÉÀ
66 ÆÁÊÌÏ× ÉÌÉ ËÁÔÁÌÏÇÏ× ÎÁ ÒÁÚÌÉÞÎÙÈ ÍÁÛÉÎÁÈ ÐÕÔÅÍ ÐÅÒÅÄÁÞÉ ÔÏÌØËÏ
67 ÒÁÚÌÉÞÉÊ ÍÅÖÄÕ ÎÉÍÉ × ËÏÍÐÒÅÓÓÉÒÏ×ÁÎÎÏÍ ×ÉÄÅ. ðÒÉ ÜÔÏÍ ÓÏ×ÅÒÛÅÎÎÏ ÎÅ
68 ÏÂÑÚÁÔÅÌØÎÏ, ÞÔÏÂÙ ÏÄÎÁ ÍÁÛÉÎÁ ÉÍÅÌÁ Õ ÓÅÂÑ ËÏÐÉÀ ÔÏÇÏ, ÞÔÏ ÅÓÔØ ÎÁ
69 ÄÒÕÇÏÊ ÍÁÛÉÎÅ.
70
71 %description -l uk
72 rsync - ÃÅ Û×ÉÄÛÁ ÔÁ ÇÎÕÞ˦ÛÁ ÁÌØÔÅÒÎÁÔÉ×Á rcp, ÑËÁ ÚÁÂÅÚÐÅÞÕ¤ Û×ÉÄËÕ
73 ÔÁ ÅÆÅËÔÉ×ÎÕ ÐϠצÄÎÏÛÅÎÎÀ ÄÏ ÒÅÓÕÒӦנÍÅÒÅÖ¦ ÓÉÎÈÒÏΦÚÁæÀ ÆÁÊ̦נÞÉ
74 ËÁÔÁÌÏǦנÎÁ Ò¦ÚÎÉÈ ÍÁÛÉÎÁÈ ÛÌÑÈÏÍ ÐÅÒÅÄÁÞ¦ ÌÉÛŠצÄͦÎÎÏÓÔÅʠͦ֠ÎÉÍÉ
75 × ËÏÍÐÒÅÓÏ×ÁÎÏÍÕ ×ÉĦ. ðÒÉ ÃØÏÍÕ ÚÏ×Ӧ͠ÎÅ ÏÂÏ×'ÑÚËÏ×Ï, ÝÏ ÏÄÎÁ
76 ÍÁÛÉÎÁ ÍÁÌÁ × ÓÅÂÅ ËÏЦÀ ÔÏÇÏ, ÝÏ ¤ ÎÁ ¦ÎۦʠÍÁÛÉΦ.
77
78 %package -n rsyncd-inetd
79 Summary:        Files necessary to run rsync in daemon mode
80 Summary(pl):    Pliki niezbêdne do uruchomienia rsynca w trybie serwera
81 Group:          Daemons
82 Requires:       %{name}
83 Requires:       rc-inetd
84 Provides:       rsyncd
85 Obsoletes:      rsyncd
86 Obsoletes:      rsyncd-standalone
87
88 %description -n rsyncd-inetd
89 rsync is a replacement for rcp that has many more features.
90
91 rsync uses the "rsync algorithm" which provides a very fast method for
92 bringing remote files into sync. It does this by sending just the
93 differences in the files across the link, without requiring that both
94 sets of files are present at one of the ends of the link beforehand.
95
96 A technical report describing the rsync algorithm is included with
97 this package.
98
99 %description -n rsyncd-inetd -l pl
100 Rsync jest zamiennikiem programu rcp z bardziej rozbudowan± sk³adni±
101 poleceñ. Program ten u¿ywa efektywnego algorytmu "rsync" w czasie
102 komunikacji i transportu plików do systemu zdalnego. Dokumentacja
103 techniczna nowego algorytmu zosta³a równie¿ do³±czona do pakietu.
104
105 %package -n rsyncd-standalone
106 Summary:        Files necessary to run rsync in daemon mode
107 Summary(pl):    Pliki niezbêdne do uruchomienia rsynca w trybie serwera
108 Group:          Daemons
109 Requires:       %{name}
110 Provides:       rsyncd
111 Obsoletes:      rsyncd-inetd
112
113 %description -n rsyncd-standalone
114 rsync is a replacement for rcp that has many more features.
115
116 rsync uses the "rsync algorithm" which provides a very fast method for
117 bringing remote files into sync. It does this by sending just the
118 differences in the files across the link, without requiring that both
119 sets of files are present at one of the ends of the link beforehand.
120
121 A technical report describing the rsync algorithm is included with
122 this package.
123
124 %description -n rsyncd-standalone -l pl
125 Rsync jest zamiennikiem programu rcp z bardziej rozbudowan± sk³adni±
126 poleceñ. Program ten u¿ywa efektywnego algorytmu "rsync" w czasie
127 komunikacji i transportu plików do systemu zdalnego. Dokumentacja
128 techniczna nowego algorytmu zosta³a równie¿ do³±czona do pakietu.
129
130 %prep
131 %setup  -q
132 %patch0 -p1
133 %patch1 -p1
134
135 %build
136 %{__autoconf}
137 %configure \
138         --enable-ipv6
139
140 %{__make}
141
142 %install
143 rm -rf $RPM_BUILD_ROOT
144
145 %{__make} install \
146         prefix=$RPM_BUILD_ROOT%{_prefix} \
147         mandir=$RPM_BUILD_ROOT%{_mandir} \
148         bindir=$RPM_BUILD_ROOT%{_bindir}
149
150 install -d $RPM_BUILD_ROOT{%{_sysconfdir},/etc/{sysconfig/rc-inetd,rc.d/init.d}}
151
152 :> $RPM_BUILD_ROOT%{_sysconfdir}/rsyncd.conf
153 :> $RPM_BUILD_ROOT%{_sysconfdir}/rsyncd.secrets
154
155 install %{SOURCE1} $RPM_BUILD_ROOT/etc/sysconfig/rc-inetd/rsyncd
156 install %{SOURCE2} $RPM_BUILD_ROOT/etc/rc.d/init.d/rsyncd
157 install %{SOURCE3} $RPM_BUILD_ROOT/etc/sysconfig/rsyncd
158
159 %post -n rsyncd-inetd
160 if [ -f /var/lock/subsys/rc-inetd ]; then
161         /etc/rc.d/init.d/rc-inetd restart 1>&2
162 else
163         echo "Type \"/etc/rc.d/init.d/rc-inetd start\" to start inet server" 1>&2
164 fi
165
166 %postun -n rsyncd-inetd
167 if [ "$1" = "0" -a -f /var/lock/subsys/rc-inetd ]; then
168         /etc/rc.d/init.d/rc-inetd reload 1>&2
169 fi
170
171 %post -n rsyncd-standalone
172 /sbin/chkconfig --add rsyncd
173 if [ -f /var/lock/subsys/rsyncd ]; then
174         /etc/rc.d/init.d/rsyncd restart 1>&2
175 else
176         echo "Type \"/etc/rc.d/init.d/rsyncd start\" to start rsync server" 1>&2
177 fi
178
179 %postun -n rsyncd-standalone
180 if [ "$1" = "0" ]; then
181         if [ -f /var/lock/subsys/rsyncd ]; then
182                 /etc/rc.d/init.d/rsyncd stop 1>&2
183         fi
184         /sbin/chkconfig --del rsyncd
185 fi
186
187 %clean
188 rm -rf $RPM_BUILD_ROOT
189
190 %files
191 %defattr(644,root,root,755)
192 %doc README
193 %attr(755,root,root) %{_bindir}/*
194 %{_mandir}/man1/*
195
196 %files -n rsyncd-inetd
197 %defattr(644,root,root,755)
198 %dir %{_sysconfdir}
199 %attr(640,root,root) %config(noreplace) %{_sysconfdir}/rsyncd.conf
200 %attr(640,root,root) %config(noreplace) %{_sysconfdir}/rsyncd.secrets
201 %attr(640,root,root) /etc/sysconfig/rc-inetd/rsyncd
202 %{_mandir}/man5/*
203
204 %files -n rsyncd-standalone
205 %defattr(644,root,root,755)
206 %dir %{_sysconfdir}
207 %attr(640,root,root) %config(noreplace) %{_sysconfdir}/rsyncd.conf
208 %attr(640,root,root) %config(noreplace) %{_sysconfdir}/rsyncd.secrets
209 %attr(640,root,root) %config(noreplace) /etc/sysconfig/rsyncd
210 %attr(755,root,root) /etc/rc.d/init.d/rsyncd
211 %{_mandir}/man5/*
This page took 0.058392 seconds and 4 git commands to generate.