From: Jan Palus Date: Sun, 6 Dec 2020 22:56:14 +0000 (+0100) Subject: new (version 0.8.7) X-Git-Tag: auto/th/containernetworking-plugins-0.9.1-1~2 X-Git-Url: https://git.pld-linux.org/?p=packages%2Fcontainernetworking-plugins.git;a=commitdiff_plain;h=105d25cd3a30f36deca294b3b010d415ee8e9490 new (version 0.8.7) --- 105d25cd3a30f36deca294b3b010d415ee8e9490 diff --git a/containernetworking-plugins.spec b/containernetworking-plugins.spec new file mode 100644 index 0000000..bfac27a --- /dev/null +++ b/containernetworking-plugins.spec @@ -0,0 +1,45 @@ +Summary: CNI network plugins +Name: containernetworking-plugins +Version: 0.8.7 +Release: 1 +License: Apache v2.0 +Group: Applications/System +#Source0Download: https://github.com/containers/podman/releases +Source0: https://github.com/containernetworking/plugins/archive/v%{version}/%{name}-%{version}.tar.gz +# Source0-md5: 624772d0233c3c391d0cd254e24b02c6 +URL: https://github.com/containernetworking/plugins/ +BuildRequires: golang +ExclusiveArch: %{ix86} %{x8664} %{arm} aarch64 mips64 mips64le ppc64 ppc64le s390x +BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) + +%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. CNI concerns itself only with network connectivity of +containers and removing allocated resources when the container is +deleted. + +%prep +%setup -q -n plugins-%{version} + +%build +./build_linux.sh + +%install +rm -rf $RPM_BUILD_ROOT + +install -d $RPM_BUILD_ROOT%{_sysconfdir}/cni/net.d +install -d $RPM_BUILD_ROOT%{_libexecdir}/cni +cp -p bin/* $RPM_BUILD_ROOT%{_libexecdir}/cni + +%clean +rm -rf $RPM_BUILD_ROOT + +%files +%defattr(644,root,root,755) +%doc CONTRIBUTING.md OWNERS.md README.md +%dir %{_sysconfdir}/cni +%dir %{_sysconfdir}/cni/net.d +%dir %{_libexecdir}/cni +%attr(755,root,root) %{_libexecdir}/cni/*