Sisyphus repositório
Última atualização: 25 outubro 2020 | SRPMs: 17696 | Visitas: 19474991
en ru br
ALT Linux repositórios
S:20.3.19.4-alt1

Group :: Banco de dados
RPM: clickhouse

 Main   Changelog   Spec   Patches   Sources   Download   Gear   Bugs e FR  Repocop 

Name: clickhouse
Version: 20.3.19.4
Release: alt1
Summary: Open-source distributed column-oriented DBMS
License: Apache-2.0
Group: Databases
Url: https://clickhouse.yandex/

# https://github.com/ClickHouse/ClickHouse.git

Source: %name-%version.tar

Source1:  %name-%version-contrib-avro.tar
Source2:  %name-%version-contrib-aws.tar
Source3:  %name-%version-contrib-aws-c-common.tar
Source4:  %name-%version-contrib-aws-c-event-stream.tar
Source5:  %name-%version-contrib-aws-checksums.tar
Source6:  %name-%version-contrib-base64.tar
Source7:  %name-%version-contrib-grpc.tar
Source8:  %name-%version-contrib-grpc-third_party-abseil-cpp.tar
Source9:  %name-%version-contrib-grpc-third_party-benchmark.tar
Source10: %name-%version-contrib-grpc-third_party-bloaty.tar
Source11: %name-%version-contrib-grpc-third_party-bloaty-third_party-googletest.tar
Source12: %name-%version-contrib-grpc-third_party-bloaty-third_party-libFuzzer.tar
Source13: %name-%version-contrib-grpc-third_party-bloaty-third_party-re2.tar
Source14: %name-%version-contrib-grpc-third_party-boringssl.tar
Source15: %name-%version-contrib-grpc-third_party-boringssl-with-bazel.tar
Source16: %name-%version-contrib-grpc-third_party-cares-cares.tar
Source17: %name-%version-contrib-grpc-third_party-envoy-api.tar
Source18: %name-%version-contrib-grpc-third_party-gflags.tar
Source19: %name-%version-contrib-grpc-third_party-gflags-doc.tar
Source20: %name-%version-contrib-grpc-third_party-googleapis.tar
Source21: %name-%version-contrib-grpc-third_party-googletest.tar
Source22: %name-%version-contrib-grpc-third_party-protobuf.tar
Source23: %name-%version-contrib-grpc-third_party-protobuf-third_party-benchmark.tar
Source24: %name-%version-contrib-grpc-third_party-protobuf-third_party-googletest.tar
Source25: %name-%version-contrib-grpc-third_party-protoc-gen-validate.tar
Source26: %name-%version-contrib-grpc-third_party-udpa.tar
Source27: %name-%version-contrib-grpc-third_party-zlib.tar
Source28: %name-%version-contrib-replxx.tar
Source29: %name-%version-contrib-ryu.tar
Source30: %name-%version-contrib-simdjson.tar
Source31: %name-%version-contrib-zlib-ng.tar

Patch0: %name-%version-%release.patch
Patch1: %name-base64-ppc64le.patch

BuildRequires: cmake, libicu-devel, libreadline-devel, python3, gperf, tzdata,  cctz-devel
BuildRequires: rpm-macros-cmake, liblz4-devel, /proc, libzstd-devel, libmariadb-devel
BuildRequires: farmhash-devel, metrohash-devel, libdouble-conversion-devel, librdkafka-devel, libssl-devel, libre2-devel
BuildRequires: libgsasl-devel, libcap-ng-devel, libxxhash-devel, boost-devel, libunixODBC-devel, libgperftools-devel
BuildRequires: libpoco-devel, libbrotli-devel, capnproto-devel, libxml2-devel, libcppkafka-devel
BuildRequires: libtinfo-devel, boost-filesystem-devel, boost-program_options-devel, boost-geometry-devel
BuildRequires: llvm-devel, gcc-c++, perl-JSON-XS, libb64-devel libasan-devel-static, boost-lockfree-devel
BuildRequires: libprotobuf-devel
BuildRequires: libstdc++-devel-static
BuildRequires: libsparsehash-devel
BuildRequires: rapidjson-devel
BuildRequires: boost-devel-static
%ifarch x86_64
BuildRequires: libhyperscan-devel
%endif
BuildRequires: libcurl-devel
BuildRequires: libflatbuffers-devel
BuildRequires: libgtest-devel
BuildRequires: libfmt-devel
%ifnarch aarch64
BuildRequires: libunwind-devel
%endif
%ifnarch ppc64le
BuildRequires: libcpuid-devel
%endif

ExclusiveArch: aarch64 x86_64 ppc64le

%description
ClickHouse is an open-source column-oriented database management system that
allows generating analytical data reports in real time.

%package common-static
Group: Databases
Summary: Common files for %name
Provides: libclickhouse = %EVR
Conflicts: libclickhouse < %EVR
Obsoletes: libclickhouse < %EVR

%description common-static
This package provides common files for both clickhouse server and client.

%package server
Summary: Server binary for ClickHouse
Group: Databases
Requires: %name-common-static = %EVR

%description server
This package contains server binaries for ClickHouse DBMS.

%package client
Summary: Client binary for ClickHouse
Group: Databases
Requires: %name-common-static = %EVR

%description client
This package contains clickhouse-client , clickhouse-local and clickhouse-benchmark

%package test
Summary: ClickHouse tests
Group: Databases
Requires: %name-client = %EVR

%description test
ClickHouse tests

%prep
%setup -a1 -a2 -a3 -a4 -a5 -a6 -a7 -a8 -a9 -a10 -a11 -a12 -a13 -a14 -a15 -a16 -a17 -a18 -a19 -a20 -a21 -a22 -a23 -a24 -a25 -a26 -a27 -a28 -a29 -a30 -a31
%patch0 -p1

pushd contrib/base64
%patch1 -p1
popd

rm -rf contrib/libcpuid

%build
if [ %__nprocs -gt 8 ] ; then
export NPROCS=8
else
export NPROCS=%__nprocs
fi

%cmake \
-DCMAKE_BUILD_TYPE:STRING=Release \
-DENABLE_UTILS=0 \
-DCMAKE_VERBOSE_MAKEFILE=0 \
-DUNBUNDLED=1 \
-DUSE_STATIC_LIBRARIES=1 \
%ifnarch aarch64
-DUSE_UNWIND:BOOL=yes \
%else
-DUSE_UNWIND:BOOL=no \
%endif
-DCLICKHOUSE_SPLIT_BINARY=0 \
-DENABLE_JEMALLOC=0 \
-DUSE_INTERNAL_REPLXX:BOOL=ON \
-DPARALLEL_COMPILE_JOBS=$NPROCS \
-DPARALLEL_LINK_JOBS=$NPROCS \
%nil

%cmake_build VERBOSE=1

%install
%cmakeinstall_std
install -Dm0644 debian/clickhouse-server.cron.d %buildroot%_sysconfdir/cron.d/clickhouse-server
install -Dm0644 debian/clickhouse.limits %buildroot%_sysconfdir/security/limits.d/clickhouse.conf
install -Dm0644 debian/clickhouse-server.service %buildroot%_unitdir/clickhouse-server.service
mkdir -p %buildroot%_localstatedir/clickhouse
mkdir -p %buildroot%_logdir/clickhouse-server

%pre server
%_sbindir/groupadd -r -f _clickhouse 2> /dev/null ||:
%_sbindir/useradd -r -g _clickhouse -d %_localstatedir/lib/%name -s /dev/null -c "ClickHouse User" _clickhouse 2> /dev/null ||:

%post server
%post_service clickhouse-server

%preun server
%preun_service clickhouse-server



%files common-static
%_bindir/clickhouse
%_bindir/clickhouse-odbc-bridge
%config(noreplace) %_sysconfdir/security/limits.d/clickhouse.conf

%files server
%config(noreplace) %_sysconfdir/cron.d/clickhouse-server
%config(noreplace) %_sysconfdir/clickhouse-server/config.xml
%config(noreplace) %_sysconfdir/clickhouse-server/users.xml
%_bindir/clickhouse-server
%_bindir/clickhouse-report
%_bindir/clickhouse-copier
%_bindir/config-processor
%_unitdir/clickhouse-server.service
%dir %attr(0750,_clickhouse,_clickhouse) %_logdir/clickhouse-server
%dir %attr(0750,_clickhouse,_clickhouse) %_localstatedir/clickhouse

%files client
%config(noreplace) %_sysconfdir/clickhouse-client/config.xml
%_bindir/clickhouse-client
%_bindir/clickhouse-local
%_bindir/clickhouse-compressor
%_bindir/clickhouse-benchmark
%_bindir/clickhouse-obfuscator
%_bindir/clickhouse-format
%_bindir/clickhouse-extract-from-config

%files test
%_bindir/clickhouse-test
%_bindir/clickhouse-test-server
%_bindir/clickhouse-performance-test
%_datadir/clickhouse-test
%config(noreplace) %_sysconfdir/clickhouse-client/client-test.xml
%config(noreplace) %_sysconfdir/clickhouse-server/server-test.xml

%changelog

Todas as alterações você pod ver aqui

 
projeto & código: Vladimir Lettiev aka crux © 2004-2005, Andrew Avramenko aka liks © 2007-2008
mantenedor atual: Michael Shigorin
mantenedor da tradução: Fernando Martini aka fmartini © 2009