!7 add loongarch64 support for nix

From: @zhangwenlong01 
Reviewed-by: @duyiwei7w 
Signed-off-by: @duyiwei7w
This commit is contained in:
openeuler-ci-bot 2024-07-12 06:23:04 +00:00 committed by Gitee
commit 1942d786fb
No known key found for this signature in database
GPG Key ID: 173E9B9CA92EEF8F
2 changed files with 39 additions and 1 deletions

File diff suppressed because one or more lines are too long

View File

@ -2,13 +2,14 @@
Name: netavark
Version: 1.10.3
Release: 1
Release: 2
Summary: OCI network stack
License: ASL 2.0 and BSD and MIT
URL: https://github.com/containers/%{name}
Source0: %{url}/archive/refs/tags/v%{version}.tar.gz
Source1: %{url}/releases/download/v%{version}/%{name}-v%{version}-vendor.tar.gz
Source2: https://github.com/cpuguy83/go-md2man/archive/refs/tags/v2.0.2.tar.gz
Source3: 0001-add-loongarch64-support-for-nix.patch
BuildRequires: cargo
BuildRequires: make
BuildRequires: protobuf-c
@ -253,6 +254,7 @@ Its features include:
%autosetup -Sgit -n %{name}-%{version}
tar fx %{SOURCE1}
mkdir -p .cargo
patch -p1 < %{SOURCE3}
cat >.cargo/config << EOF
[source.crates-io]
@ -296,6 +298,9 @@ go-md2man -in %{name}.1.md -out %{name}.1
%{_unitdir}/%{name}-firewalld-reload.service
%changelog
* Thu Jun 06 2024 Wenlong Zhang <zhangwenlong@loongson.cn> - 1.10.3-2
- add loongarch64 support for nix
* Fri Mar 22 2024 tenglei <tenglei@kylinos.cn> - 1.10.3-1
- Upgrade to 1.10.3