rsync.spec 2.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475
  1. Summary: A fast, versatile, remote (and local) file-copying tool
  2. Name: rsync
  3. Version: 3.0.8
  4. %define fullversion %{version}
  5. Release: 1
  6. %define srcdir src
  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/
  11. Prefix: %{_prefix}
  12. BuildRoot: /var/tmp/%{name}-root
  13. License: GPL
  14. %description
  15. Rsync is a fast and extraordinarily versatile file copying tool. It can
  16. copy locally, to/from another host over any remote shell, or to/from a
  17. remote rsync daemon. It offers a large number of options that control
  18. every aspect of its behavior and permit very flexible specification of the
  19. set of files to be copied. It is famous for its delta-transfer algorithm,
  20. which reduces the amount of data sent over the network by sending only the
  21. differences between the source files and the existing files in the
  22. destination. Rsync is widely used for backups and mirroring and as an
  23. improved copy command for everyday use.
  24. %prep
  25. # Choose one -- setup source only, or setup source + rsync-patches:
  26. %setup -q -n rsync-%{fullversion}
  27. #%setup -q -b1 -n rsync-%{fullversion}
  28. # If you you used "%setup -q -b1", choose the patches you wish to apply:
  29. #patch -p1 <patches/acls.diff
  30. #patch -p1 <patches/xattrs.diff
  31. #patch -p1 <patches/remote-option.diff
  32. #patch -p1 <patches/db.diff
  33. # Avoid extra perl dependencies for scripts going into doc dir.
  34. chmod -x support/*
  35. %build
  36. #./prepare-source
  37. %configure
  38. make
  39. %install
  40. rm -rf $RPM_BUILD_ROOT
  41. %makeinstall
  42. mkdir -p $RPM_BUILD_ROOT/etc/xinetd.d
  43. install -m 644 packaging/lsb/rsync.xinetd $RPM_BUILD_ROOT/etc/xinetd.d/rsync
  44. #install -p -m 755 support/rsyncdb $RPM_BUILD_ROOT/usr/bin/rsyncdb
  45. %clean
  46. rm -rf $RPM_BUILD_ROOT
  47. %files
  48. %defattr(-,root,root)
  49. %doc COPYING NEWS OLDNEWS README support/ tech_report.tex
  50. %config(noreplace) /etc/xinetd.d/rsync
  51. %{_prefix}/bin/rsync*
  52. %{_mandir}/man1/rsync.1*
  53. %{_mandir}/man5/rsyncd.conf.5*
  54. %changelog
  55. * Sat Mar 26 2011 Wayne Davison <wayned@samba.org>
  56. Released 3.0.8.
  57. * Fri Mar 21 2008 Wayne Davison <wayned@samba.org>
  58. Added installation of /etc/xinetd.d/rsync file and some commented-out
  59. lines that demonstrate how to use the rsync-patches tar file.