Imported from SRPM

This commit is contained in:
Sergey Zhemoitel 2021-02-16 22:29:17 +03:00
commit 10e107dbbf
3 changed files with 36 additions and 0 deletions

2
.abf.yml Normal file
View file

@ -0,0 +1,2 @@
sources:
cni-plugins-0.8.7.tar.gz: a9250841d8de9b9c00a7a92f000164ec4fafbe6b

2
cni-plugins.rpmlintrc Normal file
View file

@ -0,0 +1,2 @@
addFilter("E: dir-or-file-in-opt")

32
cni-plugins.spec Normal file
View file

@ -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/