forked from pool/restic
ea4efa5df5
- update to 0.13.0: * #1106: Never lock repository for list locks * #2345: Make cache crash-resistant and usable by multiple concurrent processes * #2452: Improve error handling of repository locking * #2738: Don't print progress for backup --json --quiet * #3382: Make check command honor RESTIC_CACHE_DIR environment variable * #3518: Make copy command honor --no-lock for source repository * #3556: Fix hang with Backblaze B2 on SSL certificate authority error * #3601: Fix rclone backend prematurely exiting when receiving SIGINT on Windows * #3667: The mount command now reports symlinks sizes * #3488: rebuild-index failed if an index file was damaged * #3591: Fix handling of prune --max-repack-size=0 * #3619: Avoid choosing parent snapshots newer than time of new snapshot * #3641: Ignore parent snapshot for backup --stdin * #3519: Require Go 1.14 or newer * #1542: Add --dry-run/-n option to backup command * #2202: Add upload checksum for Azure, GS, S3 and Swift backends * #233: Support negative include/exclude patterns * #2388: Add warning for S3 if partial credentials are provided * #2508: Support JSON output and quiet mode for the diff command * #2656: Add flag to disable TLS verification for self-signed certificates * #3003: Atomic uploads for the SFTP backend * #3127: Add xattr (extended attributes) support for Solaris * #3464: Skip lock creation on forget if --no-lock and --dry-run * #3490: Support random subset by size in check --read-data-subset * #3541: Improve handling of temporary B2 delete errors * #3542: Add file mode in symbolic notation to ls --json * #2594: Speed up the restore --verify command * #2816: The backup command no longer updates file access times on Linux * #2880: Make recover collect only unreferenced trees OBS-URL: https://build.opensuse.org/request/show/965249 OBS-URL: https://build.opensuse.org/package/show/Archiving/restic?expand=0&rev=30
100 lines
3.1 KiB
RPMSpec
100 lines
3.1 KiB
RPMSpec
#
|
|
# spec file for package restic
|
|
#
|
|
# Copyright (c) 2022 SUSE LLC
|
|
#
|
|
# All modifications and additions to the file contributed by third parties
|
|
# remain the property of their copyright owners, unless otherwise agreed
|
|
# upon. The license for this file, and modifications and additions to the
|
|
# file, is the same license as for the pristine package itself (unless the
|
|
# license for the pristine package is not an Open Source License, in which
|
|
# case the license is the MIT License). An "Open Source License" is a
|
|
# license that conforms to the Open Source Definition (Version 1.9)
|
|
# published by the Open Source Initiative.
|
|
|
|
# Please submit bugfixes or comments via https://bugs.opensuse.org/
|
|
#
|
|
# nodebuginfo
|
|
|
|
|
|
%define import_path github.com/restic/restic
|
|
|
|
Name: restic
|
|
Version: 0.13.0
|
|
Release: 0
|
|
Summary: Backup program with deduplication and encryption
|
|
License: BSD-2-Clause
|
|
Group: Productivity/Archiving/Backup
|
|
URL: https://restic.net
|
|
Source0: https://github.com/restic/restic/releases/download/v%{version}/%{name}-%{version}.tar.gz
|
|
Source1: https://github.com/restic/restic/releases/download/v%{version}/%{name}-%{version}.tar.gz.asc
|
|
Source2: %{name}.keyring
|
|
Source3: vendor.tar.xz
|
|
BuildRequires: bash-completion
|
|
BuildRequires: golang-packaging
|
|
BuildRequires: zsh
|
|
BuildRequires: golang(API) >= 1.14
|
|
|
|
%description
|
|
restic is a backup program. It supports verification, encryption,
|
|
snapshots and deduplication.
|
|
|
|
%package bash-completion
|
|
Summary: Bash Completion for %{name}
|
|
Group: System/Shells
|
|
Requires: %{name} = %{version}
|
|
Supplements: packageand(restic:bash-completion)
|
|
BuildArch: noarch
|
|
|
|
%description bash-completion
|
|
Bash command line completion support for %{name}.
|
|
|
|
%package zsh-completion
|
|
Summary: Zsh Completion for %{name}
|
|
Group: System/Shells
|
|
Requires: %{name} = %{version}
|
|
Supplements: packageand(restic:zsh)
|
|
BuildArch: noarch
|
|
|
|
%description zsh-completion
|
|
Zsh command line completion support for %{name}.
|
|
|
|
%prep
|
|
%setup -q -a 3
|
|
|
|
%build
|
|
# Set up GOPATH.
|
|
export GOPATH="$GOPATH:$HOME/go"
|
|
mkdir -p $HOME/go/src/%{import_path}
|
|
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 \
|
|
-ldflags "-s -w -X main.version=%{version}" \
|
|
%{import_path}/cmd/restic
|
|
|
|
%install
|
|
install -D -m0755 %{name} %{buildroot}%{_bindir}/%{name}
|
|
install -d %{buildroot}%{_mandir}/man1
|
|
./%{name} generate --man %{buildroot}%{_mandir}/man1
|
|
install -Dm0644 doc/bash-completion.sh %{buildroot}%{_datadir}/bash-completion/completions/%{name}
|
|
install -Dm0644 doc/zsh-completion.zsh %{buildroot}%{_sysconfdir}/zsh_completion.d/%{name}
|
|
|
|
%files
|
|
%defattr(-,root,root)
|
|
%doc *.md
|
|
%doc doc/
|
|
%license LICENSE
|
|
%{_bindir}/restic
|
|
%{_mandir}/man1/restic*.1*
|
|
|
|
%files bash-completion
|
|
%{_datadir}/bash-completion/completions/%{name}
|
|
|
|
%files zsh-completion
|
|
%config %{_sysconfdir}/zsh_completion.d/%{name}
|
|
|
|
%changelog
|