]>
Commit | Line | Data |
---|---|---|
105d25cd JP |
1 | Summary: CNI network plugins |
2 | Name: containernetworking-plugins | |
7b25e253 | 3 | Version: 1.4.1 |
105d25cd JP |
4 | Release: 1 |
5 | License: Apache v2.0 | |
6 | Group: Applications/System | |
7 | #Source0Download: https://github.com/containers/podman/releases | |
8 | Source0: https://github.com/containernetworking/plugins/archive/v%{version}/%{name}-%{version}.tar.gz | |
7b25e253 | 9 | # Source0-md5: e81f65ff2f2de3b0e91e2648e3071fe5 |
105d25cd | 10 | URL: https://github.com/containernetworking/plugins/ |
e7bffff0 | 11 | BuildRequires: bash |
9d6bf7ac | 12 | BuildRequires: golang >= 1.20 |
d99747cc JP |
13 | BuildRequires: rpmbuild(macros) >= 2.009 |
14 | ExclusiveArch: %go_arches | |
105d25cd JP |
15 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) |
16 | ||
97cb8c48 JP |
17 | %define _debugsource_packages 0 |
18 | ||
105d25cd JP |
19 | %description |
20 | The CNI (Container Network Interface) project consists of a | |
21 | specification and libraries for writing plugins to configure network | |
22 | interfaces in Linux containers, along with a number of supported | |
23 | plugins. CNI concerns itself only with network connectivity of | |
24 | containers and removing allocated resources when the container is | |
25 | deleted. | |
26 | ||
27 | %prep | |
28 | %setup -q -n plugins-%{version} | |
29 | ||
30 | %build | |
ff970822 | 31 | GO="eval %__go" %{__bash} ./build_linux.sh |
105d25cd JP |
32 | |
33 | %install | |
34 | rm -rf $RPM_BUILD_ROOT | |
35 | ||
36 | install -d $RPM_BUILD_ROOT%{_sysconfdir}/cni/net.d | |
37 | install -d $RPM_BUILD_ROOT%{_libexecdir}/cni | |
38 | cp -p bin/* $RPM_BUILD_ROOT%{_libexecdir}/cni | |
39 | ||
40 | %clean | |
41 | rm -rf $RPM_BUILD_ROOT | |
42 | ||
43 | %files | |
44 | %defattr(644,root,root,755) | |
45 | %doc CONTRIBUTING.md OWNERS.md README.md | |
46 | %dir %{_sysconfdir}/cni | |
47 | %dir %{_sysconfdir}/cni/net.d | |
48 | %dir %{_libexecdir}/cni | |
49 | %attr(755,root,root) %{_libexecdir}/cni/* |