add loong64 support for umoci

This commit is contained in:
Wenlong Zhang 2023-07-11 09:38:44 +08:00
parent 272cb4f711
commit e1b029bdbe
2 changed files with 9 additions and 1 deletions

BIN
sys.tar.gz Normal file

Binary file not shown.

View File

@ -4,12 +4,13 @@
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
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
BuildRequires: fdupes go >= 1.6
@ -23,6 +24,10 @@ the OCI.
%prep
%autosetup -n %{name}-%{version} -p1
tar -xf %SOURCE1
%ifarch loongarch64
rm -rf vendor/golang.org/x/sys
tar -xf %{SOURCE2} -C vendor/golang.org/x
%endif
%build
cd go-md2man-*
@ -55,6 +60,9 @@ done
%{_mandir}/man1/umoci*
%changelog
* Tue Jul 11 2023 Wenlong Zhang<zhangwenlong@loongson.cn> - 0.4.7-3
- add loong64 support for umoci
* Tue Feb 15 2022 caodongxia <caodongxia@huawei.com> - 0.4.7-2
- fix bad build flags