f08d742
Name:           borgmatic
f08d742
Version:        1.3.23
314f40e
Release:        2%{?dist}
c922650
Summary:        Simple Python wrapper script for borgbackup
c922650
c922650
License:        GPLv3
c922650
URL:            https://torsion.org/borgmatic
f08d742
Source0:        https://projects.torsion.org/witten/borgmatic/archive/%{version}.tar.gz#/%{name}-%{version}.tar.gz
f08d742
f08d742
BuildArch:      noarch
f08d742
314f40e
BuildRequires:  python%{python3_pkgversion}-devel
314f40e
%if 0%{?fedora} < 30 || 0%{?rhel} < 8
314f40e
BuildRequires:  systemd
314f40e
%else
f08d742
BuildRequires:  systemd-rpm-macros
314f40e
%endif
c922650
6f23d9a
Requires:       borgbackup
314f40e
Requires:       python%{python3_pkgversion}-colorama
314f40e
Requires:       python%{python3_pkgversion}-ruamel-yaml
314f40e
Requires:       python%{python3_pkgversion}-pykwalify
f08d742
6f23d9a
c922650
%description
c922650
borgmatic (formerly atticmatic) is a simple Python wrapper script for
c922650
the Borg backup software that initiates a backup, prunes any old backups
c922650
according to a retention policy, and validates backups for consistency.
c922650
f08d742
c922650
%prep
f08d742
%autosetup -n %{name}
f08d742
c922650
c922650
%build
c922650
%py3_build
c922650
c922650
f08d742
%install
c922650
%py3_install
c922650
f08d742
install -dm 0750 %{buildroot}%{_sysconfdir}/borgmatic
f08d742
install -dm 0750 %{buildroot}%{_sysconfdir}/borgmatic.d
c922650
f08d742
sed -i 's#^ExecStart=.*#ExecStart=%{_bindir}/%{name}#' sample/systemd/%{name}.service
f08d742
install -Dpm 0644 sample/systemd/%{name}.service %{buildroot}%{_unitdir}/%{name}.service
f08d742
install -Dpm 0644 sample/systemd/%{name}.timer %{buildroot}%{_unitdir}/%{name}.timer
c922650
c922650
c922650
%files
f08d742
%doc AUTHORS NEWS README.md
f08d742
%license LICENSE
795f581
%attr(0750, root, root) %{_sysconfdir}/borgmatic
795f581
%attr(0750, root, root) %{_sysconfdir}/borgmatic.d
f08d742
%{python3_sitelib}/%{name}-%{version}-py?.?.egg-info
f08d742
%{python3_sitelib}/%{name}
c922650
%{_bindir}/borgmatic
c922650
%{_bindir}/generate-borgmatic-config
c922650
%{_bindir}/upgrade-borgmatic-config
f08d742
%{_bindir}/validate-borgmatic-config
c922650
%{_unitdir}/borgmatic.service
c922650
%{_unitdir}/borgmatic.timer
f08d742
c922650
c922650
%post
c922650
%systemd_post borgmatic.timer
c922650
f08d742
c922650
%preun
c922650
%systemd_preun borgmatic.timer
c922650
f08d742
c922650
%postun
c922650
%systemd_postun borgmatic.timer
c922650
f08d742
c922650
%changelog
314f40e
* Sat Oct 12 2019 Felix Kaechele <heffer@fedoraproject.org> - 1.3.23-2
314f40e
- insert conditionals for F29 and EL7
314f40e
- bring back python3_version variable for EL7 compatibility
314f40e
f08d742
* Fri Oct 11 2019 Felix Kaechele <heffer@fedoraproject.org> - 1.3.23-1
f08d742
- update to 1.3.23
f08d742
- fix dependencies
f08d742
- build for noarch
f08d742
- use release tarball directly from upstream
f08d742
- include docs and license from release tarball
f08d742
- use included unit and timer files
f08d742
- remove tests, they require internet access
f08d742
- cleanups and modernizations
f08d742
b4cf07e
* Thu Oct 03 2019 Miro Hrončok <mhroncok@redhat.com> - 1.2.0-6
b4cf07e
- Rebuilt for Python 3.8.0rc1 (#1748018)
b4cf07e
2bb472d
* Mon Aug 19 2019 Miro Hrončok <mhroncok@redhat.com> - 1.2.0-5
2bb472d
- Rebuilt for Python 3.8
2bb472d
3f746e6
* Wed Jul 24 2019 Fedora Release Engineering <releng@fedoraproject.org> - 1.2.0-4
3f746e6
- Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild
3f746e6
83de871
* Thu Jan 31 2019 Fedora Release Engineering <releng@fedoraproject.org> - 1.2.0-3
83de871
- Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild
83de871
08feb42
* Thu Jul 12 2018 Fedora Release Engineering <releng@fedoraproject.org> - 1.2.0-2
08feb42
- Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild
08feb42
4a575d5
* Fri Jun 29 2018 Benjamin Pereto <benjamin@sandchaschte.ch> - 1.2.0-1
4a575d5
- upstream release 1.2.0
4a575d5
- added missing deps ruamel.yaml and pykwalify
4a575d5
99606f8
* Tue Jun 19 2018 Miro Hrončok <mhroncok@redhat.com> - 1.1.15-3
99606f8
- Rebuilt for Python 3.7
99606f8
9aa4297
* Thu Apr 12 2018 Benjamin Pereto <benjamin@sandchaschte.ch> - 1.1.15-2
9aa4297
- add empty /etc/borgmatic.d as described in documentation
795f581
- add empty /etc/borgmatic as described in documentation
9aa4297
c3d7577
* Thu Apr 12 2018 Benjamin Pereto <benjamin@sandchaschte.ch> - 1.1.15-1
c922650
- Initial packaging for the borgmatic project
c922650