add support for loongarch64

(cherry picked from commit f138a31897ca63aa48eb58455b6e62d4ab66f9a8)
This commit is contained in:
doupengda 2024-04-22 17:35:11 +08:00 committed by openeuler-sync-bot
parent e9d6397573
commit 7c77622494

View File

@ -2,7 +2,7 @@
Name: gendesk Name: gendesk
Version: 1.0.9 Version: 1.0.9
Release: 1 Release: 2
Summary: Utility for generating desktop files Summary: Utility for generating desktop files
Group: Development/Tools Group: Development/Tools
License: MIT License: MIT
@ -19,7 +19,15 @@ Utility for generating desktop files
%prep %prep
%autosetup -n %{name}-%{version} %autosetup -n %{name}-%{version}
%ifarch loongarch64
sed 's/go 1.10/go 1.21/g' -i go.mod
export GOSUMDB="sum.golang.org"
export GOPROXY="https://goproxy.cn"
go get -d golang.org/x/sys@v0.19.0
go mod tidy
go mod download
go mod vendor
%endif
#GOPATH=`pwd` go get -d -v #GOPATH=`pwd` go get -d -v
%build %build
@ -42,5 +50,8 @@ go build -mod=vendor -buildmode=pie -gccgoflags="-s -w $LDFLAGS"
%changelog %changelog
* Mon Apr 22 2024 Pengda Dou <doupengda@loongson.cn> - 1.0.9-2
- add support for loongarch64
* Tue May 16 2023 wangtaozhi <wangtaozhi@kylinsec.com.cn> - 1.0.9-1 * Tue May 16 2023 wangtaozhi <wangtaozhi@kylinsec.com.cn> - 1.0.9-1
- Package init - Package init