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