f08d742
Name:           borgmatic
1c28bc0
Version:        1.7.6
1c28bc0
Release:        1%{?dist}
c922650
Summary:        Simple Python wrapper script for borgbackup
c922650
c922650
License:        GPLv3
c922650
URL:            https://torsion.org/borgmatic
6b87158
Source0:        https://projects.torsion.org/borgmatic-collective/borgmatic/archive/%{version}.tar.gz#/%{name}-%{version}.tar.gz
f08d742
f08d742
BuildArch:      noarch
f08d742
e15f00d
BuildRequires:  python3-devel
f08d742
BuildRequires:  systemd-rpm-macros
c922650
6f23d9a
Requires:       borgbackup
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
e15f00d
%generate_buildrequires
e15f00d
%pyproject_buildrequires
f08d742
c922650
%prep
f08d742
%autosetup -n %{name}
f08d742
c922650
%build
e15f00d
%pyproject_wheel
c922650
e15f00d
%{__python3} -c 'from borgmatic.commands.completion import bash_completion; print(bash_completion())' > %{name}-bash-completion
140363d
c922650
f08d742
%install
e15f00d
%pyproject_install
bb6ad79
%pyproject_save_files %{name}
c922650
f08d742
install -dm 0750 %{buildroot}%{_sysconfdir}/borgmatic
f08d742
install -dm 0750 %{buildroot}%{_sysconfdir}/borgmatic.d
c922650
09670e4
sed -i 's#/root/.local/bin/borgmatic#%{_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
140363d
install -Dpm 0644 %{name}-bash-completion %{buildroot}%{_datadir}/bash-completion/completions/%{name}
140363d
c922650
bb6ad79
%files -f %{pyproject_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
c922650
%{_bindir}/borgmatic
c922650
%{_bindir}/generate-borgmatic-config
c922650
%{_bindir}/upgrade-borgmatic-config
f08d742
%{_bindir}/validate-borgmatic-config
140363d
%{_datadir}/bash-completion/completions/%{name}
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
1c28bc0
* Tue Jan 31 2023 Felix Kaechele <felix@kaechele.ca> - 1.7.6-1
1c28bc0
- update to 1.7.6
1c28bc0
733c32b
* Wed Jan 18 2023 Fedora Release Engineering <releng@fedoraproject.org> - 1.7.5-2
733c32b
- Rebuilt for https://fedoraproject.org/wiki/Fedora_38_Mass_Rebuild
733c32b
b13ba9e
* Thu Dec 01 2022 Felix Kaechele <felix@kaechele.ca> - 1.7.5-1
b13ba9e
- update to 1.7.5
b13ba9e
bc16cfd
* Sat Oct 15 2022 Felix Kaechele <felix@kaechele.ca> - 1.7.4-1
bc16cfd
- update to 1.7.4
bc16cfd
a174051
* Wed Oct 12 2022 Felix Kaechele <felix@kaechele.ca> - 1.7.3-1
a174051
- update to 1.7.3
a174051
c8e3f97
* Fri Sep 09 2022 Felix Kaechele <felix@kaechele.ca> - 1.7.2-1
c8e3f97
- update to 1.7.2
c8e3f97
6cd6c3c
* Sat Sep 03 2022 Felix Kaechele <felix@kaechele.ca> - 1.7.1-1
6cd6c3c
- update to 1.7.1
6cd6c3c
7607b84
* Thu Jul 21 2022 Felix Kaechele <felix@kaechele.ca> - 1.6.6-1
7607b84
- update to 1.6.6
7607b84
8e30fb3
* Wed Jul 20 2022 Fedora Release Engineering <releng@fedoraproject.org> - 1.6.5-2
8e30fb3
- Rebuilt for https://fedoraproject.org/wiki/Fedora_37_Mass_Rebuild
8e30fb3
a18c3ed
* Fri Jul 01 2022 Felix Kaechele <felix@kaechele.ca> - 1.6.5-1
a18c3ed
- update to 1.6.5
a18c3ed
bb6ad79
* Sun Jun 26 2022 Felix Kaechele <felix@kaechele.ca> - 1.6.4-2
bb6ad79
- fixup version in setup.py
bb6ad79
- use pyproject_save_files
bb6ad79
6b87158
* Sat Jun 25 2022 Felix Kaechele <felix@kaechele.ca> - 1.6.4-1
6b87158
- update to 1.6.4
6b87158
- update source URL
6b87158
b4f2b7a
* Mon Jun 13 2022 Python Maint <python-maint@redhat.com> - 1.6.3-2
b4f2b7a
- Rebuilt for Python 3.11
b4f2b7a
9439908
* Fri Jun 10 2022 Felix Kaechele <felix@kaechele.ca> - 1.6.3-1
9439908
- update to 1.6.3
9439908
e15f00d
* Wed Jun 01 2022 Felix Kaechele <felix@kaechele.ca> - 1.6.2-2
e15f00d
- use pyproject rpm macros
e15f00d
- drop support for EPEL < 9
e15f00d
140363d
* Wed Jun 01 2022 Felix Kaechele <felix@kaechele.ca> - 1.6.2-1
140363d
- update to 1.6.2
140363d
- install bash-completion files
140363d
69a6259
* Wed May 25 2022 Felix Kaechele <felix@kaechele.ca> - 1.6.1-1
69a6259
- update to 1.6.1
69a6259
540147f
* Wed Apr 27 2022 Felix Kaechele <felix@kaechele.ca> - 1.6.0-1
540147f
- update to 1.6.0
540147f
5f422fc
* Mon Mar 14 2022 Felix Kaechele <felix@kaechele.ca> - 1.5.24-1
5f422fc
- update to 1.5.24
5f422fc
09e42b7
* Thu Feb 10 2022 Felix Kaechele <felix@kaechele.ca> - 1.5.23-1
09e42b7
- update to 1.5.23
09e42b7
09670e4
* Fri Feb 04 2022 Felix Kaechele <felix@kaechele.ca> - 1.5.22-2
09670e4
- fix sed on systemd unit to only replace the path
09670e4
5529029
* Fri Feb 04 2022 Felix Kaechele <felix@kaechele.ca> - 1.5.22-1
5529029
- update to 1.5.22
5529029
d44884e
* Wed Jan 19 2022 Fedora Release Engineering <releng@fedoraproject.org> - 1.5.21-2
d44884e
- Rebuilt for https://fedoraproject.org/wiki/Fedora_36_Mass_Rebuild
d44884e
970a2da
* Wed Nov 24 2021 Felix Kaechele <felix@kaechele.ca> - 1.5.21-1
970a2da
- update to 1.5.21
970a2da
6977ca0
* Mon Oct 11 2021 Felix Kaechele <felix@kaechele.ca> - 1.5.20-1
6977ca0
- update to 1.5.20
6977ca0
47bb7fa
* Tue Aug 10 2021 Felix Kaechele <heffer@fedoraproject.org> - 1.5.18-1
47bb7fa
- update to 1.5.18
47bb7fa
88a308f
* Tue Aug 03 2021 Felix Kaechele <heffer@fedoraproject.org> - 1.5.17-1
88a308f
- update to 1.5.17
88a308f
a11a794
* Wed Jul 21 2021 Fedora Release Engineering <releng@fedoraproject.org> - 1.5.15-2
a11a794
- Rebuilt for https://fedoraproject.org/wiki/Fedora_35_Mass_Rebuild
a11a794
e1ca28d
* Fri Jun 18 2021 Felix Kaechele <heffer@fedoraproject.org> - 1.5.15-1
e1ca28d
- update to 1.5.15
e1ca28d
00592fb
* Tue Jun 08 2021 Felix Kaechele <heffer@fedoraproject.org> - 1.5.14-1
00592fb
- update to 1.5.14
00592fb
f1455e0
* Fri Jun 04 2021 Python Maint <python-maint@redhat.com> - 1.5.13-2
f1455e0
- Rebuilt for Python 3.10
f1455e0
0b90005
* Wed Mar 31 2021 Felix Kaechele <heffer@fedoraproject.org> - 1.5.13-1
0b90005
- update to 1.5.13
0b90005
5af929d
* Tue Jan 26 2021 Fedora Release Engineering <releng@fedoraproject.org> - 1.5.11-2
5af929d
- Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild
5af929d
a7ed9ef
* Sat Nov 21 2020 Felix Kaechele <heffer@fedoraproject.org> - 1.5.11-1
a7ed9ef
- update to 1.5.11
a7ed9ef
4e6364d
* Fri Sep 04 2020 Felix Kaechele <heffer@fedoraproject.org> - 1.5.10-1
4e6364d
- update to 1.5.10
4e6364d
5405168
* Mon Jul 27 2020 Fedora Release Engineering <releng@fedoraproject.org> - 1.5.9-2
5405168
- Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild
5405168
d0df148
* Thu Jul 23 2020 Felix Kaechele <heffer@fedoraproject.org> - 1.5.9-1
d0df148
- update to 1.5.9
d0df148
dc5b36c
* Sun Jul 12 2020 Felix Kaechele <heffer@fedoraproject.org> - 1.5.8-1
dc5b36c
- update to 1.5.8
dc5b36c
d6f785d
* Wed Jun 24 2020 Felix Kaechele <heffer@fedoraproject.org> - 1.5.7-1
d6f785d
- update to 1.5.7
d6f785d
- add python3-setuptools BuildRequires
d6f785d
635d1e8
* Sun Jun 07 2020 Felix Kaechele <heffer@fedoraproject.org> - 1.5.6-1
635d1e8
- update to 1.5.6
635d1e8
c48ae26
* Thu May 28 2020 Miro Hrončok <mhroncok@redhat.com> - 1.5.5-2
c48ae26
- Rebuilt for Python 3.9
c48ae26
ecfe802
* Wed May 27 2020 Felix Kaechele <heffer@fedoraproject.org> - 1.5.5-1
ecfe802
- update to 1.5.5
47f94f7
0627e1f
* Sat May 16 2020 Felix Kaechele <heffer@fedoraproject.org> - 1.5.4-1
0627e1f
- update to 1.5.4
0627e1f
75ba932
* Thu May 14 2020 Felix Kaechele <heffer@fedoraproject.org> - 1.5.3-1
75ba932
- update to 1.5.3
75ba932
b4c6a1d
* Sat Apr 25 2020 Felix Kaechele <heffer@fedoraproject.org> - 1.5.2-1
b4c6a1d
- update to 1.5.2
b4c6a1d
75f2cd4
* Mon Feb 03 2020 Felix Kaechele <heffer@fedoraproject.org> - 1.5.1-1
75f2cd4
- update to 1.5.1
75f2cd4
853c349
* Tue Jan 28 2020 Felix Kaechele <heffer@fedoraproject.org> - 1.5.0-1
853c349
- update to 1.5.0
853c349
6ece14e
* Tue Jan 28 2020 Fedora Release Engineering <releng@fedoraproject.org> - 1.4.22-2
6ece14e
- Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild
6ece14e
95cc9ba
* Thu Jan 23 2020 Felix Kaechele <heffer@fedoraproject.org> - 1.4.22-1
95cc9ba
- update to 1.4.22
95cc9ba
7d92c74
* Sat Dec 21 2019 Felix Kaechele <heffer@fedoraproject.org> - 1.4.21-1
7d92c74
- update to 1.4.21
7d92c74
25ca1fd
* Fri Dec 13 2019 Felix Kaechele <heffer@fedoraproject.org> - 1.4.20-1
25ca1fd
- update to 1.4.20
25ca1fd
- added missing Requires for python-requests
25ca1fd
2d35e37
* Mon Dec 09 2019 Felix Kaechele <heffer@fedoraproject.org> - 1.4.18-1
2d35e37
- update to 1.4.18
2d35e37
e22b587
* Sat Dec 07 2019 Felix Kaechele <heffer@fedoraproject.org> - 1.4.17-1
e22b587
- update to 1.4.17
e22b587
5ed7be5
* Tue Dec 03 2019 Felix Kaechele <heffer@fedoraproject.org> - 1.4.16-1
5ed7be5
- update to 1.4.16
5ed7be5
5ed7be5
* Tue Nov 26 2019 Felix Kaechele <heffer@fedoraproject.org> - 1.4.15-1
5ed7be5
- update to 1.4.15
5ed7be5
5ed7be5
* Tue Nov 26 2019 Felix Kaechele <heffer@fedoraproject.org> - 1.4.14-1
5ed7be5
- update to 1.4.14
5ed7be5
69bd52e
* Wed Nov 20 2019 Felix Kaechele <heffer@fedoraproject.org> - 1.4.13-1
69bd52e
- update to 1.4.13
69bd52e
69bd52e
* Mon Nov 18 2019 Felix Kaechele <heffer@fedoraproject.org> - 1.4.12-1
69bd52e
- update to 1.4.12
69bd52e
2661db8
* Mon Nov 18 2019 Felix Kaechele <heffer@fedoraproject.org> - 1.4.11-1
2661db8
- update to 1.4.11
2661db8
4bc0953
* Wed Nov 13 2019 Felix Kaechele <heffer@fedoraproject.org> - 1.4.10-1
4bc0953
- update to 1.4.10
4bc0953
ed2db7e
* Tue Nov 12 2019 Felix Kaechele <heffer@fedoraproject.org> - 1.4.9-1
ed2db7e
- update to 1.4.9
ed2db7e
f1dbb3b
* Tue Nov 12 2019 Felix Kaechele <heffer@fedoraproject.org> - 1.4.8-1
f1dbb3b
- update to 1.4.8
f1dbb3b
2bbe955
* Mon Nov 04 2019 Felix Kaechele <heffer@fedoraproject.org> - 1.4.6-1
f1dbb3b
- update to 1.4.6
2bbe955
368b783
* Wed Oct 23 2019 Felix Kaechele <heffer@fedoraproject.org> - 1.4.0-1
368b783
- update to 1.4.0
368b783
e8db474
* Mon Oct 21 2019 Felix Kaechele <heffer@fedoraproject.org> - 1.3.26-1
e8db474
- update to 1.3.26
e8db474
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