81d688e980
OBS-URL: https://build.opensuse.org/package/show/Virtualization/containerized-data-importer?expand=0&rev=5
170 lines
4.7 KiB
RPMSpec
170 lines
4.7 KiB
RPMSpec
#
|
|
# spec file for package containerized-data-importer
|
|
#
|
|
# 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/
|
|
#
|
|
|
|
|
|
Name: containerized-data-importer
|
|
Version: 1.29.0
|
|
Release: 0
|
|
Summary: Container native virtualization
|
|
License: Apache-2.0
|
|
Group: System/Packages
|
|
URL: https://github.com/kubevirt/containerized-data-importer
|
|
Source0: %{name}-%{version}.tar.gz
|
|
BuildRequires: golang-packaging
|
|
BuildRequires: pkgconfig
|
|
BuildRequires: rsync
|
|
BuildRequires: sed
|
|
BuildRequires: golang(API) = 1.13
|
|
BuildRequires: libnbd-devel
|
|
ExclusiveArch: x86_64
|
|
|
|
%description
|
|
Containerized-Data-Importer (CDI) is a persistent storage management add-on for Kubernetes
|
|
|
|
%package api
|
|
Summary: CDI API server
|
|
Group: System/Packages
|
|
|
|
%description api
|
|
The containerized-data-importer-api package provides the kubernetes API extension for CDI
|
|
|
|
%package cloner
|
|
Summary: Cloner for host assisted cloning
|
|
Group: System/Packages
|
|
|
|
%description cloner
|
|
Source and Target cloner image for host assisted cloning
|
|
|
|
%package controller
|
|
Summary: Controller for the data fetching service
|
|
Group: System/Packages
|
|
|
|
%description controller
|
|
Controller for the data fetching service for VM container images
|
|
|
|
%package importer
|
|
Summary: Data fetching service
|
|
Group: System/Packages
|
|
|
|
%description importer
|
|
Data fetching service for VM container imagess
|
|
|
|
%package operator
|
|
Summary: Operator for the data fetching service
|
|
Group: System/Packages
|
|
|
|
%description operator
|
|
Operator for the data fetching service for VM container images
|
|
|
|
%package uploadproxy
|
|
Summary: Upload proxy for the data fetching service
|
|
Group: System/Packages
|
|
|
|
%description uploadproxy
|
|
Upload proxy for the data fetching service for VM container images
|
|
|
|
%package uploadserver
|
|
Summary: Upload server for the data fetching service
|
|
Group: System/Packages
|
|
|
|
%description uploadserver
|
|
Upload server for the data fetching service for VM container images
|
|
|
|
%prep
|
|
%autosetup -p1
|
|
|
|
%build
|
|
mkdir -p go/src/kubevirt.io go/pkg
|
|
ln -s ../../../ go/src/kubevirt.io/containerized-data-importer
|
|
export GOPATH=${PWD}/go
|
|
export GOFLAGS="-buildmode=pie -mod=vendor"
|
|
env \
|
|
KUBEVIRT_GO_BASE_PKGDIR="${GOPATH}/pkg" \
|
|
CDI_VERSION=%{version} \
|
|
CDI_SOURCE_DATE_EPOCH="$(date -r LICENSE +%s)" \
|
|
CDI_GIT_COMMIT='v%{version}' \
|
|
CDI_GIT_VERSION='v%{version}' \
|
|
CDI_GIT_TREE_STATE="clean" \
|
|
./hack/build/build-go.sh build \
|
|
cmd/cdi-apiserver \
|
|
cmd/cdi-cloner \
|
|
cmd/cdi-controller \
|
|
cmd/cdi-importer \
|
|
cmd/cdi-uploadproxy \
|
|
cmd/cdi-uploadserver \
|
|
cmd/cdi-operator \
|
|
tools/csv-generator \
|
|
%{nil}
|
|
|
|
%install
|
|
mkdir -p %{buildroot}%{_bindir}
|
|
|
|
install -p -m 0755 _out/cmd/cdi-apiserver/cdi-apiserver %{buildroot}%{_bindir}/virt-cdi-apiserver
|
|
|
|
install -p -m 0755 cmd/cdi-cloner/cloner_startup.sh %{buildroot}%{_bindir}/
|
|
install -p -m 0755 _out/cmd/cdi-cloner/cdi-cloner %{buildroot}%{_bindir}/
|
|
|
|
install -p -m 0755 _out/cmd/cdi-controller/cdi-controller %{buildroot}%{_bindir}/virt-cdi-controller
|
|
|
|
install -p -m 0755 _out/cmd/cdi-importer/cdi-importer %{buildroot}%{_bindir}/virt-cdi-importer
|
|
|
|
install -p -m 0755 _out/cmd/cdi-operator/cdi-operator %{buildroot}%{_bindir}/virt-cdi-operator
|
|
install -p -m 0755 _out/tools/csv-generator/csv-generator %{buildroot}%{_bindir}/
|
|
|
|
install -p -m 0755 _out/cmd/cdi-uploadproxy/cdi-uploadproxy %{buildroot}%{_bindir}/virt-cdi-uploadproxy
|
|
|
|
install -p -m 0755 _out/cmd/cdi-uploadserver/cdi-uploadserver %{buildroot}%{_bindir}/virt-cdi-uploadserver
|
|
|
|
%files api
|
|
%license LICENSE
|
|
%doc README.md
|
|
%{_bindir}/virt-cdi-apiserver
|
|
|
|
%files cloner
|
|
%license LICENSE
|
|
%doc README.md
|
|
%{_bindir}/cloner_startup.sh
|
|
%{_bindir}/cdi-cloner
|
|
|
|
%files controller
|
|
%license LICENSE
|
|
%doc README.md
|
|
%{_bindir}/virt-cdi-controller
|
|
|
|
%files importer
|
|
%license LICENSE
|
|
%doc README.md
|
|
%{_bindir}/virt-cdi-importer
|
|
|
|
%files operator
|
|
%license LICENSE
|
|
%doc README.md
|
|
%{_bindir}/virt-cdi-operator
|
|
%{_bindir}/csv-generator
|
|
|
|
%files uploadproxy
|
|
%license LICENSE
|
|
%doc README.md
|
|
%{_bindir}/virt-cdi-uploadproxy
|
|
|
|
%files uploadserver
|
|
%license LICENSE
|
|
%doc README.md
|
|
%{_bindir}/virt-cdi-uploadserver
|
|
|
|
%changelog
|