rdiff-backup-vl.spec 3.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108
  1. %{!?python_sitearch: %define python_sitearch %(%{__python} -c "from distutils.sysconfig import get_python_lib; print get_python_lib(1)")}
  2. Summary: Convenient and transparent local/remote incremental mirror/backup
  3. Name: rdiff-backup
  4. Version: 1.0.5
  5. Release: 2%{?_dist_release}
  6. URL: http://www.nongnu.org/rdiff-backup/
  7. Source: http://savannah.nongnu.org/download/%{name}/%{name}-%{version}.tar.gz
  8. License: GPL
  9. Group: Applications/Internet
  10. BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root
  11. BuildRequires: python-devel >= 2.2, librsync-devel >= 0.9.6
  12. %description
  13. rdiff-backup is a script, written in Python, that backs up one
  14. directory to another and is intended to be run periodically (nightly
  15. from cron for instance). The target directory ends up a copy of the
  16. source directory, but extra reverse diffs are stored in the target
  17. directory, so you can still recover files lost some time ago. The idea
  18. is to combine the best features of a mirror and an incremental
  19. backup. rdiff-backup can also operate in a bandwidth efficient manner
  20. over a pipe, like rsync. Thus you can use rdiff-backup and ssh to
  21. securely back a hard drive up to a remote location, and only the
  22. differences from the previous backup will be transmitted.
  23. %prep
  24. %setup -q
  25. %build
  26. python setup.py build
  27. %install
  28. rm -rf $RPM_BUILD_ROOT
  29. python setup.py install --root $RPM_BUILD_ROOT
  30. # Produce .pyo files for %ghost directive later
  31. python -Oc 'from compileall import *; compile_dir("'$RPM_BUILD_ROOT/%{python_sitearch}/rdiff_backup'")'
  32. %clean
  33. rm -rf $RPM_BUILD_ROOT
  34. %files
  35. %defattr(-,root,root)
  36. %doc CHANGELOG COPYING FAQ.html README
  37. %{_bindir}/rdiff-backup
  38. %{_mandir}/man1/rdiff-backup*
  39. %dir %{python_sitearch}/rdiff_backup
  40. %{python_sitearch}/rdiff_backup/*.py
  41. %{python_sitearch}/rdiff_backup/*.pyc
  42. %{python_sitearch}/rdiff_backup/*.so
  43. %{python_sitearch}/rdiff_backup/*.pyo
  44. %changelog
  45. * Mon Apr 19 2010 Shu KONNO <owa@bg.wakwak.com> 1.0.5-2
  46. - rebuilt with python-2.6
  47. * Mon Jul 21 2008 Shu KONNO <owa@bg.wakwak.com> 1.0.5-1vl5
  48. - rebuilt with python-2.5.2
  49. - applied new versioning policy
  50. * Mon Jun 25 2007 Daisuke SUZUKI <daisuke@linux.or.jp> 1.0.5-0vl1
  51. - initial build for Vine Linux
  52. * Sun Dec 17 2006 Kevin Fenzi <kevin@tummy.com> - 1.0.5-2
  53. - Rebuild for python 2.5
  54. * Tue Dec 5 2006 Gavin Henry <ghenry@suretecsystems.com> - 0:1.0.5-1
  55. - Update to latest version
  56. * Thu Oct 05 2006 Christian Iseli <Christian.Iseli@licr.org> 1.0.4-3
  57. - rebuilt for unwind info generation, broken in gcc-4.1.1-21
  58. * Tue Sep 19 2006 Kevin Fenzi <kevin@tummy.com> - 1.0.4-2
  59. - Build for fc6
  60. - No longer need to ghost pyo files (bug 205431)
  61. * Fri Dec 9 2005 Gavin Henry <ghenry@suretecsystems.com> - 0:1.0.4-1
  62. - Update to latest version
  63. * Fri Dec 9 2005 Gavin Henry <ghenry@suretecsystems.com> - 0:1.0.3-1
  64. - Update to latest version
  65. * Wed Sep 14 2005 Gavin Henry <ghenry@suretecsystems.com> - 0:1.0.1-1
  66. - New version
  67. * Thu Aug 15 2005 Gavin Henry <ghenry@suretecsystems.com> - 0:1.0.0-1
  68. - Latest version
  69. * Wed May 11 2005 Bill Nottingham <notting@redhat.com> - 0:0.12.7-3
  70. - rebuilt
  71. * Fri Apr 7 2005 Michael Schwendt <mschwendt[AT]users.sf.net>
  72. - rebuilt
  73. * Sat Jan 22 2005 Michael Schwendt <mschwendt[AT]users.sf.net> - 0:0.12.7-1
  74. - Update to 0.12.7 which was released May 31st, 2004.
  75. - Enhance spec with python-abi and arch-dependent sitelib paths.
  76. - Update URL and Source.
  77. * Sun Oct 05 2003 Ben Escoto <bescoto@stanford.edu> - 0:0.12.5-0.fdr.1
  78. - Added epochs to python versions, more concise %%defines, %%ghost files
  79. * Thu Aug 16 2003 Ben Escoto <bescoto@stanford.edu> - 0:0.12.3-0.fdr.4
  80. - Implemented various suggestions of Fedora QA
  81. * Sun Nov 4 2001 Ben Escoto <bescoto@stanford.edu>
  82. - Initial RPM