SPECS/cni/cni.spec
b4111d9f
 Summary:        Container Network Interface (CNI) plugins
 Name:           cni
f1dd615b
 Version:        0.7.5
b4111d9f
 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
f1dd615b
 %define sha1 cni=e980fff2a3e6446b70c3e0beb22ca53853259d4d
b4111d9f
 Group:          Development/Tools
 Vendor:         VMware, Inc.
 Distribution:   Photon
 BuildRequires:  go >= 1.5
 %define _default_cni_plugins_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
4e5812f1
 %setup -n plugins-%{version}
b4111d9f
 
 %build
4e5812f1
 ./build.sh
b4111d9f
 
 %install
 install -vdm 755 %{buildroot}%{_default_cni_plugins_dir}
 install -vpm 0755 -t %{buildroot}%{_default_cni_plugins_dir} bin/*
 
 %check
 make -k check |& tee %{_specdir}/%{name}-check-log || %{nocheck}
 
 %post
 
 %postun
 
 %files
 %defattr(-,root,root)
 %{_default_cni_plugins_dir}/*
 
 %changelog
f1dd615b
 *   Tue Apr 02 2019 Ashwin H <ashwinh@vmware.com> 0.7.5-1
 -   Update cni to v0.7.5
4e5812f1
 *   Tue Dec 05 2017 Vinay Kulkarni <kulkarniv@vmware.com> 0.6.0-1
 -   cni v0.6.0.
9874e684
 *   Fri Apr 7 2017 Alexey Makhalov <amakhalov@vmware.com> 0.5.1-1
 -   Version update
b4111d9f
 *   Thu Feb 16 2017 Vinay Kulkarni <kulkarniv@vmware.com> 0.4.0-1
 -   Add CNI plugins package to PhotonOS.