2020-09-11 10:25:17 +02:00
|
|
|
#
|
2020-11-18 06:15:26 +01:00
|
|
|
# spec file for package csi-external-provisioner
|
2020-09-11 10:25:17 +02:00
|
|
|
#
|
2021-03-24 16:38:17 +01:00
|
|
|
# Copyright (c) 2021 SUSE LLC
|
2020-09-11 10:25:17 +02:00
|
|
|
#
|
|
|
|
# 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.
|
|
|
|
|
2020-11-18 06:15:26 +01:00
|
|
|
# Please submit bugfixes or comments via https://bugs.opensuse.org/
|
2020-09-11 10:25:17 +02:00
|
|
|
#
|
|
|
|
|
2020-11-18 06:15:26 +01:00
|
|
|
|
2020-09-11 10:25:17 +02:00
|
|
|
%{go_nostrip}
|
|
|
|
|
|
|
|
%define project github.com/kubernetes-csi/external-provisioner
|
|
|
|
%define package csi-provisioner
|
|
|
|
%define source external-provisioner
|
|
|
|
|
|
|
|
Name: csi-%{source}
|
2021-03-31 16:35:26 +02:00
|
|
|
Version: 2.0.4
|
2020-09-11 10:25:17 +02:00
|
|
|
Release: 0
|
|
|
|
Summary: Dynamically provisions volumes of CSI drivers
|
|
|
|
License: Apache-2.0
|
|
|
|
Group: System/Management
|
2020-11-18 06:15:26 +01:00
|
|
|
URL: https://%{project}
|
|
|
|
Source: %{name}-%{version}.tar.gz
|
2020-09-11 10:25:17 +02:00
|
|
|
Source1: vendor.tar.gz
|
2021-03-24 16:38:17 +01:00
|
|
|
BuildRequires: go1.13 >= 1.13.0
|
2020-09-11 10:25:17 +02:00
|
|
|
BuildRequires: golang-packaging
|
2021-03-24 16:38:17 +01:00
|
|
|
BuildRequires: golang(API) >= 1.13
|
2020-09-11 10:25:17 +02:00
|
|
|
|
|
|
|
%description
|
|
|
|
Kubernetes external controller that monitors PersistentVolumeClaim objects created by user and creates/deletes volumes for them.
|
|
|
|
|
|
|
|
%prep
|
2020-11-18 06:15:26 +01:00
|
|
|
%setup -q
|
|
|
|
%setup -q -T -D -a 1
|
2020-09-11 10:25:17 +02:00
|
|
|
|
|
|
|
%build
|
|
|
|
%goprep %{project}
|
|
|
|
|
|
|
|
export CGO_ENABLED=0
|
|
|
|
export GOOS=linux
|
|
|
|
|
|
|
|
%gobuild -a -mod=vendor -ldflags="-w -s -X main.version=%{version}" cmd/%{package}
|
|
|
|
|
|
|
|
%install
|
|
|
|
%goinstall
|
|
|
|
|
|
|
|
%files
|
|
|
|
%license LICENSE
|
|
|
|
%doc README.md
|
|
|
|
%{_bindir}/%{package}
|
|
|
|
|
|
|
|
%changelog
|