]> git.pld-linux.org Git - packages/rsync.git/blob - rsync.spec
- added requirements for -inetd and -standalone
[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 PreReq:         rc-inetd
83 Requires:       %{name}
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(post,preun):   /sbin/chkconfig
110 Requires:       %{name}
111 Provides:       rsyncd
112 Obsoletes:      rsyncd
113 Obsoletes:      rsyncd-inetd
114
115 %description -n rsyncd-standalone
116 rsync is a replacement for rcp that has many more features.
117
118 rsync uses the "rsync algorithm" which provides a very fast method for
119 bringing remote files into sync. It does this by sending just the
120 differences in the files across the link, without requiring that both
121 sets of files are present at one of the ends of the link beforehand.
122
123 A technical report describing the rsync algorithm is included with
124 this package.
125
126 %description -n rsyncd-standalone -l pl
127 Rsync jest zamiennikiem programu rcp z bardziej rozbudowan± sk³adni±
128 poleceñ. Program ten u¿ywa efektywnego algorytmu "rsync" w czasie
129 komunikacji i transportu plików do systemu zdalnego. Dokumentacja
130 techniczna nowego algorytmu zosta³a równie¿ do³±czona do pakietu.
131
132 %prep
133 %setup  -q
134 %patch0 -p1
135 %patch1 -p1
136
137 %build
138 %{__autoconf}
139 %configure \
140         --enable-ipv6
141
142 %{__make}
143
144 %install
145 rm -rf $RPM_BUILD_ROOT
146
147 %{__make} install \
148         prefix=$RPM_BUILD_ROOT%{_prefix} \
149         mandir=$RPM_BUILD_ROOT%{_mandir} \
150         bindir=$RPM_BUILD_ROOT%{_bindir}
151
152 install -d $RPM_BUILD_ROOT{%{_sysconfdir},/etc/{sysconfig/rc-inetd,rc.d/init.d}}
153
154 :> $RPM_BUILD_ROOT%{_sysconfdir}/rsyncd.conf
155 :> $RPM_BUILD_ROOT%{_sysconfdir}/rsyncd.secrets
156
157 install %{SOURCE1} $RPM_BUILD_ROOT/etc/sysconfig/rc-inetd/rsyncd
158 install %{SOURCE2} $RPM_BUILD_ROOT/etc/rc.d/init.d/rsyncd
159 install %{SOURCE3} $RPM_BUILD_ROOT/etc/sysconfig/rsyncd
160
161 %clean
162 rm -rf $RPM_BUILD_ROOT
163
164 %post -n rsyncd-inetd
165 if [ -f /var/lock/subsys/rc-inetd ]; then
166         /etc/rc.d/init.d/rc-inetd restart 1>&2
167 else
168         echo "Type \"/etc/rc.d/init.d/rc-inetd start\" to start inet server" 1>&2
169 fi
170
171 %postun -n rsyncd-inetd
172 if [ "$1" = "0" -a -f /var/lock/subsys/rc-inetd ]; then
173         /etc/rc.d/init.d/rc-inetd reload 1>&2
174 fi
175
176 %post -n rsyncd-standalone
177 /sbin/chkconfig --add rsyncd
178 if [ -f /var/lock/subsys/rsyncd ]; then
179         /etc/rc.d/init.d/rsyncd restart 1>&2
180 else
181         echo "Type \"/etc/rc.d/init.d/rsyncd start\" to start rsync server" 1>&2
182 fi
183
184 %preun -n rsyncd-standalone
185 if [ "$1" = "0" ]; then
186         if [ -f /var/lock/subsys/rsyncd ]; then
187                 /etc/rc.d/init.d/rsyncd stop 1>&2
188         fi
189         /sbin/chkconfig --del rsyncd
190 fi
191
192 %files
193 %defattr(644,root,root,755)
194 %doc README
195 %attr(755,root,root) %{_bindir}/*
196 %{_mandir}/man1/*
197
198 %files -n rsyncd-inetd
199 %defattr(644,root,root,755)
200 %dir %{_sysconfdir}
201 %attr(640,root,root) %config(noreplace) %{_sysconfdir}/rsyncd.conf
202 %attr(640,root,root) %config(noreplace) %{_sysconfdir}/rsyncd.secrets
203 %attr(640,root,root) /etc/sysconfig/rc-inetd/rsyncd
204 %{_mandir}/man5/*
205
206 %files -n rsyncd-standalone
207 %defattr(644,root,root,755)
208 %dir %{_sysconfdir}
209 %attr(640,root,root) %config(noreplace) %{_sysconfdir}/rsyncd.conf
210 %attr(640,root,root) %config(noreplace) %{_sysconfdir}/rsyncd.secrets
211 %attr(640,root,root) %config(noreplace) /etc/sysconfig/rsyncd
212 %attr(755,root,root) /etc/rc.d/init.d/rsyncd
213 %{_mandir}/man5/*
This page took 1.609492 seconds and 3 git commands to generate.