!35 [sync] PR-34: add loongarch64 and sw_64 support

From: @openeuler-sync-bot 
Reviewed-by: @wonleing 
Signed-off-by: @wonleing
This commit is contained in:
openeuler-ci-bot 2024-04-24 06:09:53 +00:00 committed by Gitee
commit fcb8ad3141
No known key found for this signature in database
GPG Key ID: 173E9B9CA92EEF8F

View File

@ -4,7 +4,7 @@
Name: umoci Name: umoci
Version: 0.4.7 Version: 0.4.7
Release: 2 Release: 3
Summary: Open Container Image manipulation tool Summary: Open Container Image manipulation tool
License: ISC and MIT and Apache-2.0 License: ISC and MIT and Apache-2.0
URL: https://github.com/opencontainers/umoci URL: https://github.com/opencontainers/umoci
@ -23,6 +23,13 @@ the OCI.
%prep %prep
%autosetup -n %{name}-%{version} -p1 %autosetup -n %{name}-%{version} -p1
tar -xf %SOURCE1 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 %build
cd go-md2man-* cd go-md2man-*
@ -55,6 +62,9 @@ done
%{_mandir}/man1/umoci* %{_mandir}/man1/umoci*
%changelog %changelog
* Thu Aug 10 2023 yeqinglong <yeqinglong@kylinsec.com.cn> - 0.4.7-3
- add loongarch64 and sw_64 support
* Tue Feb 15 2022 caodongxia <caodongxia@huawei.com> - 0.4.7-2 * Tue Feb 15 2022 caodongxia <caodongxia@huawei.com> - 0.4.7-2
- fix bad build flags - fix bad build flags