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