Define a "srcdir" in the spec file and use it in the URLs for the
[rsync/rsync.git] / packaging / lsb / rsync.spec
CommitLineData
4cf94b8a 1Summary: A fast, versatile, remote (and local) file-copying tool
0b25efc1 2Name: rsync
56158b7e 3Version: 3.0.1
8cd3c6dc
WD
4%define fullversion %{version}pre3
5Release: 0.1.pre3
6fd2c27f 6%define srcdir src-previews
2da9dda1 7Group: Applications/Internet
6fd2c27f
WD
8Source0: http://rsync.samba.org/ftp/rsync/%{srcdir}/rsync-%{fullversion}.tar.gz
9Source1: http://rsync.samba.org/ftp/rsync/%{srcdir}/rsync-patches-%{fullversion}.tar.gz
2da9dda1
WD
10URL: http://rsync.samba.org/
11
12Prefix: %{_prefix}
13BuildRoot: /var/tmp/%{name}-root
14License: GPL
0b25efc1 15
16%description
4cf94b8a
WD
17Rsync is a fast and extraordinarily versatile file copying tool. It can
18copy locally, to/from another host over any remote shell, or to/from a
19remote rsync daemon. It offers a large number of options that control
20every aspect of its behavior and permit very flexible specification of the
21set of files to be copied. It is famous for its delta-transfer algorithm,
22which reduces the amount of data sent over the network by sending only the
23differences between the source files and the existing files in the
24destination. Rsync is widely used for backups and mirroring and as an
25improved copy command for everyday use.
2da9dda1
WD
26
27%prep
c085ece6 28# Choose one -- setup source only, or setup source + rsync-patches:
19173d22
WD
29%setup -q -n rsync-%{fullversion}
30#%setup -q -b1 -n rsync-%{fullversion}
c085ece6
WD
31
32# If you you used "%setup -q -b1", choose the patches you wish to apply:
33#patch -p1 <patches/acls.diff
34#patch -p1 <patches/xattrs.diff
35#patch -p1 <patches/checksum-reading.diff
2da9dda1
WD
36
37%build
38%configure
39
40make
0b25efc1 41
2da9dda1
WD
42%install
43rm -rf $RPM_BUILD_ROOT
44
45%makeinstall
46
c085ece6
WD
47mkdir -p $RPM_BUILD_ROOT/etc/xinetd.d
48install -m 644 packaging/lsb/rsync.xinetd $RPM_BUILD_ROOT/etc/xinetd.d/rsync
49
2da9dda1
WD
50%clean
51rm -rf $RPM_BUILD_ROOT
0b25efc1 52
2da9dda1
WD
53%files
54%defattr(-,root,root)
55%doc COPYING README tech_report.tex
c085ece6 56%config(noreplace) /etc/xinetd.d/rsync
2da9dda1
WD
57%{_prefix}/bin/rsync
58%{_mandir}/man1/rsync.1*
59%{_mandir}/man5/rsyncd.conf.5*
0b25efc1 60
61%changelog
8cd3c6dc
WD
62* Sun Mar 30 2008 Wayne Davison <wayned@samba.org>
63Released 3.0.1pre3.
c085ece6
WD
64
65* Fri Mar 21 2008 Wayne Davison <wayned@samba.org>
66Added installation of /etc/xinetd.d/rsync file and some commented-out
67lines that demonstrate how to use the rsync-patches tar file.