File: rdiff-backup.spec.template

package info (click to toggle)
rdiff-backup 2.2.6-3
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 4,640 kB
  • sloc: python: 24,129; javascript: 9,512; sh: 1,230; ansic: 580; makefile: 36
file content (149 lines) | stat: -rw-r--r-- 6,685 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
# Note this spec file is overly complex to cover every issue.
# For modern systems you would be recommended starting from the Fedora version

%define PYTHON_NAME %((rpm -q --quiet python3 && echo python3) || echo python)
%define PYTHON_VERSION %(%{PYTHON_NAME} -c 'import sys; print(sys.version[:3])')
%define NEXT_PYTHON_VERSION %(%{PYTHON_NAME} -c 'import sys; print("%d.%d" % (sys.version_info[0], sys.version_info[1]+1))')

# Note this in not necessarily the same at the version, so confirm
%define gittag {{ version }}

Version: %{gittag}
Summary: Convenient and transparent local/remote incremental mirror/backup
Name: rdiff-backup
Release: 1
Epoch: 0
URL: https://rdiff-backup.net/
Source: https://github.com/%{name}/%{name}/releases/download/v%{gittag}/%{name}-%{version}.tar.gz
License: GPLv2+
Group: Applications/Archiving
BuildRoot:	%{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
Requires: %{PYTHON_NAME} >= %{PYTHON_VERSION}, %{PYTHON_NAME} < %{NEXT_PYTHON_VERSION}
%if %{PYTHON_VERSON} < 3.8
Requires: %{PYTHON_NAME}-importlib-metadata
%endif
Requires: ${PYTHON_NAME}-PyYAML

BuildPrereq: %{PYTHON_NAME}-devel >= 3.6, librsync-devel >= 1.0.0
BuildPrereq: %{PYTHON_NAME}-setuptools
BuildPrereq: %{PYTHON_NAME}-setuptools_scm
BuildPrereq: gcc
#Required to generate the manpages
BuildPrereq: rubygem-asciidoctor

%description
rdiff-backup is a script, written in Python, that backs up one
directory to another and is intended to be run periodically (nightly
from cron for instance). The target directory ends up a copy of the
source directory, but extra reverse diffs are stored in the target
directory, so you can still recover files lost some time ago. The idea
is to combine the best features of a mirror and an incremental
backup. rdiff-backup can also operate in a bandwidth efficient manner
over a pipe, like rsync. Thus you can use rdiff-backup and ssh to
securely back a hard drive up to a remote location, and only the
differences from the previous backup will be transmitted.

%prep
%setup -q

%build
%{PYTHON_NAME} setup.py build

%install
%{PYTHON_NAME} setup.py install --root $RPM_BUILD_ROOT

%clean
rm -rf $RPM_BUILD_ROOT

%files
%defattr(-,root,root)
%{_bindir}/rdiff-backup
%{_bindir}/rdiff-backup-statistics
%{_bindir}/rdiff-backup-delete
%{_mandir}/man1/rdiff-backup*
%dir %{_libdir}/python%{PYTHON_VERSION}/site-packages/rdiff_backup
%{_libdir}/python%{PYTHON_VERSION}/site-packages/rdiff_backup/*.py
%dir %{_libdir}/python%{PYTHON_VERSION}/site-packages/rdiff_backup/__pycache__
%{_libdir}/python%{PYTHON_VERSION}/site-packages/rdiff_backup/__pycache__/*.pyc
%{_libdir}/python%{PYTHON_VERSION}/site-packages/rdiff_backup/*.so
%{_libdir}/python%{PYTHON_VERSION}/site-packages/rdiff_backup-*.egg-info
%dir %{_libdir}/python%{PYTHON_VERSION}/site-packages/rdiffbackup
%{_libdir}/python%{PYTHON_VERSION}/site-packages/rdiffbackup/*.py
%dir %{_libdir}/python%{PYTHON_VERSION}/site-packages/rdiffbackup/__pycache__
%{_libdir}/python%{PYTHON_VERSION}/site-packages/rdiffbackup/__pycache__/*.pyc
%dir %{_libdir}/python%{PYTHON_VERSION}/site-packages/rdiffbackup/actions
%{_libdir}/python%{PYTHON_VERSION}/site-packages/rdiffbackup/actions/*.py
%dir %{_libdir}/python%{PYTHON_VERSION}/site-packages/rdiffbackup/actions/__pycache__
%{_libdir}/python%{PYTHON_VERSION}/site-packages/rdiffbackup/actions/__pycache__/*.pyc
%dir %{_libdir}/python%{PYTHON_VERSION}/site-packages/rdiffbackup/utils
%{_libdir}/python%{PYTHON_VERSION}/site-packages/rdiffbackup/utils/*.py
%dir %{_libdir}/python%{PYTHON_VERSION}/site-packages/rdiffbackup/utils/__pycache__
%{_libdir}/python%{PYTHON_VERSION}/site-packages/rdiffbackup/utils/__pycache__/*.pyc
%dir %{_libdir}/python%{PYTHON_VERSION}/site-packages/rdiffbackup/meta
%{_libdir}/python%{PYTHON_VERSION}/site-packages/rdiffbackup/meta/*.py
%dir %{_libdir}/python%{PYTHON_VERSION}/site-packages/rdiffbackup/meta/__pycache__
%{_libdir}/python%{PYTHON_VERSION}/site-packages/rdiffbackup/meta/__pycache__/*.pyc
%dir %{_libdir}/python%{PYTHON_VERSION}/site-packages/rdiffbackup/locations
%{_libdir}/python%{PYTHON_VERSION}/site-packages/rdiffbackup/locations/*.py
%dir %{_libdir}/python%{PYTHON_VERSION}/site-packages/rdiffbackup/locations/__pycache__
%{_libdir}/python%{PYTHON_VERSION}/site-packages/rdiffbackup/locations/__pycache__/*.pyc
%dir %{_libdir}/python%{PYTHON_VERSION}/site-packages/rdiffbackup/locations/map
%{_libdir}/python%{PYTHON_VERSION}/site-packages/rdiffbackup/locations/map/*.py
%dir %{_libdir}/python%{PYTHON_VERSION}/site-packages/rdiffbackup/locations/map/__pycache__
%{_libdir}/python%{PYTHON_VERSION}/site-packages/rdiffbackup/locations/map/__pycache__/*.pyc
%{_datadir}/bash-completion/completions/rdiff-backup
%doc CHANGELOG.adoc COPYING README.adoc docs/*.adoc

%changelog
* Sat Jul 25 2020 Frank Crawford <frank@crawford.emu.id.au> 2.0.5-1
- Last bug-fix before code clean-up

* Sat May 23 2020 Frank Crawford <frank@crawford.emu.id.au> 2.0.3-1
- Version 2.0.3 - Bugfix release

* Sun Mar 15 2020 Eric Lavarde <ewl+rdiffbackup@lavar.de> 2.0.0-1
- Version 2.0.0 - ready for the future

* Sat Nov 23 2019 Eric Lavarde <ewl+rdiffbackup@lavar.de> 1.4.0b0-1
- Beta release of upgrade to Python3.

* Sat Feb 16 2019 Eric Lavarde <ewl+rdiffbackup@lavar.de> 1.3.0-1
- Update URLs

* Wed Nov 15 2006 Gordon Rowell <gordonr@gormand.com.au> 1.1.7-1
- Update URLs

* Mon Aug 22 2005 Ben Escoto <ben@emerose.org> - 1.0.0-3
- Matthijs van der Klip's patch to fix python2 support

* Tue Aug 16 2005 Ben Escoto <ben@emerose.org> - 1.0.0-2
- Removing /usr/share/doc in build for some obscure reason

* Mon Mar 28 2005 Ben Escoto <ben@emerose.org> - 0.13.5-1
- Set librsync >= 0.9.7 to encourage upgrade

* Sat Dec 15 2003 Ben Escoto <bescoto@stanford.edu> - 0.12.6-2
- Readded python2/python code; turns out not everyone calls it python
- A number of changes from Fedora rpm.

* Sun Oct 05 2003 Ben Escoto <bescoto@stanford.edu> - 0:0.12.5-0.fdr.1
- Added epochs to python versions, more concise %%defines, %%ghost files

* Thu Sep 11 2003 Ben Escoto <bescoto@stanford.edu> - 0.12.4-1
- Removed code that selected between python2 and python; I think
  everyone calls it python now.

* Thu Aug 16 2003 Ben Escoto <bescoto@stanford.edu> - 0:0.12.3-0.fdr.4
- Implemented various suggestions of Fedora QA

* Thu Aug 8 2003 Ben Escoto <bescoto@stanford.edu>
- Set librsync >= 0.9.6, because rsync.h renamed to librsync.h

* Sun Jul 20 2003 Ben Escoto <bescoto@stanford.edu>
- Minor changes to comply with Fedora standards.

* Sun Jan 19 2002 Troels Arvin <troels@arvin.dk>
- Builds, no matter if Python 2.2 is called python2-2.2 or python-2.2.

* Sun Nov 4 2001 Ben Escoto <bescoto@stanford.edu>
- Initial RPM