SHA256
1
0
forked from pool/velero
velero/velero.spec
jenting hsiao dca674066d Accepting request 901598 from home:jenting:branches:devel:kubic
- Update to version 1.6.1:
  * Add changelog for v1.6.1
  * regression introduced in 1.6 restore progress: fix CR restore (#3845)
  * Skip volume restores from projected sources (#3877)
  * API groups e2e tests remove controllers (#3564)
  * Merge pull request #3866 from alaypatel07/fix-projected-volume-for-restic
  * Consolidate api clients for e2e tests (#3764)
  * A small refactor of the e2e tests (#3726)
  * 🐛  Fix plugin name derivation from image name (#3711)

OBS-URL: https://build.opensuse.org/request/show/901598
OBS-URL: https://build.opensuse.org/package/show/devel:kubic/velero?expand=0&rev=18
2021-06-24 01:44:16 +00:00

67 lines
2.3 KiB
RPMSpec

#
# spec file for package velero
#
# Copyright (c) 2021 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/
#
%define goipath github.com/vmware-tanzu/velero
%define commit e22d6591e432b4b9e4c1a662b8e8ca2c674b074f
%define gitstate clean
Name: velero
Version: 1.6.1
Release: 0
Summary: Backup program with deduplication and encryption
License: Apache-2.0
Group: Productivity/Archiving/Backup
URL: https://velero.io
Source0: https://github.com/vmware-tanzu/velero/archive/v%{version}.tar.gz#/%{name}-%{version}.tar.gz
Source1: vendor.tar.gz
BuildRequires: golang-packaging
BuildRequires: golang(API) = 1.14
%description
velero is a backup program. It supports verification, encryption,
snapshots and deduplication.
%package velero-restic-restore-helper
Summary: Restic restore helper for %{name}
Group: Productivity/Archiving/Backup
Requires: %{name} = %{version}
Supplements: packageand(velero:velero-restic-restore-helper)
%description velero-restic-restore-helper
Restic restore helper for %{name}.
%prep
%setup -q -a1
%build
%goprep %{goipath}
export CGO_ENABLED=0
%gobuild -mod vendor -installsuffix "static" -ldflags "-X %{goipath}/pkg/buildinfo.Version=%{version} -X %{goipath}/pkg/buildinfo.GitSHA=%{commit} -X %{goipath}/pkg/buildinfo.GitTreeState=%{gitstate}" cmd/velero
%gobuild -mod vendor -installsuffix "static" -ldflags "-X %{goipath}/pkg/buildinfo.Version=%{version} -X %{goipath}/pkg/buildinfo.GitSHA=%{commit} -X %{goipath}/pkg/buildinfo.GitTreeState=%{gitstate}" cmd/velero-restic-restore-helper
%install
%goinstall
%files
%doc README.md
%license LICENSE
%{_bindir}/velero
%{_bindir}/velero-restic-restore-helper
%changelog