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: 6bdc1defb0a0d8e9e3cb11bfc6e795ef
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 \
64 AM_DEFAULT_VERBOSITY=1 \
67 OPT="%{rpmcflags} %{!?debug:-DNDEBUG}" \
68 WARNING_FLAGS="%{rpmcppflags} -Wall"
71 rm -rf $RPM_BUILD_ROOT
74 INSTALL_PATH=$RPM_BUILD_ROOT%{_prefix} \
75 INSTALL_LIBDIR=$RPM_BUILD_ROOT%{_libdir} \
78 rm -rf $RPM_BUILD_ROOT
80 %post -p /sbin/ldconfig
81 %postun -p /sbin/ldconfig
84 %defattr(644,root,root,755)
85 %doc HISTORY.md LICENSE PATENTS README.md ROCKSDB_LITE.md
86 %attr(755,root,root) %{_libdir}/librocksdb.so
89 %defattr(644,root,root,755)
91 %{_includedir}/rocksdb
94 %defattr(644,root,root,755)
95 %{_libdir}/librocksdb.a