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