Sisyphus repositório
Última atualização: 25 setembro 2020 | SRPMs: 17702 | Visitas: 19286242
en ru br
ALT Linux repositórios
S:6.1.2-alt2

Group :: Banco de dados
RPM: rocksdb

 Main   Changelog   Spec   Patches   Sources   Download   Gear   Bugs e FR  Repocop 


%def_without jemalloc
%def_without java
%def_with snappy
%def_with lz4
%def_with zlib
%def_with bzip2
%def_with zstd
%def_with tbb
%def_with numa
%def_without rocksdb_lite

Name: rocksdb
Version: 6.1.2
Release: alt2
Summary: A Persistent Key-Value Store for Flash and RAM Storage
Group: Databases
License: BSD
Url: https://github.com/facebook/rocksdb.git
Source: %name-%version.tar
Patch: %name-%version.patch

BuildRequires: gcc-c++
BuildRequires: libgtest-devel  cmake
%{?_with_jemalloc:BuildRequires: libjemalloc-devel}
%{?_with_java:BuildRequires: java-devel}
%{?_with_snappy:BuildRequires: libsnappy-devel}
%{?_with_lz4:BuildRequires: liblz4-devel}
%{?_with_zlib:BuildRequires: zlib-devel}
%{?_with_bzip2:BuildRequires: bzlib-devel}
%{?_with_zstd:BuildRequires: libzstd-devel}
%{?_with_tbb:BuildRequires: tbb-devel}
%{?_with_numa:BuildRequires: libnuma-devel}

%description
Rocksdb is a library that forms the core building block for a fast key value
server, especially suited for storing data on flash drives. It has a
Log-Structured-Merge-Database (LSM) design with flexible trade offs between
Write-Amplification-Factor (WAF), Read-Amplification-Factor (RAF) and
Space-Amplification-Factor (SAF). It has multithreaded compaction, making it
specially suitable for storing multiple terabytes of data in a single database.

%package -n lib%name
Summary: A Persistent Key-Value Store for Flash and RAM Storage
Group: System/Libraries

%description -n lib%name
Rocksdb is a library that forms the core building block for a fast key value
server, especially suited for storing data on flash drives. It has a
Log-Structured-Merge-Database (LSM) design with flexible trade offs between
Write-Amplification-Factor (WAF), Read-Amplification-Factor (RAF) and
Space-Amplification-Factor (SAF). It has multithreaded compaction, making it
specially suitable for storing multiple terabytes of data in a single database.

%package -n lib%name-devel
Summary: Development files for rocksdb
Group: Development/C
Requires: lib%name = %EVR

%description -n lib%name-devel
Development files for rocksdb

%package -n lib%name-devel-static
Summary: Static library for rocksdb
Group: Development/C
Requires: lib%name-devel = %EVR

%description -n lib%name-devel-static
Static library for rocksdb

%prep
%setup
%patch -p1

#rm -rf third-party/gtest-1.7.0

#rm java/benchmark/src/main/java/org/rocksdb/benchmark/DbBenchmark.java
rm build_tools/gnu_parallel

%build
%cmake \
   %{?_with_jemalloc:-DWITH_JEMALLOC:BOOL=ON} \
   %{?_with_java:-DWITH_JNI:BOOL=ON} \
   %{?_with_snappy:-DWITH_SNAPPY:BOOL=ON} \
   %{?_with_zlib:-DWITH_ZLIB:BOOL=ON} \
   %{?_with_lz4:-DWITH_LZ4:BOOL=ON} \
   %{?_with_bzip2:-DWITH_BZ2:BOOL=ON} \
   %{?_with_zstd:-DWITH_ZSTD:BOOL=ON} \
   %{?_with_rocksdb_lite:-DROCKSDB_LITE:BOOL=ON} \
   -DPORTABLE:BOOL=ON

#export EXTRA_CFLAGS="-fPIC"

#export EXTRA_CXXFLAGS="-fPIC"
%cmake_build

#export PORTABLE="1"

#%%make_build static_lib
#%%make_build shared_lib

%install
%cmakeinstall_std
#%%makeinstall_std PREFIX=%_prefix LIBDIR=%_libdir

%files -n lib%name
%_libdir/*.so.*

%files -n lib%name-devel
%_libdir/*.so
%_includedir/*

%files -n lib%name-devel-static
%_libdir/*.a

%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