# Generated by go2rpm %bcond_without check # https://github.com/containerd/go-cni %global goipath github.com/containerd/go-cni %global commit 891c2a41e18144b2d7921f971d6c9789a68046b2 %gometa %global common_description %{expand: A generic CNI library to provide APIs for CNI plugin interactions. The library provides APIs to: - Load CNI network config from different sources - Setup networks for container namespace - Remove networks from container namespace - Query status of CNI network plugin initialization} %global golicenses LICENSE %global godocs README.md %global gosupfiles "${vendor[@]}" Name: %{goname} Version: 0 Release: 0.1%{?dist} Summary: Generic CNI library to provide APIs for CNI plugin interactions # Upstream license specification: Apache-2.0 License: ASL 2.0 URL: %{gourl} Source0: %{gosource} # BuildRequires: golang(github.com/containernetworking/cni/libcni) # BuildRequires: golang(github.com/containernetworking/cni/pkg/types) # BuildRequires: golang(github.com/containernetworking/cni/pkg/types/current) BuildRequires: golang(github.com/pkg/errors) %if %{with check} # Tests # BuildRequires: golang(github.com/containernetworking/cni/pkg/types/020) BuildRequires: golang(github.com/stretchr/testify/assert) BuildRequires: golang(github.com/stretchr/testify/mock) %endif %description %{common_description} %gopkg %prep # Have to use vendor github.com/containernetworking/cni because newer is not # compatible %goprep -k %install mapfile -t vendor <<< $(find vendor -type f) %gopkginstall %if %{with check} %check %gocheck %endif %gopkgfiles %changelog * Sat May 04 23:20:37 CEST 2019 Robert-André Mauchin - 0-0.1.20190504git891c2a4 - Initial package