rdiff-backup/rdiff-backup.spec
cherry530 7a7477fcfd Package init
Signed-off-by: cherry530 <xuping33@huawei.com>
2022-07-25 17:09:56 +08:00

56 lines
2.0 KiB
RPMSpec

Name: rdiff-backup
Version: 2.0.5
Release: 1
Summary: Convenient and transparent local/remote incremental mirror/backup
URL: https://rdiff-backup.net/
Source0: https://github.com/%{name}/%{name}/releases/download/v%{version}/%{name}-%{version}.tar.gz
License: GPLv2+
BuildRequires: python3-devel >= 3.5, librsync-devel >= 1.0.0 python3-setuptools
BuildRequires: python3-setuptools_scm gcc
Requires: python3-setuptools
Recommends: py3libacl
Recommends: python3-pyxattr
%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
%autosetup -n %{name}-%{version}
%build
%py3_build
%install
%py3_install
%files
%defattr(-,root,root)
%{_bindir}/rdiff-backup
%{_bindir}/rdiff-backup-statistics
%{_bindir}/rdiff-backup-delete
%{_mandir}/man1/rdiff-backup*
%dir %{python3_sitearch}/rdiff_backup
%{python3_sitearch}/rdiff_backup/*.py
%dir %{python3_sitearch}/rdiff_backup/__pycache__
%{python3_sitearch}/rdiff_backup/__pycache__/*.pyc
%{python3_sitearch}/rdiff_backup/*.so
%{python3_sitearch}/rdiff_backup-*.egg-info
%{_datadir}/bash-completion/completions/rdiff-backup
%doc CHANGELOG.md COPYING README.md
%doc docs/FAQ.md docs/examples.md docs/DEVELOP.md
%doc docs/Windows-README.md docs/Windows-DEVELOP.md
%license COPYING
%changelog
* Mon Jul 25 2022 xu_ping <xuping33@h-partners.com> - 2.0.5-1
- Package init