Name: rocksdb Version: 4.11 Release: 1%{?dist} Summary: A Persistent Key-Value Store for Flash and RAM Storage License: BSD URL: https://github.com/facebook/rocksdb.git BuildRequires: snappy-devel BuildRequires: jemalloc-devel BuildRequires: bzip2-devel BuildRequires: gflags-devel BuildRequires: gtest-devel Source0: https://codeload.github.com/facebook/rocksdb/zip/4.11.fb#/%{name}-%{version}.fb.zip Patch0: rocksdb-3.12-install_path.patch %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 multi-threaded compactions, making it specially suitable for storing multiple terabytes of data in a single database. %package devel Summary: Development files for rocksdb Requires: %{name}%{?_isa} = %{version}-%{release} %description devel Development files for rocksdb %prep %setup -q -n %{name}-%{version}.fb %patch0 -p1 -b .install_path rm -rf third-party/gtest-1.7.0 %build export EXTRA_CXXFLAGS=" -std=c++11" make %{?_smp_mflags} shared_lib %install make install-shared \ INSTALL_PREFIX=%{buildroot}\ LIB_INSTALL_DIR=%{_libdir}\ INCLUDE_INSTALL_DIR=%{_includedir} %post -p /sbin/ldconfig %postun -p /sbin/ldconfig %files %{_libdir}/librocksdb.so.4 %{_libdir}/librocksdb.so.4.11 %{_libdir}/librocksdb.so.4.11.0 %license LICENSE %files devel %{_libdir}/librocksdb.so %{_includedir}/* %changelog * Tue Aug 23 2016 Matej Muzila 4.11-1 - Packaged rocksdb