Package cni-plugins: Specfile
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 | %global import_path github.com/containernetworking/plugins %global _unpackaged_files_terminate_build 1 %define _libexecdir /usr/libexec %define cni_dir %_libexecdir/cni %define cni_etc_dir %_sysconfdir/cni Name: cni-plugins Version: 1.5.0 Release: alt1 Summary: Container Network Interface plugins Group: Development/Other License: Apache-2.0 Url: https://%import_path Source: %name-%version.tar Source2: %name.tmpfiles ExclusiveArch: %go_arches Provides: containernetworking-plugins = %EVR Provides: container-network-stack = 1 BuildRequires(pre): rpm-macros-golang BuildRequires: rpm-build-golang golang >= 1.20 BuildRequires: /proc %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. Because of this focus, CNI has a wide range of support and the specification is simple to implement. These are the additional CNI network plugins provided by the containernetworking team. %prep %setup -q # Use correct paths in cni-dhcp unitfiles sed -i 's,/opt/cni/bin,%cni_dir,' plugins/ipam/dhcp/systemd/cni-dhcp.service %build ./build_linux.sh %install mkdir -p %buildroot{%cni_dir,%cni_etc_dir/net.d,%_unitdir,%_tmpfilesdir} install -m0755 bin/* %buildroot%cni_dir/ install -p -m0644 plugins/ipam/dhcp/systemd/cni-dhcp.service %buildroot%_unitdir install -p -m0644 plugins/ipam/dhcp/systemd/cni-dhcp.socket %buildroot%_unitdir install -p -m0644 %SOURCE2 %buildroot%_tmpfilesdir/%name.conf %post %post_service cni-dhcp %preun %preun_service cni-dhcp %files %doc LICENSE README.md %dir %cni_etc_dir %dir %cni_etc_dir/net.d %dir %cni_dir %cni_dir/* %_unitdir/* %_tmpfilesdir/* %changelog * Fri May 31 2024 Alexey Shabalin <shaba@altlinux.org> 1.5.0-alt1 - New version 1.5.0. * Tue Dec 05 2023 Alexey Shabalin <shaba@altlinux.org> 1.4.0-alt1 - New version 1.4.0. * Mon May 15 2023 Alexey Shabalin <shaba@altlinux.org> 1.3.0-alt1 - New version 1.3.0. * Sun Jan 22 2023 Alexey Shabalin <shaba@altlinux.org> 1.2.0-alt1 - new version 1.2.0 * Sun Jul 31 2022 Alexey Shabalin <shaba@altlinux.org> 1.1.1-alt2 - add Provides: container-network-stack * Fri Jun 03 2022 Alexey Shabalin <shaba@altlinux.org> 1.1.1-alt1 - new version 1.1.1 * Mon Nov 01 2021 Alexey Shabalin <shaba@altlinux.org> 1.0.1-alt1 - new version 1.0.1 * Sun Sep 05 2021 Alexey Shabalin <shaba@altlinux.org> 1.0.0-alt1 - new version 1.0.0 * Mon Jul 19 2021 Alexey Shabalin <shaba@altlinux.org> 1.0.0-alt0.rc1 - new version 1.0.0-rc1 - package cni-dhcp.service and cni-dhcp.socket * Tue May 18 2021 Alexey Shabalin <shaba@altlinux.org> 0.9.1-alt1 - new version 0.9.1 * Sun Jan 17 2021 Alexey Shabalin <shaba@altlinux.org> 0.9.0-alt1 - new version 0.9.0 * Thu Sep 10 2020 Alexey Shabalin <shaba@altlinux.org> 0.8.7-alt1 - new version 0.8.7 * Fri May 15 2020 Alexey Shabalin <shaba@altlinux.org> 0.8.6-alt1 - new version 0.8.6 * Sat Mar 14 2020 Alexey Shabalin <shaba@altlinux.org> 0.8.5-alt1 - 0.8.5 * Fri Dec 13 2019 Alexey Shabalin <shaba@altlinux.org> 0.8.3-alt1 - 0.8.3 * Tue Sep 10 2019 Alexey Shabalin <shaba@altlinux.org> 0.8.2-alt1 - 0.8.2 * Fri Jul 19 2019 Alexey Shabalin <shaba@altlinux.org> 0.8.1-alt1 - updated to v0.8.1-35-gb6f1a69 * Wed Apr 24 2019 Alexey Shabalin <shaba@altlinux.org> 0.7.5-alt1 - 0.7.5 * Sat Feb 23 2019 Alexey Shabalin <shaba@altlinux.org> 0.7.4-alt1 - 0.7.4 * Wed Jun 13 2018 Alexey Shabalin <shaba@altlinux.ru> 0.7.1-alt2 - rebuild for aarch64 * Sat May 12 2018 Alexey Shabalin <shaba@altlinux.ru> 0.7.1-alt1 - Initial package |