|
|
|
|
@ -21,10 +21,6 @@
|
|
|
|
|
## SUCH DAMAGE. |
|
|
|
|
## |
|
|
|
|
|
|
|
|
|
# package version |
|
|
|
|
%define V_cockroach_base 1.1.5 |
|
|
|
|
%define V_cockroach_snap 20180215 |
|
|
|
|
|
|
|
|
|
# package information |
|
|
|
|
Name: cockroach |
|
|
|
|
Summary: Scalable, Distributed, Transactional SQL Database |
|
|
|
|
@ -35,11 +31,11 @@ Distribution: OpenPKG Community
|
|
|
|
|
Class: EVAL |
|
|
|
|
Group: Database |
|
|
|
|
License: Apache |
|
|
|
|
Version: %{V_cockroach_base}.%{V_cockroach_snap} |
|
|
|
|
Version: 1.1.5 |
|
|
|
|
Release: 20180215 |
|
|
|
|
|
|
|
|
|
# list of sources |
|
|
|
|
Source0: http://download.openpkg.org/components/versioned/cockroach/cockroach-%{V_cockroach_snap}.tar.xz |
|
|
|
|
Source0: https://binaries.cockroachdb.com/cockroach-v%{version}.src.tgz |
|
|
|
|
Source1: rc.cockroach |
|
|
|
|
Source2: cockroach.sh |
|
|
|
|
Source3: cockroach-psql.sh |
|
|
|
|
@ -64,26 +60,22 @@ PreReq: lzo, zlib
|
|
|
|
|
uses the RAFT consensus algorithm for consistency across its |
|
|
|
|
nodes. CockroachDB aims to tolerate disk, machine, rack, and even |
|
|
|
|
datacenter failures with minimal latency disruption and no manual |
|
|
|
|
intervention. CockroachDB nodes are symmetric; a design goal is |
|
|
|
|
homogenous deployment with minimal configuration. CockroachDB |
|
|
|
|
speaks the PostgreSQL wire protocol and hence can be used with |
|
|
|
|
any PostgreSQL client. CockroachDB supports many PostgreSQL SQL |
|
|
|
|
functionalities, too. |
|
|
|
|
intervention. CockroachDB nodes are symmetric, i.e., they are all |
|
|
|
|
equal in their role and authority, as a design goal of CockroachDB |
|
|
|
|
is homogenous deployment with minimal configuration. CockroachDB |
|
|
|
|
speaks the PostgreSQL wire protocol and hence can be used with any |
|
|
|
|
PostgreSQL client. CockroachDB, at the SQL level, also supports many |
|
|
|
|
PostgreSQL SQL functionalities. |
|
|
|
|
|
|
|
|
|
%track |
|
|
|
|
prog cockroach:release = { |
|
|
|
|
version = %{V_cockroach_base} |
|
|
|
|
url = https://github.com/cockroachdb/cockroach/releases |
|
|
|
|
regex = v(\d+\.\d+\.\d+)\.tar\.gz |
|
|
|
|
} |
|
|
|
|
prog cockroach:snapshot = { |
|
|
|
|
version = %{V_cockroach_snap} |
|
|
|
|
url = http://download.openpkg.org/components/versioned/cockroach/ |
|
|
|
|
regex = cockroach-(__VER__)\.tar\.xz |
|
|
|
|
prog cockroach = { |
|
|
|
|
version = %{version} |
|
|
|
|
url = https://www.cockroachlabs.com/docs/releases/ |
|
|
|
|
regex = cockroach-v(\d+\.\d+(?:\.\d+)?)\.src\.tgz |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
%prep |
|
|
|
|
%setup -q -n cockroach |
|
|
|
|
%setup -q -n cockroach-v%{version} |
|
|
|
|
%patch -p0 |
|
|
|
|
|
|
|
|
|
%build |
|
|
|
|
|