!9 [sync] PR-8: 添加龙芯和申威架构支持
From: @openeuler-sync-bot Reviewed-by: @jianminw Signed-off-by: @jianminw
This commit is contained in:
commit
c3f38cd1c8
29
coredns.spec
29
coredns.spec
@ -2,13 +2,16 @@
|
|||||||
%global debug_package %{nil}
|
%global debug_package %{nil}
|
||||||
Name: coredns
|
Name: coredns
|
||||||
Version: 1.7.0
|
Version: 1.7.0
|
||||||
Release: 1.1
|
Release: 1.2
|
||||||
Summary: CoreDNS is a DNS server/forwarder, written in Go
|
Summary: CoreDNS is a DNS server/forwarder, written in Go
|
||||||
License: Apache-2.0
|
License: Apache-2.0
|
||||||
URL: https://coredns.io
|
URL: https://coredns.io
|
||||||
Source0: https://github.com/%{name}/%{name}/archive/v%{version}.tar.gz
|
Source0: https://github.com/%{name}/%{name}/archive/v%{version}.tar.gz
|
||||||
Source1: vendor.tar.gz
|
Source1: vendor.tar.gz
|
||||||
|
|
||||||
|
Source1000: net_loong64.tar.gz
|
||||||
|
Source1001: net_sw64.tar.gz
|
||||||
|
|
||||||
BuildRequires: golang >= 1.13
|
BuildRequires: golang >= 1.13
|
||||||
BuildRequires: fdupes
|
BuildRequires: fdupes
|
||||||
|
|
||||||
@ -25,6 +28,16 @@ Help document for the coredns package.
|
|||||||
|
|
||||||
%prep
|
%prep
|
||||||
%setup -q -a1
|
%setup -q -a1
|
||||||
|
%ifarch loongarch64 sw_64
|
||||||
|
%__rm -rf vendor/golang.org/x/{sys,net}
|
||||||
|
%__cp -af %{_prefix}/lib/golang/src/cmd/vendor/golang.org/x/sys vendor/golang.org/x/
|
||||||
|
%ifarch loongarch64
|
||||||
|
%__tar xf %{SOURCE1000} -C vendor/golang.org/x/
|
||||||
|
%endif
|
||||||
|
%ifarch sw_64
|
||||||
|
%__tar xf %{SOURCE1001} -C vendor/golang.org/x/
|
||||||
|
%endif
|
||||||
|
%endif
|
||||||
|
|
||||||
%build
|
%build
|
||||||
GO_BUILD_PATH=$PWD/_build
|
GO_BUILD_PATH=$PWD/_build
|
||||||
@ -33,7 +46,13 @@ ln -fs $PWD $GO_BUILD_PATH/src/%{project}
|
|||||||
cd $GO_BUILD_PATH/src/%{project}
|
cd $GO_BUILD_PATH/src/%{project}
|
||||||
export GOPATH=$GO_BUILD_PATH:%{gopath}
|
export GOPATH=$GO_BUILD_PATH:%{gopath}
|
||||||
export PATH=$PATH:$GOPATH/bin
|
export PATH=$PATH:$GOPATH/bin
|
||||||
go build -mod=vendor -v -buildmode=pie -o coredns
|
go build -mod=vendor -v \
|
||||||
|
%ifarch sw_64
|
||||||
|
-buildmode=exe \
|
||||||
|
%else
|
||||||
|
-buildmode=pie \
|
||||||
|
%endif
|
||||||
|
-o coredns
|
||||||
|
|
||||||
# It is not recommended to test in the build environment,
|
# It is not recommended to test in the build environment,
|
||||||
# because some testcases will be affected by the factors of
|
# because some testcases will be affected by the factors of
|
||||||
@ -65,6 +84,12 @@ install -m 0644 man/coredns-*.7 %{buildroot}/%{_mandir}/man7
|
|||||||
%{_mandir}/man7/coredns-*
|
%{_mandir}/man7/coredns-*
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
|
* Thu Aug 10 2023 herengui <herengui@kylinsec.com.cn> - 1.7.0-1.2
|
||||||
|
- Type:enhancement
|
||||||
|
- ID:NA
|
||||||
|
- SUG:NA
|
||||||
|
- DESC: Add support for sw_64 and loongarch64
|
||||||
|
|
||||||
* Wed Sep 08 2021 WuJing <wujing50@huawei.com> 1.7.0-1.1
|
* Wed Sep 08 2021 WuJing <wujing50@huawei.com> 1.7.0-1.1
|
||||||
- Type:enhancement
|
- Type:enhancement
|
||||||
- ID:NA
|
- ID:NA
|
||||||
|
|||||||
BIN
net_loong64.tar.gz
Normal file
BIN
net_loong64.tar.gz
Normal file
Binary file not shown.
BIN
net_sw64.tar.gz
Normal file
BIN
net_sw64.tar.gz
Normal file
Binary file not shown.
Loading…
x
Reference in New Issue
Block a user