Factor out common logic of unchanged_attrs and itemize into report_ATTR
[rsync/rsync.git] / packaging / lsb / rsync.spec
... / ...
CommitLineData
1Summary: A fast, versatile, remote (and local) file-copying tool
2Name: rsync
3Version: 3.0.3
4%define fullversion %{version}
5Release: 1
6%define srcdir src
7Group: Applications/Internet
8Source0: http://rsync.samba.org/ftp/rsync/%{srcdir}/rsync-%{fullversion}.tar.gz
9#Source1: http://rsync.samba.org/ftp/rsync/%{srcdir}/rsync-patches-%{fullversion}.tar.gz
10URL: http://rsync.samba.org/
11
12Prefix: %{_prefix}
13BuildRoot: /var/tmp/%{name}-root
14License: GPL
15
16%description
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.
26
27%prep
28# Choose one -- setup source only, or setup source + rsync-patches:
29%setup -q -n rsync-%{fullversion}
30#%setup -q -b1 -n rsync-%{fullversion}
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/remote-option.diff
36#patch -p1 <patches/db.diff
37
38# Avoid extra perl dependencies for scripts going into doc dir.
39chmod -x support/*
40
41%build
42#./prepare-source
43%configure
44
45make
46
47%install
48rm -rf $RPM_BUILD_ROOT
49
50%makeinstall
51
52mkdir -p $RPM_BUILD_ROOT/etc/xinetd.d
53install -m 644 packaging/lsb/rsync.xinetd $RPM_BUILD_ROOT/etc/xinetd.d/rsync
54
55#install -p -m 755 support/rsyncdb $RPM_BUILD_ROOT/usr/bin/rsyncdb
56
57%clean
58rm -rf $RPM_BUILD_ROOT
59
60%files
61%defattr(-,root,root)
62%doc COPYING NEWS OLDNEWS README support/ tech_report.tex
63%config(noreplace) /etc/xinetd.d/rsync
64%{_prefix}/bin/rsync*
65%{_mandir}/man1/rsync.1*
66%{_mandir}/man5/rsyncd.conf.5*
67
68%changelog
69* Sun Jun 29 2008 Wayne Davison <wayned@samba.org>
70Released 3.0.3.
71
72* Fri Mar 21 2008 Wayne Davison <wayned@samba.org>
73Added installation of /etc/xinetd.d/rsync file and some commented-out
74lines that demonstrate how to use the rsync-patches tar file.