!8 add loong64 support

From: @huajingyun 
Reviewed-by: @yangzhao_kl 
Signed-off-by: @yangzhao_kl
This commit is contained in:
openeuler-ci-bot 2023-07-13 06:43:45 +00:00 committed by Gitee
commit d7c5107013
No known key found for this signature in database
GPG Key ID: 173E9B9CA92EEF8F
2 changed files with 10 additions and 1 deletions

View File

@ -2,10 +2,12 @@
Name: k3s-plugins
Version: 1.1.1
Release: 2
Release: 3
Summary: some standard networking plugins, maintained by the CNI team
URL : https://github.com/rancher/plugins
Source0: https://github.com/rancher/plugins/archive/refs/tags/v%{version}-%{tagname}.tar.gz
#source1 version sys@v0.0.0-20220908164124-27713097b956
Source1: sys.tar.gz
License: Apache-2.0
BuildRequires: golang >= 1.8.3 libseccomp-devel btrfs-progs-devel procps-ng
@ -64,6 +66,10 @@ cp %{SOURCE0} .gopath/src/github.com/containernetworking
pushd .gopath/src/github.com/containernetworking/
tar -xvf v1.1.1-k3s1.tar.gz
mv plugins-1.1.1-k3s1 plugins
%ifarch loongarch64
rm -rf plugins/vendor/golang.org/x/sys
tar -xf %{SOURCE1} -C plugins/vendor/golang.org/x/
%endif
rm -rf v1.1.1-k3s1.tar.gz
popd
@ -81,6 +87,9 @@ install -p -m 755 ./.gopath/cni $RPM_BUILD_ROOT/%{_datadir}/k3s/
%{_datadir}/k3s/
%changelog
* Tue Jul 11 2023 huajingyun <huajingyun@loongson.cn> - 1.1.1-3
- Add loong64 support
* Thu Feb 9 2023 liyanan <liyanan32@h-partners.com> - 1.1.1-2
- Add PIE, BIND_NOW, RELRO secure compilation options

BIN
sys.tar.gz Normal file

Binary file not shown.