|
|
87d5449 |
# https://github.com/restic/restic
|
|
|
87d5449 |
%global goipath github.com/restic/restic
|
|
|
f443bc6 |
Version: 0.12.0
|
|
|
87d5449 |
|
|
|
87d5449 |
%gometa
|
|
|
87d5449 |
|
|
|
b574dc6 |
%global common_description %{expand:
|
|
|
b574dc6 |
A backup program that is easy, fast, verifiable, secure, efficient and free.
|
|
|
b574dc6 |
|
|
|
b574dc6 |
Backup destinations can be:
|
|
|
b574dc6 |
*Local
|
|
|
b574dc6 |
*SFTP
|
|
|
b574dc6 |
*REST Server
|
|
|
b574dc6 |
*Amazon S3
|
|
|
b574dc6 |
*Minio Server
|
|
|
b574dc6 |
*OpenStack Swift
|
|
|
b574dc6 |
*Backblaze B2
|
|
|
b574dc6 |
*Microsoft Azure Blob Storage
|
|
|
b574dc6 |
*Google Cloud Storage
|
|
|
b574dc6 |
*Other Services via rclone}
|
|
|
b574dc6 |
|
|
|
b574dc6 |
%global golicenses LICENSE
|
|
|
b574dc6 |
|
|
|
b574dc6 |
|
|
|
87d5449 |
Name: restic
|
|
|
f443bc6 |
Release: 0%{?dist}
|
|
|
87d5449 |
Summary: Fast, secure, efficient backup program
|
|
|
87d5449 |
URL: %{gourl}
|
|
|
87d5449 |
License: BSD
|
|
|
033a6cb |
Source0: %{gosource}
|
|
Steve Miller |
0d40537 |
#Patch0: 0001-Fix-running-tests-on-a-SELinux-enabled-system.patch
|
|
Steve Miller |
0d40537 |
#Patch1: backport-2652.patch
|
|
Steve Miller |
441ce8b |
#Move internal/fs.TestChdir to internal/test.Chdir
|
|
|
d5222b6 |
#Patch1: 0001-Move-internal-fs.TestChdir-to-internal-test.Chdir.patch
|
|
|
87d5449 |
|
|
|
87d5449 |
#Restic does not compile for the following archs
|
|
|
87d5449 |
ExcludeArch: s390x
|
|
|
87d5449 |
|
|
|
87d5449 |
BuildRequires: golang(bazil.org/fuse)
|
|
|
87d5449 |
BuildRequires: golang(bazil.org/fuse/fs)
|
|
|
87d5449 |
BuildRequires: golang(github.com/Azure/azure-sdk-for-go/storage)
|
|
|
87d5449 |
BuildRequires: golang(github.com/cenkalti/backoff)
|
|
|
87d5449 |
BuildRequires: golang(github.com/elithrar/simple-scrypt)
|
|
|
87d5449 |
BuildRequires: golang(github.com/juju/ratelimit)
|
|
|
87d5449 |
BuildRequires: golang(github.com/kurin/blazer/b2)
|
|
|
87d5449 |
BuildRequires: golang(github.com/mattn/go-isatty)
|
|
|
87d5449 |
BuildRequires: golang(github.com/ncw/swift)
|
|
|
87d5449 |
BuildRequires: golang(github.com/pkg/errors)
|
|
|
87d5449 |
BuildRequires: golang(github.com/pkg/sftp)
|
|
|
87d5449 |
BuildRequires: golang(github.com/pkg/xattr)
|
|
|
87d5449 |
BuildRequires: golang(github.com/restic/chunker)
|
|
|
1e1ce62 |
BuildRequires: golang(github.com/hashicorp/golang-lru/simplelru)
|
|
|
87d5449 |
BuildRequires: golang(golang.org/x/crypto/poly1305)
|
|
|
87d5449 |
BuildRequires: golang(golang.org/x/crypto/scrypt)
|
|
|
87d5449 |
BuildRequires: golang(golang.org/x/crypto/ssh/terminal)
|
|
|
87d5449 |
BuildRequires: golang(golang.org/x/net/context)
|
|
|
87d5449 |
BuildRequires: golang(golang.org/x/net/context/ctxhttp)
|
|
|
87d5449 |
BuildRequires: golang(golang.org/x/net/http2)
|
|
|
87d5449 |
BuildRequires: golang(golang.org/x/oauth2/google)
|
|
|
87d5449 |
BuildRequires: golang(golang.org/x/sync/errgroup)
|
|
|
87d5449 |
BuildRequires: golang(golang.org/x/sys/unix)
|
|
|
87d5449 |
BuildRequires: golang(golang.org/x/text/encoding/unicode)
|
|
|
87d5449 |
BuildRequires: golang(google.golang.org/api/googleapi)
|
|
|
87d5449 |
BuildRequires: golang(google.golang.org/api/storage/v1)
|
|
|
87d5449 |
BuildRequires: golang(gopkg.in/tomb.v2)
|
|
|
f443bc6 |
#Updated for 0.12.0
|
|
|
f443bc6 |
BuildRequires: golang(github.com/minio/minio-go/v7)
|
|
|
f443bc6 |
BuildRequires: golang(github.com/minio/minio-go/v7/pkg/credentials)
|
|
|
f443bc6 |
BuildRequires: golang(cloud.google.com/go/storage)
|
|
Steve Miller |
0d40537 |
#Added for 0.10.0
|
|
Steve Miller |
0d40537 |
BuildRequires: golang(github.com/cespare/xxhash)
|
|
Steve Miller |
0d40537 |
BuildRequires: golang(github.com/dchest/siphash)
|
|
|
87d5449 |
#for check/testing
|
|
|
87d5449 |
BuildRequires: golang(github.com/google/go-cmp/cmp)
|
|
|
87d5449 |
#Soft dependency for mounting , ie: fusemount
|
|
|
87d5449 |
#Requires: fuse
|
|
|
87d5449 |
|
|
|
87d5449 |
|
|
|
87d5449 |
%description
|
|
|
b574dc6 |
%{common_description}
|
|
|
87d5449 |
|
|
|
b574dc6 |
#%%gopkg
|
|
|
87d5449 |
|
|
|
87d5449 |
%prep
|
|
|
b574dc6 |
%goprep
|
|
|
b574dc6 |
|
|
|
b574dc6 |
%build
|
|
|
b574dc6 |
%gobuild -o %{gobuilddir}/bin/%{name} %{goipath}/cmd/restic
|
|
|
87d5449 |
|
|
|
87d5449 |
|
|
|
87d5449 |
%install
|
|
|
87d5449 |
mkdir -p %{buildroot}%{_mandir}/man1
|
|
|
87d5449 |
mkdir -p %{buildroot}%{_datarootdir}/zsh/site-functions
|
|
|
87d5449 |
mkdir -p %{buildroot}%{_datarootdir}/bash-completion/completions
|
|
|
87d5449 |
install -p -m 644 doc/man/* %{buildroot}%{_mandir}/man1/
|
|
|
87d5449 |
#zsh completion
|
|
|
87d5449 |
install -p -m 644 doc/zsh-completion.zsh %{buildroot}%{_datarootdir}/zsh/site-functions/_restic
|
|
|
87d5449 |
#Bash completion
|
|
|
87d5449 |
install -p -m 644 doc/bash-completion.sh %{buildroot}%{_datarootdir}/bash-completion/completions/restic
|
|
|
b574dc6 |
install -m 0755 -vd %{buildroot}%{_bindir}
|
|
|
b574dc6 |
install -p -m 755 %{gobuilddir}/bin/%{name} %{buildroot}%{_bindir}
|
|
|
b574dc6 |
|
|
|
87d5449 |
|
|
|
87d5449 |
%check
|
|
|
87d5449 |
#Skip tests using fuse due to root requirement
|
|
|
87d5449 |
export RESTIC_TEST_FUSE=0
|
|
|
b574dc6 |
%gocheck
|
|
|
b574dc6 |
|
|
|
87d5449 |
|
|
|
87d5449 |
%files
|
|
|
87d5449 |
%license LICENSE
|
|
|
f443bc6 |
%doc GOVERNANCE.md CONTRIBUTING.md CHANGELOG.md README.md
|
|
|
87d5449 |
%{_bindir}/%{name}
|
|
|
87d5449 |
%dir %{_datadir}/zsh/site-functions
|
|
|
87d5449 |
%{_datadir}/zsh/site-functions/_restic
|
|
|
87d5449 |
%dir %{_datadir}/bash-completion/
|
|
|
87d5449 |
%dir %{_datadir}/bash-completion/completions
|
|
|
87d5449 |
%{_datadir}/bash-completion/completions/restic
|
|
|
87d5449 |
%{_mandir}/man1/restic*.*
|
|
|
87d5449 |
|
|
|
87d5449 |
|
|
|
87d5449 |
%changelog
|
|
|
f443bc6 |
* Tue Feb 16 2021 Kevin Anderson <andersonkw2@gmail.com> - 0.12.0-0
|
|
|
f443bc6 |
- Upgrade to upstream 0.12.0
|
|
|
f443bc6 |
|
|
|
8f919c2 |
* Wed Jan 27 2021 Fedora Release Engineering <releng@fedoraproject.org> - 0.10.0-4
|
|
|
8f919c2 |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild
|
|
|
8f919c2 |
|
|
|
d5222b6 |
* Wed Oct 21 2020 Steve Miller (copart) <code@rellims.com> - 0.10.0-3
|
|
|
d5222b6 |
- Removed patch 9abef3b, instead disabled tar tests
|
|
|
d5222b6 |
|
|
Steve Miller |
441ce8b |
* Wed Oct 21 2020 Steve Miller (copart) <code@rellims.com> - 0.10.0-2
|
|
Steve Miller |
441ce8b |
- Added upstream patch to tests (9abef3b) to resolve failed build
|
|
Steve Miller |
441ce8b |
|
|
Steve Miller |
0d40537 |
* Wed Oct 21 2020 Steve Miller (copart) <code@rellims.com> - 0.10.0-1
|
|
Steve Miller |
0d40537 |
- Bumped to upstream 0.10.0
|
|
Steve Miller |
0d40537 |
Resolves: #1880788
|
|
Steve Miller |
0d40537 |
|
|
|
29dfa16 |
* Sun Aug 30 2020 Steve Miller (copart) <code@rellims.com> - 0.9.6-6
|
|
|
a71edfe |
- Added upstream patch for AllowRoot build issue, commit 18fee4806f6a71e951eaee2a3910140c5efb46e3
|
|
|
a71edfe |
|
|
|
ed07125 |
* Sat Aug 01 2020 Fedora Release Engineering <releng@fedoraproject.org> - 0.9.6-5
|
|
|
ed07125 |
- Second attempt - Rebuilt for
|
|
|
ed07125 |
https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild
|
|
|
ed07125 |
|
|
|
929150c |
* Wed Jul 29 2020 Fedora Release Engineering <releng@fedoraproject.org> - 0.9.6-4
|
|
|
929150c |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild
|
|
|
929150c |
|
|
|
8f37e51 |
* Tue Mar 17 2020 Steve Miller (copart) <code@rellims.com> - 0.9.6-3
|
|
|
8f37e51 |
- Added upstream patch for AccessTime test fix, commit 7cacba0394b1336dfee33e81cb1dc0e87f8ba10f
|
|
|
8f37e51 |
|
|
|
b574dc6 |
* Tue Mar 17 2020 Steve Miller (copart) <code@rellims.com> - 0.9.6-2
|
|
|
8f37e51 |
- Added upstream patch for tests in selinux, commit 2828a9c2b09a7e42ca8ca1c6ac506f87280c158b
|
|
|
b574dc6 |
- Replaced deprecated gochecks and gobuildroot macros
|
|
|
b574dc6 |
|
|
|
63f199e |
* Mon Mar 16 2020 Steve Miller (copart) <code@rellims.com> - 0.9.6-1
|
|
|
63f199e |
- Bumped to upstream 0.9.6
|
|
|
63f199e |
Resolves: #1775745 and #1799976
|
|
|
63f199e |
|
|
|
0312f9e |
* Thu Jan 30 2020 Fedora Release Engineering <releng@fedoraproject.org> - 0.9.5-3
|
|
|
0312f9e |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild
|
|
|
0312f9e |
|
|
|
e8da040 |
* Fri Jul 26 2019 Fedora Release Engineering <releng@fedoraproject.org> - 0.9.5-2
|
|
|
e8da040 |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild
|
|
|
e8da040 |
|
|
|
7b46141 |
* Tue Apr 23 2019 Steve Miller (copart) <code@rellims.com> - 0.9.5-1
|
|
|
63f199e |
- Bumped to upstream 0.9.5
|
|
|
7b46141 |
Resolves: #1702384
|
|
|
7b46141 |
|
|
|
7b46141 |
* Fri Feb 15 2019 Steve Miller (copart) <code@rellims.com> - 0.9.4-1
|
|
|
1e1ce62 |
- Bumped to upstream 0.9.4
|
|
|
1e1ce62 |
- Added new upstream dependency
|
|
|
1e1ce62 |
golang(github.com/hashicorp/golang-lru/simplelru)
|
|
|
1e1ce62 |
|
|
|
f46faa1 |
* Sat Feb 02 2019 Fedora Release Engineering <releng@fedoraproject.org> - 0.9.3-2
|
|
|
f46faa1 |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild
|
|
|
f46faa1 |
|
|
|
cedb71c |
* Sat Nov 3 2018 Steve Miller (copart) <code@rellims.com> - 0.9.3-1
|
|
|
cedb71c |
- Bumped to upstream 0.9.3
|
|
|
cedb71c |
Resolves: #1645405 and #1642891
|
|
|
cedb71c |
- redhat-rpm-config-123 triggers bugs in gosetup, remove it from Go spec files as it’s just an alias
|
|
|
cedb71c |
- https://lists.fedoraproject.org/archives/list/devel@xxxxxxxxxxxxxxxxxxxxxxx/message/RWD5YATAYAFWKIDZBB7EB6N5DAO4ZKFM/
|
|
|
cedb71c |
|
|
|
033a6cb |
* Wed Aug 8 2018 Steve Miller (copart) <code@rellims.com> - 0.9.2-1
|
|
|
033a6cb |
- Bumped to upstream 0.9.2
|
|
|
033a6cb |
|
|
|
cb099ca |
* Tue Jul 31 2018 Florian Weimer <fweimer@redhat.com> - 0.9.1-3
|
|
|
cb099ca |
- Rebuild with fixed binutils
|
|
|
cb099ca |
|
|
|
87d5449 |
* Wed Jun 13 2018 Steve Miller (copart) <code@rellims.com> - 0.9.1-2
|
|
|
87d5449 |
- First package for Fedora
|
|
|
87d5449 |
- Rework using More Go packaging
|
|
|
87d5449 |
|
|
|
87d5449 |
* Sun Jun 10 2018 Steve Miller (copart) <code@rellims.com> - 0.9.1-1
|
|
|
87d5449 |
- Bumped restic version
|
|
|
87d5449 |
|
|
|
87d5449 |
* Sun May 27 2018 Steve Miller (copart) <code@rellims.com> - 0.9.0-1
|
|
|
87d5449 |
- Bumped restic version
|
|
|
87d5449 |
|
|
|
87d5449 |
* Sun Mar 04 2018 Steve Miller (copart) <code@rellims.com> - 0.8.3-1
|
|
|
87d5449 |
- Bumped restic version
|
|
|
87d5449 |
|
|
|
87d5449 |
* Tue Feb 20 2018 Steve Miller (copart) <code@rellims.com> - 0.8.2-1
|
|
|
87d5449 |
- Bumped restic version
|
|
|
87d5449 |
|
|
|
87d5449 |
* Fri Jan 12 2018 Steve Miller (copart) <code@rellims.com> - 0.8.1-2
|
|
|
87d5449 |
- Added man pages
|
|
|
87d5449 |
- Added bash completion
|
|
|
87d5449 |
- Added zsh completion
|
|
|
87d5449 |
|
|
|
87d5449 |
* Sun Jan 07 2018 Steve Miller (copart) <code@rellims.com> - 0.8.1-1
|
|
|
87d5449 |
- New Version
|
|
|
87d5449 |
|
|
|
87d5449 |
* Sat Sep 16 2017 Philipp Baum <phil@phib.io> - 0.7.2-1
|
|
|
87d5449 |
- New Version
|
|
|
87d5449 |
|
|
|
87d5449 |
* Sun Aug 27 2017 Philipp Baum <phil@phib.io> - 0.7.1-1
|
|
|
87d5449 |
- New Version
|
|
|
87d5449 |
|
|
|
87d5449 |
* Wed Mar 15 2017 Philipp Baum <phil@phib.io> - 0.5.0-1
|
|
|
87d5449 |
- Initial package build
|