Preparing for release of 3.1.0pre1
[rsync.git] / packaging / lsb / rsync.spec
blobdbd0c3ff5aa28f4b65034e9e311718745f28a741
1 Summary: A fast, versatile, remote (and local) file-copying tool
2 Name: rsync
3 Version: 3.1.0
4 %define fullversion %{version}pre1
5 Release: 0.1.pre1
6 %define srcdir src-previews
7 Group: Applications/Internet
8 Source0: 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
10 URL: http://rsync.samba.org/
12 Prefix: %{_prefix}
13 BuildRoot: /var/tmp/%{name}-root
14 License: GPL
16 %package ssl-client
17 Summary: Provides rsync-ssl
18 Requires: stunnel >= 4
20 %package ssl-daemon
21 Summary: An stunnel config file to support ssl rsync daemon connections.
22 Requires: stunnel >= 4
24 %description
25 Rsync is a fast and extraordinarily versatile file copying tool. It can
26 copy locally, to/from another host over any remote shell, or to/from a
27 remote rsync daemon. It offers a large number of options that control
28 every aspect of its behavior and permit very flexible specification of the
29 set of files to be copied. It is famous for its delta-transfer algorithm,
30 which reduces the amount of data sent over the network by sending only the
31 differences between the source files and the existing files in the
32 destination. Rsync is widely used for backups and mirroring and as an
33 improved copy command for everyday use.
35 %description ssl-client
36 Provides the rsync-ssl script that makes use of stunnel 4 to open an ssl
37 connection to an rsync daemon (on port 874). This setup does NOT require
38 any local stunnel daemon to be running to connect to the remote ssl rsyncd.
40 %description ssl-daemon
41 Provides a config file for stunnel that will (if you start your stunnel
42 service) cause stunnel to listen for ssl rsync-daemon connections and run
43 "rsync --daemon" to handle them.
45 %prep
46 # Choose one -- setup source only, or setup source + rsync-patches:
47 %setup -q -n rsync-%{fullversion}
48 #%setup -q -b1 -n rsync-%{fullversion}
50 # If you you used "%setup -q -b1 ...", choose the patches you wish to apply:
51 #patch -p1 <patches/acls.diff
52 #patch -p1 <patches/xattrs.diff
53 #patch -p1 <patches/remote-option.diff
54 #patch -p1 <patches/db.diff
56 # Avoid extra perl dependencies for scripts going into doc dir.
57 chmod -x support/*
59 %build
60 #./prepare-source
61 %configure
63 make
65 %install
66 rm -rf $RPM_BUILD_ROOT
67 make install install-ssl-client install-ssl-daemon DESTDIR=$RPM_BUILD_ROOT
69 mkdir -p $RPM_BUILD_ROOT/etc/xinetd.d $RPM_BUILD_ROOT/etc/rsync-ssl/certs
70 install -m 644 packaging/lsb/rsync.xinetd $RPM_BUILD_ROOT/etc/xinetd.d/rsync
72 %clean
73 rm -rf $RPM_BUILD_ROOT
75 %files
76 %defattr(-,root,root)
77 %doc COPYING NEWS OLDNEWS README support/ tech_report.tex
78 %config(noreplace) /etc/xinetd.d/rsync
79 %{_prefix}/bin/rsync
80 %{_mandir}/man1/rsync.1*
81 %{_mandir}/man5/rsyncd.conf.5*
83 %files ssl-client
84 %{_prefix}/bin/rsync-ssl
85 %{_prefix}/bin/stunnel-rsync
87 %files ssl-daemon
88 %config(noreplace) /etc/stunnel/rsyncd.conf
89 %dir /etc/rsync-ssl/certs
91 %changelog
92 * Sun Jul 28 2013 Wayne Davison <wayned@samba.org>
93 Released 3.1.0pre1.
95 * Fri Mar 21 2008 Wayne Davison <wayned@samba.org>
96 Added installation of /etc/xinetd.d/rsync file and some commented-out
97 lines that demonstrate how to use the rsync-patches tar file.