mirror of
https://abf.rosa.ru/djam/cni-plugins.git
synced 2025-02-23 14:22:55 +00:00
32 lines
792 B
RPMSpec
32 lines
792 B
RPMSpec
%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/
|