velero/velero.spec
jenting hsiao c3733d1836 - Update to version 1.6.3:
* Update changelog for v1.6.3
  * Merge pull request #4028 from zubron/add-restore-item-action-to-skip-automanaged-apiservices
  * Cherry-pick and update changelog for v1.6.3 (#4018)
  * Cherry pick changes for 1.6.3 and add changelog (#4006)
  * Fix bugs of E2E test cases
  * Support both v1beta1 and v1 CRDs for velero
  * Upgrade Velero ClusterRoleBinding to use v1 API (#3995)

OBS-URL: https://build.opensuse.org/package/show/devel:kubic/velero?expand=0&rev=21
2021-08-13 01:42:57 +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 3743ca4d533a343e5c5001b398e775f0d9c1bc25
%define gitstate clean
Name: velero
Version: 1.6.3
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