|
|
|
@ -22,9 +22,9 @@
|
|
|
|
|
## |
|
|
|
|
|
|
|
|
|
# package version |
|
|
|
|
%define V_opkg 20.1.0a20191118 |
|
|
|
|
%define V_dist 20.1.0-alpha.20191118 |
|
|
|
|
%define V_track 20.1.0.alpha.20191118 |
|
|
|
|
%define V_opkg 20.1.0a20191216 |
|
|
|
|
%define V_dist 20.1.0-alpha20191216 |
|
|
|
|
%define V_track 20.1.0.alpha20191216 |
|
|
|
|
|
|
|
|
|
# package information |
|
|
|
|
Name: cockroach-ng |
|
|
|
@ -37,7 +37,7 @@ Class: EVAL
|
|
|
|
|
Group: Database |
|
|
|
|
License: Apache |
|
|
|
|
Version: %{V_opkg} |
|
|
|
|
Release: 20191120 |
|
|
|
|
Release: 20200125 |
|
|
|
|
|
|
|
|
|
# list of sources |
|
|
|
|
Source0: https://binaries.cockroachdb.com/cockroach-v%{V_dist}.src.tgz |
|
|
|
@ -52,7 +52,7 @@ Source8: cockroach.conf
|
|
|
|
|
Patch0: cockroach-ng.patch |
|
|
|
|
|
|
|
|
|
# build information |
|
|
|
|
BuildPreReq: OpenPKG, openpkg >= 20160101, go, pkgconfig, cmake, gcc8 |
|
|
|
|
BuildPreReq: OpenPKG, openpkg >= 20160101, go, pkgconfig, cmake, gcc |
|
|
|
|
PreReq: OpenPKG, openpkg >= 20160101 |
|
|
|
|
BuildPreReq: lzo, zlib |
|
|
|
|
PreReq: lzo, zlib |
|
|
|
@ -99,8 +99,8 @@ Provides: cockroachdb = %{version}
|
|
|
|
|
export CGO_CXXFLAGS="$cppflags %{l_cxxflags} %{l_cppflags} -Wno-deprecated-declarations" |
|
|
|
|
export CGO_LDFLAGS="$ldflags %{l_ldflags} -lstdc++ -lm" |
|
|
|
|
export GOFLAGS="-x" |
|
|
|
|
export CC="gcc8" |
|
|
|
|
export CXX="g++8" |
|
|
|
|
export CC="gcc" |
|
|
|
|
export CXX="g++" |
|
|
|
|
export CFLAGS="%{l_cflags -O}" |
|
|
|
|
export CXXFLAGS="%{l_cxxflags -O}" |
|
|
|
|
export CPPFLAGS="$cppflags %{l_cppflags}" |
|
|
|
|