source: spec/trunk/SPECS/rsync.spec@ 1330

Last change on this file since 1330 was 227, checked in by Yuri Dario, 14 years ago

spec: added rsync build.

File size: 1.9 KB
Line 
1%define isprerelease 0
2
3%if %isprerelease
4%define prerelease pre1
5%endif
6
7Summary: A program for synchronizing files over a network
8Name: rsync
9Version: 3.0.9
10Release: 1%{?prerelease}%{?dist}
11Group: Applications/Internet
12URL: http://rsync.samba.org/
13License: GPLv3+
14
15Source0: ftp://rsync.samba.org/pub/rsync/rsync-%{version}%{?prerelease}.tar.gz
16
17
18Patch0: rsync-3.0.7-buf-overflow.patch
19Patch1: rsync-os2.diff
20
21#BuildRequires: libacl-devel
22#BuildRequires: libattr-devel
23#BuildRequires: autoconf
24BuildRequires: popt-devel
25
26BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
27
28%description
29Rsync uses a reliable algorithm to bring remote and host files into
30sync very quickly. Rsync is fast because it just sends the differences
31in the files over the network instead of sending the complete
32files. Rsync is often used as a very powerful mirroring process or
33just as a more capable replacement for the rcp command. A technical
34report which describes the rsync algorithm is included in this
35package.
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
48chmod -x support/*
49
50%patch0 -p1 -b .buf-overflow
51%patch1 -p1 -b .os2~
52
53%build
54rm -fr autom4te.cache
55#autoconf
56#autoheader
57
58export CONFIG_SHELL="/bin/sh"
59export 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
64make proto
65make %{?_smp_mflags} CFLAGS="$RPM_OPT_FLAGS"
66
67%install
68rm -rf $RPM_BUILD_ROOT
69
70%makeinstall INSTALLCMD='install -p' INSTALLMAN='install -p'
71
72
73%clean
74rm -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
Note: See TracBrowser for help on using the repository browser.