|
|
0b7a7e2 |
%define __python %{__python3}
|
|
|
0b7a7e2 |
|
|
|
b149ea2 |
Name: btrbk
|
|
|
47b12af |
Version: 0.26.1
|
|
|
19030a6 |
Release: 4%{?dist}
|
|
|
b149ea2 |
Summary: Tool for creating snapshots and remote backups of btrfs sub-volumes
|
|
|
b149ea2 |
License: GPLv3+
|
|
|
b149ea2 |
URL: https://digint.ch/btrbk/
|
|
|
b149ea2 |
Source0: https://digint.ch/download/%{name}/releases/%{name}-%{version}.tar.xz
|
|
|
b149ea2 |
#Source0: https://github.com/digint/%%{name}/archive/v%%{version}.tar.gz
|
|
|
b149ea2 |
|
|
|
b149ea2 |
BuildArch: noarch
|
|
|
19030a6 |
BuildRequires: systemd perl-generators python3-devel
|
|
|
0b7a7e2 |
BuildRequires: asciidoc xmlto
|
|
|
b149ea2 |
|
|
|
b149ea2 |
Requires: btrfs-progs
|
|
|
b149ea2 |
|
|
|
b149ea2 |
%if 0%{?rhel} && 0%{?rhel} <= 7
|
|
|
b149ea2 |
Requires: openssh-clients pv
|
|
|
b149ea2 |
%else
|
|
|
b149ea2 |
Recommends: openssh-clients pv
|
|
|
b149ea2 |
%endif
|
|
|
b149ea2 |
|
|
|
b149ea2 |
|
|
|
b149ea2 |
%description
|
|
|
b149ea2 |
Backup tool for btrfs sub-volumes, using a configuration file, allows
|
|
|
b149ea2 |
creation of backups from multiple sources to multiple destinations,
|
|
|
b149ea2 |
with ssh and flexible retention policy support (hourly, daily,
|
|
|
b149ea2 |
weekly, monthly)
|
|
|
b149ea2 |
|
|
|
b149ea2 |
|
|
|
b149ea2 |
%prep
|
|
|
b149ea2 |
%autosetup
|
|
|
4c59e65 |
find -type f -exec sed -i '1s=^#!/usr/bin/\(python\|env python\)[23]\?=#!%{__python3}=' {} +
|
|
|
b149ea2 |
|
|
|
b149ea2 |
|
|
|
b149ea2 |
%install
|
|
|
b149ea2 |
make DESTDIR=%{buildroot} \
|
|
|
b149ea2 |
install-bin \
|
|
|
b149ea2 |
install-systemd \
|
|
|
0b7a7e2 |
install-share \
|
|
|
0b7a7e2 |
install-man \
|
|
|
0b7a7e2 |
install-doc \
|
|
|
0b7a7e2 |
install-etc
|
|
|
b149ea2 |
|
|
|
0b7a7e2 |
mkdir __doc
|
|
|
0b7a7e2 |
mv %{buildroot}/%{_docdir}/btrbk/* __doc/
|
|
|
0b7a7e2 |
rm -rf %{buildoroot}/%{_docdir}/btrbk
|
|
|
b149ea2 |
|
|
|
b149ea2 |
|
|
|
b149ea2 |
%files
|
|
|
0b7a7e2 |
%doc __doc/*
|
|
|
b149ea2 |
%config(noreplace) %{_sysconfdir}/btrbk
|
|
|
b149ea2 |
%license COPYING
|
|
|
b149ea2 |
%{_sbindir}/btrbk
|
|
|
b149ea2 |
%{_unitdir}/btrbk.*
|
|
|
b149ea2 |
%{_datadir}/btrbk
|
|
|
b149ea2 |
%{_mandir}/man1/btrbk.1*
|
|
|
b149ea2 |
%{_mandir}/man1/ssh_filter_btrbk.1*
|
|
|
b149ea2 |
%{_mandir}/man5/btrbk.conf.5*
|
|
|
b149ea2 |
|
|
|
b149ea2 |
|
|
|
b149ea2 |
%changelog
|
|
|
19030a6 |
* Mon Mar 26 2018 Michael Goodwin <xenithorb@fedoraproject.org> - 0.26.1-4
|
|
|
19030a6 |
- Fix python3 macro not expanding
|
|
|
19030a6 |
|
|
|
4c59e65 |
* Mon Mar 26 2018 Michael Goodwin <xenithorb@fedoraproject.org> - 0.26.1-3
|
|
|
4c59e65 |
- rebuilt
|
|
|
4c59e65 |
|
|
|
78ee036 |
* Mon Mar 26 2018 Michael Goodwin <xenithorb@fedoraproject.org> - 0.26.1-2
|
|
|
78ee036 |
- Force correct python3 path:
|
|
|
78ee036 |
https://fedoraproject.org/wiki/FinalizingFedoraSwitchtoPython3#Transition_Steps
|
|
|
78ee036 |
|
|
|
47b12af |
* Tue Mar 06 2018 Michael Goodwin <xenithorb@fedoraproject.org> - 0.26.1-1
|
|
|
47b12af |
- Update to 0.26.1
|
|
|
47b12af |
|
|
|
312080c |
* Wed Feb 07 2018 Fedora Release Engineering <releng@fedoraproject.org> - 0.26.0-2
|
|
|
312080c |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild
|
|
|
312080c |
|
|
|
0b7a7e2 |
* Sat Oct 14 2017 Michael Goodwin <xenithorb@fedoraproject.org> - 0.26.0-1
|
|
|
0b7a7e2 |
- Update to 0.26.0 (#1501520)
|
|
|
0b7a7e2 |
- Assorted bugfixes
|
|
|
0b7a7e2 |
- MIGRATION NEEDED: For raw targets see ChangeLog in docs, or:
|
|
|
0b7a7e2 |
- https://github.com/digint/btrbk/blob/v0.26.0/ChangeLog
|
|
|
0b7a7e2 |
- Resume deprecated from "-r" to "replace"
|
|
|
0b7a7e2 |
|
|
|
bcd99e6 |
* Mon Jul 31 2017 Michael Goodwin <xenithorb@fedoraproject.org> - 0.25.1-1
|
|
|
bcd99e6 |
- Update to 0.25.1 (#1476626)
|
|
|
bcd99e6 |
|
|
|
6d24182 |
* Wed Jul 26 2017 Fedora Release Engineering <releng@fedoraproject.org> - 0.25.0-5
|
|
|
6d24182 |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild
|
|
|
6d24182 |
|
|
|
b149ea2 |
* Fri Jul 07 2017 Michael Goodwin <xenithorb@fedoraproject.org> - 0.25.0-4
|
|
|
b149ea2 |
- Removed perl from Requires, auto-generated
|
|
|
b149ea2 |
- Removed %%{?systemd_requires}, for scriptlets only
|
|
|
b149ea2 |
|
|
|
b149ea2 |
* Wed Jul 5 2017 Mike Goodwin <xenithorb@fedoraproject.org> - 0.25.0-3
|
|
|
b149ea2 |
- License was GPLv3+ not GPLv3
|
|
|
b149ea2 |
- Add perl-generators for BuildRequires
|
|
|
b149ea2 |
- Add -p to all install commands in Makefile and in spec (with sed)
|
|
|
b149ea2 |
- Patch submitted upstream: https://github.com/digint/btrbk/pull/164
|
|
|
b149ea2 |
- Fix if statement for RHEL detection
|
|
|
b149ea2 |
- Spelling of subvolumes -> sub-volumes to satisfy rpmlint
|
|
|
b149ea2 |
- Removed %%{?perl_default_filter} macro, unnecessary
|
|
|
b149ea2 |
|
|
|
b149ea2 |
* Wed Jul 5 2017 Mike Goodwin <xenithorb@fedoraproject.org> - 0.25.0-2
|
|
|
b149ea2 |
- Added a more verbose description per the developer
|
|
|
b149ea2 |
- Changed Source0 to the official source tarball
|
|
|
b149ea2 |
- Include pv as a weak dependency, as well as openssh-clients
|
|
|
b149ea2 |
- Add if statement because <= RHEL7 doesn't have Recommends:
|
|
|
b149ea2 |
|
|
|
b149ea2 |
* Tue Jul 4 2017 Mike Goodwin <xenithorb@fedoraproject.org> - 0.25.0-1
|
|
|
b149ea2 |
- Initial packaging
|