add sw_64 support

This commit is contained in:
Hailiang 2025-03-18 17:57:01 +08:00
parent 3aa1cd6f55
commit b99b996b05
2 changed files with 2774 additions and 1 deletions

2766
add-sw_64-support.patch Normal file

File diff suppressed because it is too large Load Diff

View File

@ -4,7 +4,7 @@
Name: umoci
Version: 0.4.7
Release: 3
Release: 4
Summary: Open Container Image manipulation tool
License: ISC and MIT and Apache-2.0
URL: https://github.com/opencontainers/umoci
@ -12,6 +12,7 @@ Source0: https://github.com/opencontainers/umoci/archive/v0.4.7.tar.gz
Source1: https://github.com/cpuguy83/go-md2man/archive/v1.0.10.tar.gz
Source2: sys.tar.gz
Patch0000: fix-bad-build-flags.patch
Patch0001: add-sw_64-support.patch
BuildRequires: fdupes go >= 1.6
%description
@ -28,6 +29,9 @@ tar -xf %SOURCE1
rm -rf vendor/golang.org/x/sys
tar -xf %{SOURCE2} -C vendor/golang.org/x
%endif
%ifarch sw_64
sed -i 's/-buildmode=pie/-buildmode=exe/g' Makefile
%endif
%build
cd go-md2man-*
@ -60,6 +64,9 @@ done
%{_mandir}/man1/umoci*
%changelog
* Tue Mar 18 2025 mahailiang <mahailiang@uniontech.com> - 0.4.7-4
- add sw_64 support for umoci
* Tue Jul 11 2023 Wenlong Zhang<zhangwenlong@loongson.cn> - 0.4.7-3
- add loong64 support for umoci