Projects
Eulaceura:Mainline:GA
restic
_service:obs_scm:restic.spec
Sign Up
Log In
Username
Password
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File _service:obs_scm:restic.spec of Package restic
%global debug_package %{nil} %define import_path github.com/restic/restic Name: restic Version: 0.16.2 Release: 1 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: zsh BuildRequires: golang >= 1.18 %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 * Wed Jan 03 2024 Paul Thomas <paulthomas100199@gmail.com> 0.16.2-1 - update to version 0.16.2 * Mon Sep 06 2021 yinzehao <yinzehao@uniontech.com> - 0.12.1-1 - Package init
Locations
Projects
Search
Status Monitor
Help
Open Build Service
OBS Manuals
API Documentation
OBS Portal
Reporting a Bug
Contact
Mailing List
Forums
Chat (IRC)
Twitter
Open Build Service (OBS)
is an
openSUSE project
.
浙ICP备2022010568号-2