rdiff-backup.spec 3.4 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091
  1. ##
  2. ## rdiff-backup.spec -- OpenPKG RPM Specification
  3. ## Copyright (c) 2000-2003 Cable & Wireless Deutschland GmbH
  4. ## Copyright (c) 2000-2003 The OpenPKG Project <http://www.openpkg.org/>
  5. ## Copyright (c) 2000-2003 Ralf S. Engelschall <rse@engelschall.com>
  6. ##
  7. ## Permission to use, copy, modify, and distribute this software for
  8. ## any purpose with or without fee is hereby granted, provided that
  9. ## the above copyright notice and this permission notice appear in all
  10. ## copies.
  11. ##
  12. ## THIS SOFTWARE IS PROVIDED ``AS IS'' AND ANY EXPRESSED OR IMPLIED
  13. ## WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF
  14. ## MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
  15. ## IN NO EVENT SHALL THE AUTHORS AND COPYRIGHT HOLDERS AND THEIR
  16. ## CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
  17. ## SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
  18. ## LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF
  19. ## USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
  20. ## ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
  21. ## OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT
  22. ## OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
  23. ## SUCH DAMAGE.
  24. ##
  25. # package information
  26. Name: rdiff-backup
  27. Summary: Remote Incremental Backup
  28. URL: http://rdiff-backup.stanford.edu/
  29. Vendor: Ben Escoto
  30. Packager: The OpenPKG Project
  31. Distribution: OpenPKG [EVAL]
  32. Group: Network
  33. License: GPL
  34. Version: 0.11.1
  35. Release: 20021231
  36. # list of sources
  37. Source0: http://rdiff-backup.stanford.edu/rdiff-backup-%{version}.tar.gz
  38. # build information
  39. Prefix: %{l_prefix}
  40. BuildRoot: %{l_buildroot}
  41. BuildPreReq: OpenPKG, openpkg >= 20021230
  42. PreReq: OpenPKG, openpkg >= 20021230, librsync, python
  43. AutoReq: no
  44. AutoReqProv: no
  45. %description
  46. rdiff-backup is a script that backs up one directory to another. The
  47. target directory ends up a copy of the source directory, but extra
  48. reverse diffs are stored in a special subdirectory of that target
  49. directory, so you can still recover files lost some time ago. The
  50. idea is to combine the best features of a mirror and an incremental
  51. backup. rdiff-backup also preserves subdirectories, symlinks,
  52. special files, permissions, uid/gid ownership (if it is running as
  53. root), and modification times. Finally, rdiff-backup can operate
  54. in a bandwidth efficient manner over a pipe, like rsync. Thus you
  55. can use rdiff-backup and ssh to securely back a hard drive up to a
  56. remote location, and only the differences will be transmitted.
  57. %options
  58. %prep
  59. %setup -q
  60. %build
  61. # use plain sed(1) instead of shtool subst, because
  62. # currently shtool still has problems with the sticks.
  63. sed -e 's;#!/usr/bin/env python;#!%{l_prefix}/bin/python;' \
  64. -e "s;'rdiff';'%{l_prefix}/bin/rdiff';g" \
  65. <rdiff-backup >rdiff-backup.n
  66. mv rdiff-backup.n rdiff-backup
  67. %install
  68. rm -rf $RPM_BUILD_ROOT
  69. %{l_shtool} mkdir -f -p -m 755 \
  70. $RPM_BUILD_ROOT%{l_prefix}/bin \
  71. $RPM_BUILD_ROOT%{l_prefix}/man/man1
  72. %{l_shtool} install -c -m 755 \
  73. rdiff-backup $RPM_BUILD_ROOT%{l_prefix}/bin/
  74. %{l_shtool} install -c -m 644 \
  75. rdiff-backup.1 $RPM_BUILD_ROOT%{l_prefix}/man/man1/
  76. %{l_rpmtool} files -v -ofiles -r$RPM_BUILD_ROOT %{l_files_std}
  77. %files -f files
  78. %clean
  79. rm -rf $RPM_BUILD_ROOT