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