1 Summary: RocksDB: A Persistent Key-Value Store for Flash and RAM Storage
2 Summary(pl.UTF-8): RocksDB - trwała baza danych klucz-wartość dla pamięci Flash i RAM
8 Source0: https://github.com/facebook/rocksdb/archive/%{name}-%{version}.tar.gz
9 # Source0-md5: b759d264fda5f66001b092d6be311c58
10 Patch0: %{name}-libdir.patch
11 URL: http://rocksdb.org/
12 BuildRequires: bzip2-devel
13 BuildRequires: gflags-devel
15 BuildRequires: libatomic-devel
17 BuildRequires: libstdc++-devel >= 6:4.7
18 BuildRequires: libtcmalloc-devel
19 BuildRequires: lz4-devel
20 BuildRequires: snappy-devel
21 BuildRequires: zlib-devel
22 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
25 RocksDB is a Persistent Key-Value Store for Flash and RAM Storage.
27 %description -l pl.UTF-8
28 RocksDB to trwała baza danych klucz-wartość dla pamięci Flash i RAM.
31 Summary: Header files for RocksDB library
32 Summary(pl.UTF-8): Pliki nagłówkowe biblioteki RocksDB
33 Group: Development/Libraries
34 Requires: %{name} = %{version}-%{release}
35 Requires: libstdc++-devel >= 6:4.7
38 Header files for RocksDB library.
40 %description devel -l pl.UTF-8
41 Pliki nagłówkowe biblioteki RocksDB.
44 Summary: Static RocksDB library
45 Summary(pl.UTF-8): Statyczna biblioteka RocksDB
46 Group: Development/Libraries
47 Requires: %{name}-devel = %{version}-%{release}
50 Static RocksDB library.
52 %description static -l pl.UTF-8
53 Statyczna biblioteka RocksDB.
56 %setup -q -n %{name}-%{name}-%{version}
61 PLATFORM_LDFLAGS="-latomic" \
63 %{__make} all shared_lib \
66 OPT="%{rpmcflags} %{!?debug:-DNDEBUG}" \
67 WARNING_FLAGS="%{rpmcppflags} -Wall"
70 rm -rf $RPM_BUILD_ROOT
73 INSTALL_PATH=$RPM_BUILD_ROOT%{_prefix} \
74 INSTALL_LIBDIR=$RPM_BUILD_ROOT%{_libdir} \
77 rm -rf $RPM_BUILD_ROOT
79 %post -p /sbin/ldconfig
80 %postun -p /sbin/ldconfig
83 %defattr(644,root,root,755)
84 %doc HISTORY.md LICENSE PATENTS README.md ROCKSDB_LITE.md
85 %attr(755,root,root) %{_libdir}/librocksdb.so
88 %defattr(644,root,root,755)
90 %{_includedir}/rocksdb
93 %defattr(644,root,root,755)
94 %{_libdir}/librocksdb.a