SHA256
1
0
forked from pool/restic

Accepting request 1062419 from Archiving

OBS-URL: https://build.opensuse.org/request/show/1062419
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/restic?expand=0&rev=17
This commit is contained in:
Dominique Leuenberger 2023-02-01 15:39:44 +00:00 committed by Git OBS Bridge
commit 3681022caf
8 changed files with 103 additions and 28 deletions

12
disable-selfupdate.patch Normal file
View File

@ -0,0 +1,12 @@
diff -uNr restic.org/build.go restic/build.go
--- restic.org/build.go 2023-01-16 23:09:42.559283644 +0100
+++ restic/build.go 2023-01-16 23:10:38.002960609 +0100
@@ -56,7 +56,7 @@
Name: "restic", // name of the program executable and directory
Namespace: "github.com/restic/restic", // subdir of GOPATH, e.g. "github.com/foo/bar"
Main: "./cmd/restic", // package name for the main package
- DefaultBuildTags: []string{"selfupdate"}, // specify build tags which are always used
+ //DefaultBuildTags: []string{"selfupdate"}, // specify build tags which are always used
Tests: []string{"./..."}, // tests to run
MinVersion: GoVersion{Major: 1, Minor: 18, Patch: 0}, // minimum Go version supported
}

View File

@ -1,3 +0,0 @@
version https://git-lfs.github.com/spec/v1
oid sha256:78cdd8994908ebe7923188395734bb3cdc9101477e4163c67e7cc3b8fd3b4bd6
size 23902279

View File

@ -1,16 +0,0 @@
-----BEGIN PGP SIGNATURE-----
iQIzBAABCAAdFiEEz48Y8oRFdZc/edThkaaGi9P3qQcFAmMHufgACgkQkaaGi9P3
qQeMzRAAx/Myquv/daNNMWh015mmqwuaDME4tr49v/lArM1LNJS6O3uTnlofjHvu
X87d4R6Pok0h0zO4JxMJqNvHWALL0Xn9FQqGFOlaw3SZe0/NJzfz6YcGIXXq9qaf
Yj3YR2J700XL8/uzqSUP1LhsfkICoHDq6VPvGx8k8I/BHrNMV9aOn84IsDMXiiYP
b4OjNpDsGOve+RzbXNUXHGM+mi0Z59bMo1c2htH6PnayF4wy/C4dDl8NsnrJ94aC
qAOz2p0nt71+CADL3qNqdwz5lGjrD+ZYZi1oDGYd5/psHN0/DYILkCKwy8/FqdO4
bMvj3iOiuiY+afzIo6JwkNLP/Zu54g/6oqT4iTxk0nhwVjmLfu6peeD87Jo21YJj
97Q0ym4prkxrFKfTUOk8OXBMDgsx8a0ZM5E06ZB0nJZLyXKoLgyftkiCNmbD6NTU
Y2c6lDuFqpff80xBjjfFRzjYpK+EGpKP7oVVlqEGC81aM9pwILlHJEgEwNgsIUnV
qcamGZesU0EfvjX+3OGVcpzwhZIt0RaDlphMhbbdncZ4VQ0+v/WweABqSRf4O6Nz
yCc3v0oPl8u1M6M1rREzHGmwSqGxW9lqGZptQnMISiRUeP78wbWF/Tydz00NrIjF
4zIU+xKs3jy8o67GW9bvwptnvyLZBzk02XguT9lepKEnyLjfqzE=
=YSw5
-----END PGP SIGNATURE-----

3
restic-0.15.1.tar.gz Normal file
View File

@ -0,0 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:fce382fdcdac0158a35daa640766d5e8a6e7b342ae2b0b84f2aacdff13990c52
size 23920501

16
restic-0.15.1.tar.gz.asc Normal file
View File

@ -0,0 +1,16 @@
-----BEGIN PGP SIGNATURE-----
iQIzBAABCAAdFiEEz48Y8oRFdZc/edThkaaGi9P3qQcFAmPYIFkACgkQkaaGi9P3
qQf46xAA1HOEnch8JCudGI2Iip0Mf67rRVb+4mMCsRsQEtptCVnAvRzVxNKwufpp
rBYx8wVHOtOQFBVqK8sRX06YLZzdarGEAE2/NIPZwTCw/XZ/mYaMYGDDLBO075mk
bhEpevZLRm6/8DZPkvoJZKW63eUcK8DrQOSCgSjfIghSwka/QFcSIKW151ppKOxj
qQZQ3agDE7IRvN9JSzLdlOHyAVhwZVEfh0Fmx7DnYCEenyFsSroZg8OkTJ/j6OIV
eLM8HLYbnXW+8uAl9O4DRmxHnXCkNIo1jLjyc5L2Q+mLqnWLQUwwy56nbMNflMUR
OA/EHEKoBofd6n2c+qWpWDlTJjWqRgeg/pwpR1UY3ppMfog4Ox7hZFODYKvdadJI
T7dGegsv302MsfPflaFkYnCNgZ6KI9OQufpEuEbtkGYQOtFOo87Gz57FKwsFOG/K
NtfuoEH36TktiCEO3tO+guSjDSws9BPHMxai081uTp/bx8BC6cLnOav5zZBiQF4S
0nUJKUfmnjjiZ7GmTgldHBQInQD6bREINmGz1xOu4EELLQ2+Ne6yMNmzzVkaOxk6
EYO+b/8wyFeGghowuT4rnNOBCZ92pNyfaUNwKNYihPhuJXM988P401Q5Ai6Cu24Z
24QxL1REm4lXZ03LBZW2iYO/Ss/ndZl3zeFeRjsKkbRCAOQ1ODI=
=VwhJ
-----END PGP SIGNATURE-----

View File

@ -1,3 +1,62 @@
-------------------------------------------------------------------
Tue Jan 31 21:33:43 UTC 2023 - Herbert Graeber <herbert@graeber-clan.de>
- Update to version 0.15.1
* Fix: Remove b2_download_file_by_name: 404 warning from B2 backend
* Fix: Make prune --quiet not print progress bar
* Fix: Make self-update --output work with new filename on Windows
* Fix: Add missing ETA in backup progress bar
* Enh: Ignore empty lock files
- Remove accidentally left over unused patch build.patch
-------------------------------------------------------------------
Tue Jan 24 18:46:48 UTC 2023 - Herbert Graeber <herbert@graeber-clan.de>
- Allow build with architectures that do not support -buildmode=pie
- New Patch disable-selfupdate.patch: Disable self-update, because updates
will be made using package manager
- Replace packageand by conditionals
- Update to version 0.15.0
* Make mount return exit code 0 after receiving Ctrl-C / SIGINT
* Make restore replace existing symlinks
* Don't read password from stdin for backup --stdin
* Delete files on Backblaze B2 more reliably
* Make SFTP backend report no space left on device
* Improve handling of interrupted syscalls in mount command
* Fix stuck copy command when -o <backend>.connections=1
* Correct prune statistics for partially compressed repositories
* Make ls return exit code 1 if snapshot cannot be loaded
* Make backup no longer hang on Solaris when seeing a FIFO file
* Support ExFAT-formatted local backends on macOS Ventura
* Make init ignore "Access Denied" errors when creating S3 buckets
* Make self-update enabled by default only in release builds
* Don't generate negative UIDs and GIDs in tar files from dump
* Include full snapshot ID in JSON output of backup
* Make unlock display message only when locks were actually removed
* Don't print skipped snapshots by default in copy command
* Update dependencies and require Go 1.18 or newer
* Implement rewrite command
* Restore files with long runs of zeros as sparse files
* Support restoring symbolic links on Windows
* Inform about successful retries after errors
* Improve handling of directories with duplicate entries
* Support B2 API keys restricted to hiding but not deleting files
* Make init open only one connection for the SFTP backend
* Handle cache corruption on disk and in downloads
* Stricter repository lock handling
* Make backup file read concurrency configurable
* Add support for credential_process to S3 backend
* Make mount command support macOS using macFUSE 4.x
* Support JSON output for the init command
* Optimize prune memory usage
* Improve speed of parent snapshot detection in backup command
* Add compression statistics to the stats command
* Provide command completion for PowerShell
* Allow backup file tree scanner to be disabled
* Improve handling of ErrDot errors in rclone and sftp backends
* Ignore additional/unknown files in repository
* Improve backup performance for small files
-------------------------------------------------------------------
Thu Aug 25 22:52:37 UTC 2022 - jkowalczyk@suse.com

View File

@ -1,7 +1,7 @@
#
# spec file for package restic
#
# Copyright (c) 2022 SUSE LLC
# Copyright (c) 2023 SUSE LLC
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
@ -20,7 +20,7 @@
%define import_path github.com/restic/restic
Name: restic
Version: 0.14.0
Version: 0.15.1
Release: 0
Summary: Backup program with deduplication and encryption
License: BSD-2-Clause
@ -30,10 +30,11 @@ Source0: https://github.com/restic/restic/releases/download/v%{version}/%
Source1: https://github.com/restic/restic/releases/download/v%{version}/%{name}-%{version}.tar.gz.asc
Source2: %{name}.keyring
Source3: vendor.tar.gz
Patch: disable-selfupdate.patch
BuildRequires: bash-completion
BuildRequires: golang-packaging
BuildRequires: zsh
BuildRequires: golang(API) >= 1.15
BuildRequires: golang(API) >= 1.18
%description
restic is a backup program. It supports verification, encryption,
@ -43,7 +44,7 @@ snapshots and deduplication.
Summary: Bash Completion for %{name}
Group: System/Shells
Requires: %{name} = %{version}
Supplements: packageand(restic:bash-completion)
Supplements: (restic and bash-completion)
BuildArch: noarch
%description bash-completion
@ -53,14 +54,14 @@ Bash command line completion support for %{name}.
Summary: Zsh Completion for %{name}
Group: System/Shells
Requires: %{name} = %{version}
Supplements: packageand(restic:zsh)
Supplements: (restic and zsh)
BuildArch: noarch
%description zsh-completion
Zsh command line completion support for %{name}.
%prep
%setup -q -a 3
%autosetup -p 1 -a 3
%build
# Set up GOPATH.
@ -71,7 +72,10 @@ cp -rT $PWD $HOME/go/src/%{import_path}
# Build restic. We don't use build.go because it builds statically, uses go
# modules, and also restricts the Go version in cases where it's not actually
# necessary. We disable go modules because restic still provides a vendor/.
GO111MODULE=off go build -o %{name} -buildmode=pie \
GO111MODULE=off go build -o %{name} \
%ifnarch ppc64 s390x
-buildmode=pie \
%endif
-ldflags "-s -w -X main.version=%{version}" \
%{import_path}/cmd/restic

View File

@ -1,3 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:908a9b401e557acd5403a9f0221fee9856bc5ad0f094e651ffa515ebcb8215c9
size 5714856
oid sha256:5c58e5b76ac489b32c261c6a6c688f485f31b2ed23c212dfc93ad89c238457ef
size 5577731