| 1 | %define isprerelease 0
|
|---|
| 2 |
|
|---|
| 3 | %if %isprerelease
|
|---|
| 4 | %define prerelease pre1
|
|---|
| 5 | %endif
|
|---|
| 6 |
|
|---|
| 7 | Summary: A program for synchronizing files over a network
|
|---|
| 8 | Name: rsync
|
|---|
| 9 | Version: 3.0.9
|
|---|
| 10 | Release: 1%{?prerelease}%{?dist}
|
|---|
| 11 | Group: Applications/Internet
|
|---|
| 12 | URL: http://rsync.samba.org/
|
|---|
| 13 | License: GPLv3+
|
|---|
| 14 |
|
|---|
| 15 | Source0: ftp://rsync.samba.org/pub/rsync/rsync-%{version}%{?prerelease}.tar.gz
|
|---|
| 16 |
|
|---|
| 17 |
|
|---|
| 18 | Patch0: rsync-3.0.7-buf-overflow.patch
|
|---|
| 19 | Patch1: rsync-os2.diff
|
|---|
| 20 |
|
|---|
| 21 | #BuildRequires: libacl-devel
|
|---|
| 22 | #BuildRequires: libattr-devel
|
|---|
| 23 | #BuildRequires: autoconf
|
|---|
| 24 | BuildRequires: popt-devel
|
|---|
| 25 |
|
|---|
| 26 | BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
|
|---|
| 27 |
|
|---|
| 28 | %description
|
|---|
| 29 | Rsync uses a reliable algorithm to bring remote and host files into
|
|---|
| 30 | sync very quickly. Rsync is fast because it just sends the differences
|
|---|
| 31 | in the files over the network instead of sending the complete
|
|---|
| 32 | files. Rsync is often used as a very powerful mirroring process or
|
|---|
| 33 | just as a more capable replacement for the rcp command. A technical
|
|---|
| 34 | report which describes the rsync algorithm is included in this
|
|---|
| 35 | package.
|
|---|
| 36 |
|
|---|
| 37 | %prep
|
|---|
| 38 | # TAG: for pre versions use
|
|---|
| 39 |
|
|---|
| 40 | %if %isprerelease
|
|---|
| 41 | %setup -q -n rsync-%{version}%{?prerelease}
|
|---|
| 42 | %setup -q -b 1 -n rsync-%{version}%{?prerelease}
|
|---|
| 43 | %else
|
|---|
| 44 | %setup -q
|
|---|
| 45 | %setup -q
|
|---|
| 46 | %endif
|
|---|
| 47 |
|
|---|
| 48 | chmod -x support/*
|
|---|
| 49 |
|
|---|
| 50 | %patch0 -p1 -b .buf-overflow
|
|---|
| 51 | %patch1 -p1 -b .os2~
|
|---|
| 52 |
|
|---|
| 53 | %build
|
|---|
| 54 | rm -fr autom4te.cache
|
|---|
| 55 | #autoconf
|
|---|
| 56 | #autoheader
|
|---|
| 57 |
|
|---|
| 58 | export CONFIG_SHELL="/bin/sh"
|
|---|
| 59 | export LDFLAGS="-Zbin-files -Zhigh-mem -Zomf -Zargs-wild -Zargs-resp"
|
|---|
| 60 | %configure \
|
|---|
| 61 | --enable-xattr-support \
|
|---|
| 62 | "--cache-file=%{_topdir}/cache/%{name}-%{_target_cpu}.cache"
|
|---|
| 63 |
|
|---|
| 64 | make proto
|
|---|
| 65 | make %{?_smp_mflags} CFLAGS="$RPM_OPT_FLAGS"
|
|---|
| 66 |
|
|---|
| 67 | %install
|
|---|
| 68 | rm -rf $RPM_BUILD_ROOT
|
|---|
| 69 |
|
|---|
| 70 | %makeinstall INSTALLCMD='install -p' INSTALLMAN='install -p'
|
|---|
| 71 |
|
|---|
| 72 |
|
|---|
| 73 | %clean
|
|---|
| 74 | rm -rf $RPM_BUILD_ROOT
|
|---|
| 75 |
|
|---|
| 76 | %files
|
|---|
| 77 | %defattr(-,root,root)
|
|---|
| 78 | %doc COPYING NEWS OLDNEWS README support/ tech_report.tex
|
|---|
| 79 | #%config(noreplace) %{_sysconfdir}/xinetd.d/%{name}
|
|---|
| 80 | %{_bindir}/%{name}.exe
|
|---|
| 81 | %{_mandir}/man1/%{name}.1*
|
|---|
| 82 | %{_mandir}/man5/rsyncd.conf.5*
|
|---|
| 83 |
|
|---|
| 84 | %changelog
|
|---|