Summary: Container Network Interface (CNI) plugins Name: cni Version: 0.4.0 Release: 1%{?dist} License: ASL 2.0 URL: https://github.com/containernetworking/cni Source0: https://github.com/containernetworking/cni/archive/%{name}-v%{version}.tar.gz %define sha1 cni=86386f12730db7d6ba666956f851529b9d951366 Group: Development/Tools Vendor: VMware, Inc. Distribution: Photon BuildRequires: go >= 1.5 %define _default_cni_plugins_conf_dir /etc/cni/net.d %define _default_cni_plugins_bin_dir /opt/cni/bin %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 -n %{name}-%{version} %build ./build %install install -vdm 644 %{buildroot}%{_default_cni_plugins_conf_dir} install -vdm 755 %{buildroot}%{_default_cni_plugins_bin_dir} install -vpm 0755 -t %{buildroot}%{_default_cni_plugins_bin_dir} bin/* %check make -k check |& tee %{_specdir}/%{name}-check-log || %{nocheck} %post %postun %files %defattr(-,root,root) %{_default_cni_plugins_bin_dir}/* %changelog * Thu Feb 16 2017 Vinay Kulkarni <kulkarniv@vmware.com> 0.4.0-1 - Add CNI plugins package to PhotonOS.