kubevirt/kubevirt.spec
James Fehlig 4ed290ad71 Accepting request 840087 from home:jfehlig:branches:Virtualization
- Update to version 0.34.0:
  * Add mirrored dependencies to WORKSPACE
  * Mark networking conformance tests
  * restore backwards compatiblity with api group/version on DataVolumeTemplates spec
  * Revert "move all tests to use kv config"
  * Revert "update config message to specify which resource type it is using"
  * Revert "test usage of configmap configuration"
  * Revert "update build file"
  * Revert "convert postcopy tests to use KubeVirt CR"
  * Rework logic so it is easier to understand what is happening
  * Allow PVC as volume source with a DV populating the PVC. Before this was not allowed because we could not be sure that the PVC was fully populated. This commit checks the DV to ensure the PVC is fully populated.
  * vmi, sriov: Enable to set the PCI address on a SRIOV iface
  * Don't discard bazel platform cache on virtctl cross-compilation
  * convert postcopy tests to use KubeVirt CR
  * fix autoconverge test
  * remove using BeforeAll in vmi configuration tests
  * generated openapi spec
  * clean up
  * start prom server earlier in the virt-handler process so health check returns without EOF error
  * change kubevirt config type MemBalloon
  * dump kubevirt cr in ci artifacts
  * cpuRequest can not be type string since when the resource is patched it will fail to parse the units
  * change bool to pointer to know unset vs value set to false
  * update build file
  * test usage of configmap configuration
  * update config message to specify which resource type it is using
  * move all tests to use kv config
  * virt-launcher, Add mechanism to guard add/delete events channel
  * Generated artifacts
  * Add functional tests for missing subresource RBAC rules

OBS-URL: https://build.opensuse.org/request/show/840087
OBS-URL: https://build.opensuse.org/package/show/Virtualization/kubevirt?expand=0&rev=10
2020-10-07 15:56:04 +00:00

176 lines
5.0 KiB
RPMSpec

#
# spec file for package kubevirt
#
# 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: kubevirt
Version: 0.34.0
Release: 0
Summary: Container native virtualization
License: Apache-2.0
Group: System/Packages
URL: https://github.com/kubevirt/kubevirt
Source0: %{name}-%{version}.tar.gz
BuildRequires: glibc-devel-static
BuildRequires: golang-packaging
BuildRequires: pkgconfig
BuildRequires: rsync
BuildRequires: sed
BuildRequires: golang(API) = 1.13
BuildRequires: pkgconfig(libvirt)
ExclusiveArch: x86_64
%description
Kubevirt is a virtual machine management add-on for Kubernetes
%package virtctl
Summary: Client for managing kubevirt
Group: System/Packages
%description virtctl
The virtctl client is a command-line utility for managing container native virtualization resources
%package virt-api
Summary: Kubevirt API server
Group: System/Packages
%description virt-api
The virt-api package provides the kubernetes API extension for kubevirt
%package container-disk
Summary: Container disk for kubevirt
Group: System/Packages
%description container-disk
The containter-disk package provides a container disk functionality for kubevirt
%package virt-controller
Summary: Controller for kubevirt
Group: System/Packages
%description virt-controller
The virt-controller package provides a controller for kubevirt
%package virt-handler
Summary: Handler component for kubevirt
Group: System/Packages
%description virt-handler
The virt-handler package provides a handler for kubevirt
%package virt-launcher
Summary: Launcher component for kubevirt
Group: System/Packages
%description virt-launcher
The virt-launcher package provides a launcher for kubevirt
%package virt-operator
Summary: Operator component for kubevirt
Group: System/Packages
%description virt-operator
The virt-opertor package provides an operator for kubevirt CRD
%prep
%autosetup -p1
%build
mkdir -p go/src/kubevirt.io go/pkg
ln -s ../../../ go/src/kubevirt.io/kubevirt
export GOPATH=${PWD}/go
export GOFLAGS="-buildmode=pie"
cd ${GOPATH}/src/kubevirt.io/kubevirt
env \
KUBEVIRT_GO_BASE_PKGDIR="${GOPATH}/pkg" \
KUBEVIRT_VERSION=%{version} \
KUBEVIRT_SOURCE_DATE_EPOCH="$(date -r LICENSE +%{s})" \
KUBEVIRT_GIT_COMMIT='v%{version}' \
KUBEVIRT_GIT_VERSION='v%{version}' \
KUBEVIRT_GIT_TREE_STATE="clean" \
./hack/build-go.sh install \
cmd/virtctl \
cmd/virt-api \
cmd/virt-controller \
cmd/virt-chroot \
cmd/virt-handler \
cmd/virt-launcher \
cmd/virt-operator \
tools/csv-generator \
%{nil}
./hack/build-copy-artifacts.sh
%install
mkdir -p %{buildroot}%{_bindir}
chmod 0755 _out/cmd/container-disk-v2alpha/container-disk
install -p -m 0755 _out/cmd/container-disk-v2alpha/container-disk %{buildroot}%{_bindir}/
chmod 0755 _out/cmd/virtctl/virtctl
install -p -m 0755 _out/cmd/virtctl/virtctl %{buildroot}%{_bindir}/
chmod 0755 _out/cmd/virt-api/virt-api
install -p -m 0755 _out/cmd/virt-api/virt-api %{buildroot}%{_bindir}/
chmod 0755 _out/cmd/virt-controller/virt-controller
install -p -m 0755 _out/cmd/virt-controller/virt-controller %{buildroot}%{_bindir}/
chmod 0755 _out/cmd/virt-chroot/virt-chroot
install -p -m 0755 _out/cmd/virt-chroot/virt-chroot %{buildroot}%{_bindir}/
chmod 0755 _out/cmd/virt-handler/virt-handler
install -p -m 0755 _out/cmd/virt-handler/virt-handler %{buildroot}%{_bindir}/
chmod 0755 _out/cmd/virt-launcher/virt-launcher
install -p -m 0755 _out/cmd/virt-launcher/virt-launcher %{buildroot}%{_bindir}/
chmod 0755 _out/cmd/virt-operator/virt-operator
install -p -m 0755 _out/cmd/virt-operator/virt-operator %{buildroot}%{_bindir}/
chmod 0755 _out/cmd/csv-generator/csv-generator
install -p -m 0755 _out/cmd/csv-generator/csv-generator %{buildroot}%{_bindir}/
%files virtctl
%license LICENSE
%doc README.md
%{_bindir}/virtctl
%files virt-api
%license LICENSE
%doc README.md
%{_bindir}/virt-api
%files container-disk
%license LICENSE
%doc README.md
%{_bindir}/container-disk
%files virt-controller
%license LICENSE
%doc README.md
%{_bindir}/virt-controller
%files virt-handler
%license LICENSE
%doc README.md
%{_bindir}/virt-handler
%{_bindir}/virt-chroot
%files virt-launcher
%license LICENSE
%doc README.md
%{_bindir}/virt-launcher
%files virt-operator
%license LICENSE
%doc README.md
%{_bindir}/virt-operator
%{_bindir}/csv-generator
%changelog