rsync/rsync.spec

Name: rsync
Summary: Program for synchronizing files over a network
Version: 3.0.9
Release: 2
License: GPL
Group: Applications/Internet
URL: http://rsync.samba.org/
Description: Rsync uses a reliable algorithm to bring remote and host files into sync very quickly. Rsync is fast because it just sends the differences in the files over the network instead of sending the complete files. Rsync is often used as a very powerful mirroring process or just as a more capable replacement for the rcp command. A technical report which describes the rsync algorithm is included in this package.

CentOS 7 x86_64

The build could not start because the following file is missing: rsync-3.0.9.tar.gz

Build Status

CentOS 6 x86_64

The build could not start because the following file is missing: rsync-3.0.9.tar.gz

Build Status

Contents

The spec file used by the build system currently has the following contents:

# $Id$
# Authority: dag
# Upstream: Martin Pool <mbp$sourcefrog,net>

# Rationale: rsync 2.6.3+ uses less resources and has lots of improvements
### EL6 ships with rsync-3.0.6-5.el6
### EL5 ships with rsync-2.6.8-3.1
### EL4 ships with rsync-2.6.3-1
### EL3 ships with rsync-2.5.7-5.3E
### EL2 ships with rsync-2.5.7-3.21AS.1
# Tag: rfx

%{?el2:%define _without_acl 1}
%{?el2:%define _without_attr 1}

Summary: Program for synchronizing files over a network
Name: rsync
Version: 3.0.9
Release: 2%{?dist}
License: GPL
Group: Applications/Internet
URL: http://rsync.samba.org/

Source: http://rsync.samba.org/ftp/rsync/rsync-%{version}.tar.gz
Patch0: http://tobi.oetiker.ch/patches/rsync-3.0.9-3-fadvise.patch
Patch1: rsync-3.0.9-direct-io.patch
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root

%{!?_without_acl:BuildRequires: libacl-devel}
%{!?_without_attr:BuildRequires: libattr-devel}

%description
Rsync uses a reliable algorithm to bring remote and host files into
sync very quickly. Rsync is fast because it just sends the differences
in the files over the network instead of sending the complete
files. Rsync is often used as a very powerful mirroring process or
just as a more capable replacement for the rcp command. A technical
report which describes the rsync algorithm is included in this
package.

%prep
%setup
%patch0 -p1 -b .fadvise
%patch1 -p0 -b .direct-io

%{__cat} <<EOF >rsync.xinet
# default: off
# description: The rsync server is a good addition to an ftp server, as it \
#   allows crc checksumming etc.
service rsync
{
    disable = yes
    socket_type     = stream
    wait            = no
    user            = root
    server          = %{_bindir}/rsync
    server_args     = --daemon
    log_on_failure  += USERID
}
EOF

%build
%configure
%{__make} %{?_smp_mflags}

%install
%{__rm} -rf %{buildroot}
%{__make} install DESTDIR="%{buildroot}"
%{__install} -Dp -m0644 rsync.xinet %{buildroot}%{_sysconfdir}/xinetd.d/rsync

%clean
%{__rm} -rf %{buildroot}

%files
%defattr(-, root, root, 0755)
%doc COPYING INSTALL NEWS OLDNEWS README tech_report.tex TODO *.txt doc/ support/
%doc %{_mandir}/man1/rsync.1*
%doc %{_mandir}/man5/rsyncd.conf.5*
%config(noreplace) %{_sysconfdir}/xinetd.d/rsync
%{_bindir}/rsync

%changelog
* Thu Feb 14 2013 Dag Wieers <dag@wieers.com> - 3.0.9-2
- Added fadvise patch.

* Sat Sep 24 2011 Dag Wieers <dag@wieers.com> - 3.0.9-1
- Updated to release 3.0.9.

* Mon Mar 28 2011 Dag Wieers <dag@wieers.com> - 3.0.8-1
- Updated to release 3.0.8.

* Fri Jan 01 2010 Dag Wieers <dag@wieers.com> - 3.0.7-1
- Updated to release 3.0.7.

* Sun May 10 2009 Dag Wieers <dag@wieers.com> - 3.0.6-1
- Updated to release 3.0.6.

* Mon Dec 29 2008 Dag Wieers <dag@wieers.com> - 3.0.5-1
- Updated to release 3.0.5.

* Thu Sep 11 2008 Dag Wieers <dag@wieers.com> - 3.0.4-1
- Updated to release 3.0.4.

* Mon Jun 30 2008 Dag Wieers <dag@wieers.com> - 3.0.3-1
- Updated to release 3.0.3.

* Tue Apr 08 2008 Dag Wieers <dag@wieers.com> - 3.0.2-1
- Updated to release 3.0.2.

* Fri Apr 04 2008 Dag Wieers <dag@wieers.com> - 3.0.1-1
- Updated to release 3.0.1.

* Sat Mar 01 2008 Dag Wieers <dag@wieers.com> - 3.0.0-1
- Updated to release 3.0.0.

* Tue Nov 03 2006 Dag Wieers <dag@wieers.com> - 2.6.9-1
- Updated to release 2.6.9.

* Sun Apr 23 2006 Dag Wieers <dag@wieers.com> - 2.6.8-1
- Updated to release 2.6.8.

* Fri Mar 17 2006 Dag Wieers <dag@wieers.com> - 2.6.7-2
- Added stunnel and exclude patch from upstream.

* Sat Mar 11 2006 Dag Wieers <dag@wieers.com> - 2.6.7-1
- Updated to release 2.6.7.

* Fri Aug 05 2005 Dag Wieers <dag@wieers.com> - 2.6.6-1
- Updated to release 2.6.6.

* Mon Jun 06 2005 Dag Wieers <dag@wieers.com> - 2.6.5-1
- Updated to release 2.6.5.

* Thu Mar 31 2005 Dag Wieers <dag@wieers.com> - 2.6.4-1
- Updated to release 2.6.4.

* Tue Nov 23 2004 Dag Wieers <dag@wieers.com> - 2.6.3-1
- Updated to release 2.6.3.

* Wed Sep 22 2004 Dag Wieers <dag@wieers.com> - 2.6.3-0.pre2
- Updated to release 2.6.3pre2.

* Wed Aug 18 2004 Dag Wieers <dag@wieers.com> - 2.6.3-0.pre1
- Updated to release 2.6.3pre1.

* Sun Jun 13 2004 Dag Wieers <dag@wieers.com> - 2.6.2-1
- Updated to release 2.6.2.

* Sat Sep 13 2003 Dag Wieers <dag@wieers.com> - 2.5.6-0
- Initial package. (using DAR)