# Generated by go2rpm 1.6.0 %bcond_without check # https://github.com/containernetworking/cni %global goipath github.com/containernetworking/cni Version: 1.0.1 %gometa %global common_description %{expand: Container Network Interface - networking for Linux containers.} %global golicenses LICENSE %global godocs CODE-OF-CONDUCT.md CONTRIBUTING.md CONVENTIONS.md\\\ GOVERNANCE.md RELEASING.md ROADMAP.md README.md\\\ SPEC.md Documentation/cnitool.md Documentation/spec-\\\ upgrades.md cnitool/README.md plugins/debug/README.md Name: %{goname} Release: 1%{?dist} Summary: Container Network Interface - networking for Linux containers # Upstream license specification: Apache-2.0 License: ASL 2.0 URL: %{gourl} Source0: %{gosource} %description %{common_description} %gopkg %prep %goprep %generate_buildrequires %go_generate_buildrequires %build for cmd in cnitool plugins/debug; do %gobuild -o %{gobuilddir}/bin/$(basename $cmd) %{goipath}/$cmd done %install %gopkginstall install -m 0755 -vd %{buildroot}%{_bindir} install -m 0755 -vp %{gobuilddir}/bin/* %{buildroot}%{_bindir}/ %files %license LICENSE %doc CODE-OF-CONDUCT.md CONTRIBUTING.md CONVENTIONS.md GOVERNANCE.md %doc RELEASING.md ROADMAP.md README.md SPEC.md Documentation/cnitool.md %doc Documentation/spec-upgrades.md cnitool/README.md plugins/debug/README.md %{_bindir}/* %gopkgfiles %changelog * Thu Mar 31 2022 Ondřej Budai - 1.0.1-1 - Initial package