1 |
%define name zsync |
2 |
%define version 0.6.2 |
3 |
%define release %mkrel 1 |
4 |
|
5 |
Summary: An rsync like transfer software over http |
6 |
Name: %{name} |
7 |
Version: %{version} |
8 |
Release: %{release} |
9 |
Source0: %{name}-%{version}.tar.bz2 |
10 |
License: Artistic |
11 |
Group: Networking/File transfer |
12 |
Url: http://zsync.moria.org.uk/ |
13 |
BuildRoot: %{_tmppath}/%{name}-buildroot |
14 |
|
15 |
%description |
16 |
zsync is a file transfer program. It allows you to download a file |
17 |
from a remote web server, where you have a copy of an older version of |
18 |
the file on your computer already. zsync downloads only the new parts |
19 |
of the file. It uses the same algorithm as rsync. |
20 |
|
21 |
zsync does not require any special server software or a shell account |
22 |
on the remote system (rsync, in comparison, requires that you have an |
23 |
rsh or ssh account, or that the remote system runs rsyncd). Instead, |
24 |
it uses a control file - a .zsync file - that describes the file to be |
25 |
downloaded and enables zsync to work out which blocks it needs. This |
26 |
file can be created by the admin of the web server hosting the |
27 |
download, and placed alongside the file to download - it is generated |
28 |
once, then any downloaders with zsync can use it. |
29 |
|
30 |
%prep |
31 |
%setup -q |
32 |
|
33 |
%build |
34 |
%configure |
35 |
%make |
36 |
|
37 |
%install |
38 |
rm -rf $RPM_BUILD_ROOT |
39 |
%makeinstall |
40 |
|
41 |
%__rm -fr %buildroot%_datadir/doc |
42 |
|
43 |
%clean |
44 |
rm -rf $RPM_BUILD_ROOT |
45 |
|
46 |
%files |
47 |
%defattr(-,root,root) |
48 |
%doc NEWS README |
49 |
%_bindir/* |
50 |
%_mandir/man?/* |
51 |
|
52 |
|
53 |
|