From 8e7d7628698fc6c8bddca332133c2dbc7aa75759 Mon Sep 17 00:00:00 2001 From: yeqinglong Date: Thu, 10 Aug 2023 15:14:48 +0800 Subject: [PATCH] add loongarch64 and sw_64 support (cherry picked from commit 540cc43b82071787b57addc2fbb2a00354a546e8) --- umoci.spec | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/umoci.spec b/umoci.spec index e2447e0..967aa5c 100644 --- a/umoci.spec +++ b/umoci.spec @@ -4,7 +4,7 @@ Name: umoci Version: 0.4.7 -Release: 2 +Release: 3 Summary: Open Container Image manipulation tool License: ISC and MIT and Apache-2.0 URL: https://github.com/opencontainers/umoci @@ -23,6 +23,13 @@ the OCI. %prep %autosetup -n %{name}-%{version} -p1 tar -xf %SOURCE1 +%ifarch loongarch64 sw_64 +# Replace sys provided by golang +cp -af %{_prefix}/lib/golang/src/cmd/vendor/golang.org/x/sys vendor/golang.org/x/ +%endif +%ifarch sw_64 +sed -i 's/-buildmode=pie/-buildmode=exe/g' `grep buildmode=pie -rl .` +%endif %build cd go-md2man-* @@ -55,6 +62,9 @@ done %{_mandir}/man1/umoci* %changelog +* Thu Aug 10 2023 yeqinglong - 0.4.7-3 +- add loongarch64 and sw_64 support + * Tue Feb 15 2022 caodongxia - 0.4.7-2 - fix bad build flags -- Gitee