3 %bcond_with tests # build with tests
4 %bcond_without static_libs # don't build static libraries
6 Summary: RocksDB: A Persistent Key-Value Store for Flash and RAM Storage
7 Summary(pl.UTF-8): RocksDB - trwała baza danych klucz-wartość dla pamięci Flash i RAM
13 Source0: https://github.com/facebook/rocksdb/archive/%{name}-%{version}.tar.gz
14 # Source0-md5: 2e0a6482ce1756bfdff73a0e09006a92
15 Patch0: %{name}-libdir.patch
16 Patch1: make-programs.patch
17 URL: http://rocksdb.org/
18 BuildRequires: bzip2-devel
19 BuildRequires: gflags-devel
21 BuildRequires: libatomic-devel
23 BuildRequires: libstdc++-devel >= 6:4.7
24 BuildRequires: libtcmalloc-devel
25 BuildRequires: lz4-devel
26 BuildRequires: snappy-devel
27 BuildRequires: zlib-devel
28 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
30 # std::__once_call, std::__once_callable non-function symbols
31 %define skip_post_check_so librocksdb.so.*
34 RocksDB is a Persistent Key-Value Store for Flash and RAM Storage.
36 %description -l pl.UTF-8
37 RocksDB to trwała baza danych klucz-wartość dla pamięci Flash i RAM.
40 Summary: Header files for RocksDB library
41 Summary(pl.UTF-8): Pliki nagłówkowe biblioteki RocksDB
42 Group: Development/Libraries
43 Requires: %{name} = %{version}-%{release}
44 Requires: libstdc++-devel >= 6:4.7
47 Header files for RocksDB library.
49 %description devel -l pl.UTF-8
50 Pliki nagłówkowe biblioteki RocksDB.
53 Summary: Static RocksDB library
54 Summary(pl.UTF-8): Statyczna biblioteka RocksDB
55 Group: Development/Libraries
56 Requires: %{name}-devel = %{version}-%{release}
59 Static RocksDB library.
61 %description static -l pl.UTF-8
62 Statyczna biblioteka RocksDB.
65 %setup -q -n %{name}-%{name}-%{version}
71 PLATFORM_LDFLAGS="-latomic" \
73 %{__make} shared_lib %{?with_static_libs:static_lib} programs %{?with_tests:check} \
74 AM_DEFAULT_VERBOSITY=1 \
77 OPT="%{rpmcflags} %{!?debug:-DNDEBUG}" \
78 WARNING_FLAGS="%{rpmcppflags} -Wall"
81 rm -rf $RPM_BUILD_ROOT
83 INSTALL_PATH=$RPM_BUILD_ROOT%{_prefix} \
84 INSTALL_LIBDIR=$RPM_BUILD_ROOT%{_libdir}
87 %{__rm} $RPM_BUILD_ROOT%{_libdir}/librocksdb.so.3
90 rm -rf $RPM_BUILD_ROOT
92 %post -p /sbin/ldconfig
93 %postun -p /sbin/ldconfig
96 %defattr(644,root,root,755)
97 %doc HISTORY.md LICENSE PATENTS README.md ROCKSDB_LITE.md
98 %attr(755,root,root) %{_libdir}/librocksdb.so.*.*.*
99 %attr(755,root,root) %ghost %{_libdir}/librocksdb.so.3.13
102 %defattr(644,root,root,755)
104 %attr(755,root,root) %{_libdir}/librocksdb.so
105 %{_includedir}/rocksdb
107 %if %{with static_libs}
109 %defattr(644,root,root,755)
110 %{_libdir}/librocksdb.a