The package rpms/restic.git has added or updated architecture specific content in its
spec file (ExclusiveArch/ExcludeArch or %ifarch/%ifnarch) in commit(s):
https://src.fedoraproject.org/cgit/rpms/restic.git/commit/?id=87d5449161f....
Change:
+ExcludeArch: s390x
Thanks.
Full change:
============
commit 87d5449161fcbbe03f98d17404755278b8410f26
Author: copart <code(a)rellims.com>
Date: Sun Jul 29 12:40:42 2018 -0400
Initial import (#1590921)
diff --git a/.gitignore b/.gitignore
new file mode 100644
index 0000000..ec37486
--- /dev/null
+++ b/.gitignore
@@ -0,0 +1 @@
+/restic-0.9.1.tar.gz
diff --git a/README.md b/README.md
index 4847d54..43d2665 100644
--- a/README.md
+++ b/README.md
@@ -1,3 +1,4 @@
-# restic
+Restic
+
+A backup program that is fast, efficient and secure.
-The restic package
\ No newline at end of file
diff --git a/abb18a830c7601b4ce873052031d0516217f74a6.patch
b/abb18a830c7601b4ce873052031d0516217f74a6.patch
new file mode 100644
index 0000000..98a5ca2
--- /dev/null
+++ b/abb18a830c7601b4ce873052031d0516217f74a6.patch
@@ -0,0 +1,22 @@
+From abb18a830c7601b4ce873052031d0516217f74a6 Mon Sep 17 00:00:00 2001
+From: Alexander Neumann <alexander(a)bumpern.de>
+Date: Sat, 14 Jul 2018 11:51:34 +0200
+Subject: [PATCH] Fix test
+
+---
+ internal/restic/node_unix_test.go | 2 +-
+ 1 file changed, 1 insertion(+), 1 deletion(-)
+
+diff --git a/internal/restic/node_unix_test.go b/internal/restic/node_unix_test.go
+index 4c44d5a34..0908d378e 100644
+--- a/internal/restic/node_unix_test.go
++++ b/internal/restic/node_unix_test.go
+@@ -112,7 +112,7 @@ func TestNodeFromFileInfo(t *testing.T) {
+
+ s, ok := fi.Sys().(*syscall.Stat_t)
+ if !ok {
+- t.Skip("fi type is %T, not stat_t", fi.Sys())
++ t.Skipf("fi type is %T, not stat_t", fi.Sys())
+ return
+ }
+
diff --git a/restic.spec b/restic.spec
new file mode 100644
index 0000000..9dbd103
--- /dev/null
+++ b/restic.spec
@@ -0,0 +1,139 @@
+#
https://github.com/restic/restic
+%global goipath
github.com/restic/restic
+Version: 0.9.1
+
+%gometa
+
+Name: restic
+Release: 2%{?dist}
+Summary: Fast, secure, efficient backup program
+URL: %{gourl}
+License: BSD
+Source0: https://%{goipath}/archive/v%{version}.tar.gz#/%{name}-%{version}.tar.gz
+#https://github.com/restic/restic/issues/1886
+Patch0: https://%{goipath}/commit/abb18a830c7601b4ce873052031d0516217f74a6.patch
+
+#Restic does not compile for the following archs
+ExcludeArch: s390x
+
+BuildRequires:
golang(bazil.org/fuse)
+BuildRequires:
golang(bazil.org/fuse/fs)
+BuildRequires:
golang(github.com/Azure/azure-sdk-for-go/storage)
+BuildRequires:
golang(github.com/cenkalti/backoff)
+BuildRequires:
golang(github.com/elithrar/simple-scrypt)
+BuildRequires:
golang(github.com/juju/ratelimit)
+BuildRequires:
golang(github.com/kurin/blazer/b2)
+BuildRequires:
golang(github.com/mattn/go-isatty)
+BuildRequires:
golang(github.com/minio/minio-go)
+BuildRequires:
golang(github.com/minio/minio-go/pkg/credentials)
+BuildRequires:
golang(github.com/ncw/swift)
+BuildRequires:
golang(github.com/pkg/errors)
+BuildRequires:
golang(github.com/pkg/sftp)
+BuildRequires:
golang(github.com/pkg/xattr)
+BuildRequires:
golang(github.com/restic/chunker)
+BuildRequires:
golang(golang.org/x/crypto/poly1305)
+BuildRequires:
golang(golang.org/x/crypto/scrypt)
+BuildRequires:
golang(golang.org/x/crypto/ssh/terminal)
+BuildRequires:
golang(golang.org/x/net/context)
+BuildRequires:
golang(golang.org/x/net/context/ctxhttp)
+BuildRequires:
golang(golang.org/x/net/http2)
+BuildRequires:
golang(golang.org/x/oauth2/google)
+BuildRequires:
golang(golang.org/x/sync/errgroup)
+BuildRequires:
golang(golang.org/x/sys/unix)
+BuildRequires:
golang(golang.org/x/text/encoding/unicode)
+BuildRequires:
golang(google.golang.org/api/googleapi)
+BuildRequires:
golang(google.golang.org/api/storage/v1)
+BuildRequires: golang(gopkg.in/tomb.v2)
+#for check/testing
+BuildRequires:
golang(github.com/google/go-cmp/cmp)
+#Soft dependency for mounting , ie: fusemount
+#Requires: fuse
+
+
+%description
+A backup program that is easy, fast, verifiable, secure, efficient and free.
+
+Backup destinations can be:
+*Local
+*SFTP
+*REST Server
+*Amazon S3
+*Minio Server
+*OpenStack Swift
+*Backblaze B2
+*Microsoft Azure Blob Storage
+*Google Cloud Storage
+*Other Services via rclone
+
+
+%prep
+%gosetup -q
+rm -rf vendor
+%patch0 -p1
+
+%build
+%gobuildroot
+%gobuild -o _bin/%{name} %{goipath}/cmd/restic
+
+%install
+mkdir -p %{buildroot}%{_bindir}
+mkdir -p %{buildroot}%{_mandir}/man1
+mkdir -p %{buildroot}%{_datarootdir}/zsh/site-functions
+mkdir -p %{buildroot}%{_datarootdir}/bash-completion/completions
+install -p -m 644 doc/man/* %{buildroot}%{_mandir}/man1/
+#zsh completion
+install -p -m 644 doc/zsh-completion.zsh
%{buildroot}%{_datarootdir}/zsh/site-functions/_restic
+#Bash completion
+install -p -m 644 doc/bash-completion.sh
%{buildroot}%{_datarootdir}/bash-completion/completions/restic
+install -p -m 755 _bin/%{name} %{buildroot}%{_bindir}
+
+%check
+#Skip tests using fuse due to root requirement
+export RESTIC_TEST_FUSE=0
+%gochecks cmd internal
+
+%files
+%license LICENSE
+%doc GOVERNANCE.md CONTRIBUTING.md CHANGELOG.md README.rst
+%{_bindir}/%{name}
+%dir %{_datadir}/zsh/site-functions
+%{_datadir}/zsh/site-functions/_restic
+%dir %{_datadir}/bash-completion/
+%dir %{_datadir}/bash-completion/completions
+%{_datadir}/bash-completion/completions/restic
+%{_mandir}/man1/restic*.*
+
+
+%changelog
+* Wed Jun 13 2018 Steve Miller (copart) <code(a)rellims.com> - 0.9.1-2
+- First package for Fedora
+- Rework using More Go packaging
+
+* Sun Jun 10 2018 Steve Miller (copart) <code(a)rellims.com> - 0.9.1-1
+- Bumped restic version
+
+* Sun May 27 2018 Steve Miller (copart) <code(a)rellims.com> - 0.9.0-1
+- Bumped restic version
+
+* Sun Mar 04 2018 Steve Miller (copart) <code(a)rellims.com> - 0.8.3-1
+- Bumped restic version
+
+* Tue Feb 20 2018 Steve Miller (copart) <code(a)rellims.com> - 0.8.2-1
+- Bumped restic version
+
+* Fri Jan 12 2018 Steve Miller (copart) <code(a)rellims.com> - 0.8.1-2
+- Added man pages
+- Added bash completion
+- Added zsh completion
+
+* Sun Jan 07 2018 Steve Miller (copart) <code(a)rellims.com> - 0.8.1-1
+- New Version
+
+* Sat Sep 16 2017 Philipp Baum <phil(a)phib.io> - 0.7.2-1
+- New Version
+
+* Sun Aug 27 2017 Philipp Baum <phil(a)phib.io> - 0.7.1-1
+- New Version
+
+* Wed Mar 15 2017 Philipp Baum <phil(a)phib.io> - 0.5.0-1
+- Initial package build
diff --git a/sources b/sources
new file mode 100644
index 0000000..503d115
--- /dev/null
+++ b/sources
@@ -0,0 +1 @@
+SHA512 (restic-0.9.1.tar.gz) =
9d365bdcb561255e2103d7170d02e850e5cf767bc2e02e099d57ec9aad719ebd4319446f5162e64437ca9a8e1fdca273fd1c6cc4314013ca07b5ebdbeef93c2a