Sisyphus repositório
Última atualização: 21 agosto 2019 | SRPMs: 17343 | Visitas: 14684850
en ru br
ALT Linux repositórios
S:5.17.2-alt1

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 zstd

Name: rocksdb
Version: 5.7.5
Release: alt1%ubt
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(pre): rpm-build-ubt
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_zstd:BuildRequires: libzstd-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 \
#%if_with jemalloc
#    -DWITH_JEMALLOC:BOOL=ON \
#%endif
#%if_with java
#    -DWITH_JNI:BOOL=ON \
#%endif
#%if_with snappy
#    -DWITH_SNAPPY:BOOL=ON \
#%endif
#    -DPORTABLE:BOOL=OFF

#%%cmake_build

#export EXTRA_CFLAGS="-fPIC"
#export EXTRA_CXXFLAGS="-fPIC"

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