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: 57536681f119049c19d71f2d6711da3b
10 Patch0: %{name}-libdir.patch
11 URL: http://rocksdb.org/
12 BuildRequires: bzip2-devel
13 BuildRequires: gflags-devel
14 BuildRequires: libstdc++-devel >= 6:4.7
15 BuildRequires: libtcmalloc-devel
16 BuildRequires: lz4-devel
17 BuildRequires: snappy-devel
18 BuildRequires: zlib-devel
19 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
22 RocksDB is a Persistent Key-Value Store for Flash and RAM Storage.
24 %description -l pl.UTF-8
25 RocksDB to trwała baza danych klucz-wartość dla pamięci Flash i RAM.
28 Summary: Header files for RocksDB library
29 Summary(pl.UTF-8): Pliki nagłówkowe biblioteki RocksDB
30 Group: Development/Libraries
31 Requires: %{name} = %{version}-%{release}
32 Requires: libstdc++-devel >= 6:4.7
35 Header files for RocksDB library.
37 %description devel -l pl.UTF-8
38 Pliki nagłówkowe biblioteki RocksDB.
41 Summary: Static RocksDB library
42 Summary(pl.UTF-8): Statyczna biblioteka RocksDB
43 Group: Development/Libraries
44 Requires: %{name}-devel = %{version}-%{release}
47 Static RocksDB library.
49 %description static -l pl.UTF-8
50 Statyczna biblioteka RocksDB.
53 %setup -q -n %{name}-%{name}-%{version}
57 %{__make} all shared_lib \
60 OPT="%{rpmcflags} %{!?debug:-DNDEBUG}" \
61 WARNING_FLAGS="%{rpmcppflags} -Wall"
64 rm -rf $RPM_BUILD_ROOT
67 INSTALL_PATH=$RPM_BUILD_ROOT%{_prefix} \
68 INSTALL_LIBDIR=$RPM_BUILD_ROOT%{_libdir} \
71 rm -rf $RPM_BUILD_ROOT
73 %post -p /sbin/ldconfig
74 %postun -p /sbin/ldconfig
77 %defattr(644,root,root,755)
78 %doc HISTORY.md LICENSE PATENTS README.md ROCKSDB_LITE.md
79 %attr(755,root,root) %{_libdir}/librocksdb.so
82 %defattr(644,root,root,755)
84 %{_includedir}/rocksdb
87 %defattr(644,root,root,755)
88 %{_libdir}/librocksdb.a