Name : containernetworking-cni Version : 0.6.0 Release : 1%{?dist} URL : https://github.com/containernetworking/cni/ Source0 : https://github.com/containernetworking/cni/archive/v0.6.0.tar.gz Summary : Container Network Interface Group : Development/Tools License : Apache-2.0 BSD-3-Clause MIT MPL-2.0-no-copyleft-exception Requires : containernetworking-plugins >= %{version} BuildRequires : go # don't strip, these are not ordinary object files %global __os_install_post %{nil} %define debug_package %{nil} %define __strip /bin/true %description The CNI (Container Network Interface) project consists of a specification and libraries for writing plugins to configure network interfaces in Linux containers, along with a number of supported plugins. %prep %setup -q -n cni-0.6.0 %build ./build.sh %install # these binaries are not supposed to be run by users install -d %{buildroot}/usr/libexec/cni for f in $(ls ./bin); do install -p -m 0755 "./bin/${f}" %{buildroot}/usr/libexec/cni done %files %defattr(-,root,root,-) /usr/libexec/cni/cnitool /usr/libexec/cni/noop %changelog * Sun Dec 24 2017 Jean-Marc Liger - 0.6.0-1 - Import from Clear Linux