[packages/containernetworking-plugin-flannel] new
atler
atler at pld-linux.org
Wed Mar 2 00:49:58 CET 2022
commit 5fda564570a5a7f6c7473be72d96dc9e71915088
Author: Jan Palus <atler at pld-linux.org>
Date: Wed Mar 2 00:49:23 2022 +0100
new
containernetworking-plugin-flannel.spec | 49 +++++++++++++++++++++++++++++++++
1 file changed, 49 insertions(+)
---
diff --git a/containernetworking-plugin-flannel.spec b/containernetworking-plugin-flannel.spec
new file mode 100644
index 0000000..754338a
--- /dev/null
+++ b/containernetworking-plugin-flannel.spec
@@ -0,0 +1,49 @@
+%define vendor_version 1.0.1
+Summary: CNI plugin designed to work in conjunction with flannel
+Name: containernetworking-plugin-flannel
+Version: 1.0.1
+Release: 1
+License: Apache v2.0
+Group: Applications
+Source0: https://github.com/flannel-io/cni-plugin/archive/v%{version}/flannel-cni-plugin-%{version}.tar.gz
+# Source0-md5: b2df4fbd659fbd6c39e056cc7c1786a4
+Source1: flannel-cni-plugin-vendor-%{vendor_version}.tar.xz
+# Source1-md5: 2bc7a1ce22ebdec186280c942a4d29c9
+URL: https://github.com/flannel-io/cni-plugin
+BuildRequires: golang >= 1.16
+BuildRequires: rpmbuild(macros) >= 2.009
+BuildRequires: tar >= 1:1.22
+BuildRequires: xz
+ExclusiveArch: %go_arches
+BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
+
+%define _debugsource_packages 0
+
+%description
+CNI plugin designed to work in conjunction with flannel.
+
+%prep
+%setup -q -n cni-plugin-%{version} -a1
+
+%{__mv} cni-plugin-%{vendor_version}/vendor .
+
+%build
+ldflags="-X main.Version=%{version} \
+ -X main.Program=flannel \
+ -X main.buildDate=$(date -u '+%Y-%m-%dT%H:%M:%SZ')"
+%__go build -mod=vendor -ldflags="$ldflags" -tags="netgo osusergo no_stage" -o target/flannel
+
+%install
+rm -rf $RPM_BUILD_ROOT
+
+install -d $RPM_BUILD_ROOT%{_libexecdir}/cni
+
+cp -p target/flannel $RPM_BUILD_ROOT%{_libexecdir}/cni
+
+%clean
+rm -rf $RPM_BUILD_ROOT
+
+%files
+%defattr(644,root,root,755)
+%doc README.md
+%attr(755,root,root) %{_libexecdir}/cni/flannel
================================================================
---- gitweb:
http://git.pld-linux.org/gitweb.cgi/packages/containernetworking-plugin-flannel.git/commitdiff/5fda564570a5a7f6c7473be72d96dc9e71915088
More information about the pld-cvs-commit
mailing list