Change-Id: I9d160571450be63a416217a7f5e91dd0c560821b
Reviewed-on: http://photon-jenkins.eng.vmware.com:8082/5783
Reviewed-by: gerrit-photon <photon-checkins@vmware.com>
Tested-by: gerrit-photon <photon-checkins@vmware.com>
... | ... |
@@ -1,11 +1,17 @@ |
1 |
+%ifarch aarch64 |
|
2 |
+%global gohostarch arm64 |
|
3 |
+%else |
|
4 |
+%global gohostarch amd64 |
|
5 |
+%endif |
|
6 |
+ |
|
1 | 7 |
Summary: CoreDNS |
2 | 8 |
Name: coredns |
3 | 9 |
Version: 1.2.0 |
4 |
-Release: 1%{?dist} |
|
10 |
+Release: 2%{?dist} |
|
5 | 11 |
License: Apache License 2.0 |
6 |
-URL: https://github.com/coredns/coredns/archive/v%{version}.tar.gz |
|
12 |
+URL: https://github.com/coredns/coredns/releases/v%{version}.tar.gz |
|
7 | 13 |
Source0: coredns-%{version}.tar.gz |
8 |
-%define sha1 coredns-%{version}.tar.gz=68818ca8981750eba425be9b561c4724948d236d |
|
14 |
+%define sha1 coredns=68818ca8981750eba425be9b561c4724948d236d |
|
9 | 15 |
Group: Development/Tools |
10 | 16 |
Vendor: VMware, Inc. |
11 | 17 |
Distribution: Photon |
... | ... |
@@ -20,7 +26,7 @@ CoreDNS is a DNS server that chains plugins |
20 | 20 |
%setup -qn coredns-%{version} |
21 | 21 |
|
22 | 22 |
%build |
23 |
-export ARCH=amd64 |
|
23 |
+export ARCH=%{gohostarch} |
|
24 | 24 |
export VERSION=%{version} |
25 | 25 |
export PKG=github.com/%{name}/%{name} |
26 | 26 |
export GOARCH=${ARCH} |
... | ... |
@@ -34,6 +40,9 @@ export PATH=$PATH:$GOBIN |
34 | 34 |
mkdir -p ${GOPATH}/src/${PKG} |
35 | 35 |
cp -rf . ${GOPATH}/src/${PKG} |
36 | 36 |
pushd ${GOPATH}/src/${PKG} |
37 |
+# Just download (do not compile), since it's not compilable with go-1.9. |
|
38 |
+# TODO: use prefetched tarball instead. |
|
39 |
+sed -i 's#go get -u github.com/miekg/dns#go get -u -d github.com/miekg/dns#' Makefile |
|
37 | 40 |
make |
38 | 41 |
|
39 | 42 |
%install |
... | ... |
@@ -48,5 +57,8 @@ rm -rf %{buildroot}/* |
48 | 48 |
%{_bindir}/coredns |
49 | 49 |
|
50 | 50 |
%changelog |
51 |
+* Sun Sep 23 2018 Alexey Makhalov <amakhalov@vmware.com> 1.2.0-2 |
|
52 |
+- Fix compilation issue. |
|
53 |
+- aarch64 support. |
|
51 | 54 |
* Fri Aug 03 2018 Dheeraj Shetty <dheerajs@vmware.com> 1.2.0-1 |
52 | 55 |
- Initial version of coredns 1.2.0. |