rdiff-backup.spec 3.4 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889
  1. ##
  2. ## rdiff-backup.spec -- OpenPKG RPM Specification
  3. ## Copyright (c) 2000-2002 Cable & Wireless Deutschland GmbH
  4. ## Copyright (c) 2000-2002 The OpenPKG Project <http://www.openpkg.org/>
  5. ## Copyright (c) 2000-2002 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: Demote Incremental Backup
  28. URL: http://www.stanford.edu/~bescoto/rdiff-backup/
  29. Vendor: Ben Escoto
  30. Packager: The OpenPKG Project
  31. Distribution: OpenPKG [EXP]
  32. Group: Network
  33. License: GPL
  34. Version: 0.6.0
  35. Release: 20020315
  36. # list of sources
  37. Source0: http://www.stanford.edu/~bescoto/rdiff-backup/rdiff-backup-%{version}.tar.gz
  38. # build information
  39. Prefix: %{l_prefix}
  40. BuildRoot: %{l_buildroot}
  41. BuildPreReq: OpenPKG, openpkg >= 20020206
  42. PreReq: OpenPKG, openpkg >= 20020206, 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. %prep
  58. %setup -q
  59. %build
  60. # use plain sed(1) instead of shtool subst, because
  61. # currently shtool still has problems with the sticks.
  62. sed -e 's;#!/usr/bin/env python;#!%{l_prefix}/bin/python;' \
  63. -e "s;'rdiff';'%{l_prefix}/bin/rdiff';g" \
  64. <rdiff-backup >rdiff-backup.n
  65. mv rdiff-backup.n rdiff-backup
  66. %install
  67. rm -rf $RPM_BUILD_ROOT
  68. %{l_shtool} mkdir -f -p -m 755 \
  69. $RPM_BUILD_ROOT%{l_prefix}/bin \
  70. $RPM_BUILD_ROOT%{l_prefix}/man/man1
  71. %{l_shtool} install -c -m 755 \
  72. rdiff-backup $RPM_BUILD_ROOT%{l_prefix}/bin/
  73. %{l_shtool} install -c -m 644 \
  74. rdiff-backup.1 $RPM_BUILD_ROOT%{l_prefix}/man/man1/
  75. %{l_rpmtool} files -v -ofiles -r$RPM_BUILD_ROOT %{l_files_std}
  76. %files -f files
  77. %clean
  78. rm -rf $RPM_BUILD_ROOT