!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:
commit
fcb8ad3141
12
umoci.spec
12
umoci.spec
@ -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
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user