/[smecontribs]/rpms/rdiff-backup/contribs7/rdiff-backup.spec
ViewVC logotype

Annotation of /rpms/rdiff-backup/contribs7/rdiff-backup.spec

Parent Directory Parent Directory | Revision Log Revision Log | View Revision Graph Revision Graph


Revision 1.1 - (hide annotations) (download)
Thu May 15 15:40:26 2008 UTC (16 years ago) by slords
Branch: MAIN
CVS Tags: rdiff-backup-1_1_7-2_el4_sme
Initial import of rdiff-backup-1.1.7-2.el4.sme.src.rpm

1 slords 1.1 # $Id$
2     # Authority: gordonr
3     # Name: Gordon Rowell
4    
5     %define PYTHON_NAME %((rpm -q --quiet python2 && echo python2) || echo python)
6     %define PYTHON_VERSION %(%{PYTHON_NAME} -c 'import sys; print sys.version[:3],')
7     %define NEXT_PYTHON_VERSION %(%{PYTHON_NAME} -c 'import sys; print "%d.%d" % (sys.version_info[0], sys.version_info[1]+1),')
8    
9     Version: 1.1.7
10     Summary: Convenient and transparent local/remote incremental mirror/backup
11     Name: rdiff-backup
12     Release: 2%{?dist}
13     Epoch: 0
14     URL: http://www.nongnu.org/rdiff-backup/
15     Source: http://savannah.nongnu.org/download/rdiff-backup/rdiff-backup-1.1.7.tar.gz
16     Patch0: rdiff-backup-1.1.5-metadata.py.patch
17     Patch1: rdiff-backup-1.1.7-logsymlinks.patch
18     Patch2: rdiff-backup-1.1.7-fsabilites-symlinks.patch
19     License: GPL
20     Group: Applications/Archiving
21     BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
22     Requires: %{PYTHON_NAME} >= %{PYTHON_VERSION}, %{PYTHON_NAME} < %{NEXT_PYTHON_VERSION}
23     BuildPrereq: %{PYTHON_NAME}-devel >= 2.2, librsync-devel >= 0.9.7
24    
25     %description
26     rdiff-backup is a script, written in Python, that backs up one
27     directory to another and is intended to be run periodically (nightly
28     from cron for instance). The target directory ends up a copy of the
29     source directory, but extra reverse diffs are stored in the target
30     directory, so you can still recover files lost some time ago. The idea
31     is to combine the best features of a mirror and an incremental
32     backup. rdiff-backup can also operate in a bandwidth efficient manner
33     over a pipe, like rsync. Thus you can use rdiff-backup and ssh to
34     securely back a hard drive up to a remote location, and only the
35     differences from the previous backup will be transmitted.
36    
37     %prep
38     %setup -q
39     %patch0 -p1
40     %patch1 -p1
41     %patch2 -p1
42    
43     %build
44     %{PYTHON_NAME} setup.py build
45    
46     %install
47     %{PYTHON_NAME} setup.py install --root $RPM_BUILD_ROOT
48     # Produce .pyo files for %ghost directive later
49     %{PYTHON_NAME} -Oc 'from compileall import *; compile_dir("'$RPM_BUILD_ROOT/%{_libdir}/python%{PYTHON_VERSION}/site-packages/rdiff_backup'")'
50     rm -rf $RPM_BUILD_ROOT/usr/share/doc/*
51    
52     %clean
53     rm -rf $RPM_BUILD_ROOT
54    
55     %files
56     %defattr(-,root,root)
57     %{_bindir}/rdiff-backup
58     %{_bindir}/rdiff-backup-statistics
59     %{_mandir}/man1/rdiff-backup*
60     %dir %{_libdir}/python%{PYTHON_VERSION}/site-packages/rdiff_backup
61     %{_libdir}/python%{PYTHON_VERSION}/site-packages/rdiff_backup/*.py
62     %{_libdir}/python%{PYTHON_VERSION}/site-packages/rdiff_backup/*.pyc
63     %{_libdir}/python%{PYTHON_VERSION}/site-packages/rdiff_backup/*.so
64     %ghost %{_libdir}/python%{PYTHON_VERSION}/site-packages/rdiff_backup/*.pyo
65     %doc CHANGELOG COPYING FAQ.html examples.html README
66    
67     %changelog
68     * Sun Apr 29 2007 Shad L. Lords <slords@mail.com>
69     - Clean up spec so package can be built by koji/plague
70    
71     * Thu Dec 07 2006 Shad L. Lords <slords@mail.com>
72     - Update to new release naming. No functional changes.
73     - Make Packager generic
74    
75     * Mon Nov 20 2006 Gordon Rowell <gordonr@gormand.com.au> 1.1.7-1sme03
76     - Add symlinks to fs_abilities and test whether we can create them,
77     e.g. when backing up to CIFS fileystems.
78     - TODO: Guard symlink calls as per hardlink tests
79    
80     * Mon Nov 20 2006 Gordon Rowell <gordonr@gormand.com.au> 1.1.7-1sme02
81     - Log symlink creation in verbosity 6, as for other fs ops
82    
83     * Wed Nov 15 2006 Gordon Rowell <gordonr@gormand.com.au> 1.1.7-1sme01
84     - Reapply patch from 1.1.5-1sme01
85    
86     * Wed Nov 15 2006 Gordon Rowell <gordonr@gormand.com.au> 1.1.7-1
87     - Update to 1.1.7
88    
89     * Thu Oct 5 2006 Gordon Rowell <gordonr@gormand.com.au> 1.1.5-1sme01
90     - Patch for regression after a crash:
91     http://lists.nongnu.org/archive/html/rdiff-backup-users/2006-03/msg00039.html
92    
93     * Mon Aug 22 2005 Ben Escoto <ben@emerose.org> - 1.0.0-3
94     - Matthijs van der Klip's patch to fix python2 support
95    
96     * Tue Aug 16 2005 Ben Escoto <ben@emerose.org> - 1.0.0-2
97     - Removing /usr/share/doc in build for some obscure reason
98    
99     * Mon Mar 28 2005 Ben Escoto <ben@emerose.org> - 0.13.5-1
100     - Set librsync >= 0.9.7 to encourage upgrade
101    
102     * Sat Dec 15 2003 Ben Escoto <bescoto@stanford.edu> - 0.12.6-2
103     - Readded python2/python code; turns out not everyone calls it python
104     - A number of changes from Fedora rpm.
105    
106     * Thu Sep 11 2003 Ben Escoto <bescoto@stanford.edu> - 0.12.4-1
107     - Removed code that selected between python2 and python; I think
108     everyone calls it python now.
109    
110     * Thu Aug 8 2003 Ben Escoto <bescoto@stanford.edu>
111     - Set librsync >= 0.9.6, because rsync.h renamed to librsync.h
112    
113     * Sun Jul 20 2003 Ben Escoto <bescoto@stanford.edu>
114     - Minor changes to comply with Fedora standards.
115    
116     * Sun Jan 19 2002 Troels Arvin <troels@arvin.dk>
117     - Builds, no matter if Python 2.2 is called python2-2.2 or python-2.2.
118    
119     * Sun Nov 4 2001 Ben Escoto <bescoto@stanford.edu>
120     - Initial RPM

admin@koozali.org
ViewVC Help
Powered by ViewVC 1.2.1 RSS 2.0 feed