Group :: System/Libraries
RPM: clickhouse-cpp
Main Changelog Spec Patches Sources Download Gear Bugs and FR Repocop
%define _unpackaged_files_terminate_build 1
Name: clickhouse-cpp
Version: 2.4.0
Release: alt2
Summary: ClickHouse C++ client library
Group: System/Libraries
License: Apache-2.0
Url: https://github.com/artpaul/clickhouse-cpp
# https://github.com/artpaul/clickhouse-cpp.git
# Source-url: https://github.com/ClickHouse/clickhouse-cpp/archive/v%{version}.tar.gz
Source: %name-%version.tar
Source1: %name.watch
Patch1: %name-alt-build.patch
BuildRequires: gcc-c++ cmake
BuildRequires: liblz4-devel
BuildRequires: libcityhash-devel
%description
C++ client for Yandex ClickHouse.
Supported data types:
- Array(T)
- Date
- DateTime
- Enum8, Enum16
- FixedString(N)
- Float32, Float64
- Nullable(T)
- String
- Tuple
- UInt8, UInt16, UInt32, UInt64, Int8, Int16, Int32, Int64
%package -n lib%name
Summary: ClickHouse C++ client library
Group: System/Libraries
%description -n lib%name
C++ client for Yandex ClickHouse.
Supported data types:
- Array(T)
- Date
- DateTime
- Enum8, Enum16
- FixedString(N)
- Float32, Float64
- Nullable(T)
- String
- Tuple
- UInt8, UInt16, UInt32, UInt64, Int8, Int16, Int32, Int64
%package -n lib%name-devel
Summary: Development files for ClickHouse C++ client library
Group: Development/C++
Requires: lib%name = %EVR
Conflicts: libabseil-cpp-devel
%description -n lib%name-devel
C++ client for Yandex ClickHouse.
Supported data types:
- Array(T)
- Date
- DateTime
- Enum8, Enum16
- FixedString(N)
- Float32, Float64
- Nullable(T)
- String
- Tuple
- UInt8, UInt16, UInt32, UInt64, Int8, Int16, Int32, Int64
This package contains development files.
%prep
%setup
%patch1 -p1
# ensure 3rd-party bundled libraries are not used
rm -rf contrib/{cityhash,gtest,lz4}
%build
%cmake -DWITH_SYSTEM_CITYHASH=ON -DWITH_SYSTEM_LZ4=ON -DWITH_SYSTEM_CITYHASH=ON -DBUILD_SHARED_LIBS=ON
%cmake_build
%install
%cmakeinstall_std
rm -rf %buildroot%_includedir/clickhouse
%files -n lib%name
%doc LICENSE
%doc README.md
%_libdir/*.so.*
%files -n lib%name-devel
%_includedir/%name
%_libdir/*.so
%changelog
…
Full changelog you can see here
Name: clickhouse-cpp
Version: 2.4.0
Release: alt2
Summary: ClickHouse C++ client library
Group: System/Libraries
License: Apache-2.0
Url: https://github.com/artpaul/clickhouse-cpp
# https://github.com/artpaul/clickhouse-cpp.git
# Source-url: https://github.com/ClickHouse/clickhouse-cpp/archive/v%{version}.tar.gz
Source: %name-%version.tar
Source1: %name.watch
Patch1: %name-alt-build.patch
BuildRequires: gcc-c++ cmake
BuildRequires: liblz4-devel
BuildRequires: libcityhash-devel
%description
C++ client for Yandex ClickHouse.
Supported data types:
- Array(T)
- Date
- DateTime
- Enum8, Enum16
- FixedString(N)
- Float32, Float64
- Nullable(T)
- String
- Tuple
- UInt8, UInt16, UInt32, UInt64, Int8, Int16, Int32, Int64
%package -n lib%name
Summary: ClickHouse C++ client library
Group: System/Libraries
%description -n lib%name
C++ client for Yandex ClickHouse.
Supported data types:
- Array(T)
- Date
- DateTime
- Enum8, Enum16
- FixedString(N)
- Float32, Float64
- Nullable(T)
- String
- Tuple
- UInt8, UInt16, UInt32, UInt64, Int8, Int16, Int32, Int64
%package -n lib%name-devel
Summary: Development files for ClickHouse C++ client library
Group: Development/C++
Requires: lib%name = %EVR
Conflicts: libabseil-cpp-devel
%description -n lib%name-devel
C++ client for Yandex ClickHouse.
Supported data types:
- Array(T)
- Date
- DateTime
- Enum8, Enum16
- FixedString(N)
- Float32, Float64
- Nullable(T)
- String
- Tuple
- UInt8, UInt16, UInt32, UInt64, Int8, Int16, Int32, Int64
This package contains development files.
%prep
%setup
%patch1 -p1
# ensure 3rd-party bundled libraries are not used
rm -rf contrib/{cityhash,gtest,lz4}
%build
%cmake -DWITH_SYSTEM_CITYHASH=ON -DWITH_SYSTEM_LZ4=ON -DWITH_SYSTEM_CITYHASH=ON -DBUILD_SHARED_LIBS=ON
%cmake_build
%install
%cmakeinstall_std
rm -rf %buildroot%_includedir/clickhouse
%files -n lib%name
%doc LICENSE
%doc README.md
%_libdir/*.so.*
%files -n lib%name-devel
%_includedir/%name
%_libdir/*.so
%changelog
…
Full changelog you can see here