commit 10e107dbbfcb1e7ede0010a33c7c7a5992b9c059 Author: Sergey Zhemoitel Date: Tue Feb 16 22:29:17 2021 +0300 Imported from SRPM diff --git a/.abf.yml b/.abf.yml new file mode 100644 index 0000000..dba9be7 --- /dev/null +++ b/.abf.yml @@ -0,0 +1,2 @@ +sources: + cni-plugins-0.8.7.tar.gz: a9250841d8de9b9c00a7a92f000164ec4fafbe6b diff --git a/cni-plugins.rpmlintrc b/cni-plugins.rpmlintrc new file mode 100644 index 0000000..ea7f91c --- /dev/null +++ b/cni-plugins.rpmlintrc @@ -0,0 +1,2 @@ +addFilter("E: dir-or-file-in-opt") + diff --git a/cni-plugins.spec b/cni-plugins.spec new file mode 100644 index 0000000..b3a5f43 --- /dev/null +++ b/cni-plugins.spec @@ -0,0 +1,32 @@ +%define debug %nil +%define debug_package %nil +%define _optdir /opt + +Name: cni-plugins +Version: 0.8.7 +Release: 1 +Summary: CNI networking plugins +URL: https://cni.dev +Source0: https://github.com/containernetworking/plugins/archive/v%{version}/%{name}-%{version}.tar.gz +Source1000: %{name}.rpmlintrc +License: ASL 2.0 +Group: Development/Other +BuildRequires: go >= 1.11 +BuildRequires: git-core + +%description +Some CNI network plugins, maintained by the containernetworking team + +%prep +%setup -qn plugins-%{version} + +%build +./build_linux.sh -ldflags="-s -w -X github.com/containernetworking/plugins/pkg/utils/buildversion.BuildVersion=%{version}" + +%install +install -d %{buildroot}%{_optdir}/cni/bin +cp -a bin/* %{buildroot}%{_optdir}/cni/bin + +%files +%doc README.md LICENSE +%{_optdir}/cni/bin/