SHA256
1
0
forked from pool/velero
velero/velero.spec
Richard Brown fe6ef6428e Accepting request 847374 from home:jenting:branches:devel:kubic
- Update to version v1.5.2
  - Fix BSL controller to avoid invoking init() on all BSLs regardless of ValidationFrequency (#2992, @betta1)
  - cli: allow creating multiple instances of Velero across two different namespaces (#2886, @alaypatel07)
  - Restore CRD Resource name to fix CRD wait functionality. (#2949, @sseago)
  - Ensure that bound PVCs and PVs remain bound on restore. (#3007, @nrb). This fixes CVE-2020-3996.

OBS-URL: https://build.opensuse.org/request/show/847374
OBS-URL: https://build.opensuse.org/package/show/devel:kubic/velero?expand=0&rev=10
2020-11-13 14:20:13 +00:00

67 lines
2.3 KiB
RPMSpec

#
# spec file for package velero
#
# Copyright (c) 2020 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 e115e5a191b1fdb5d379b62a35916115e77124a4
%define gitstate clean
Name: velero
Version: 1.5.2
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