]>
Commit | Line | Data |
---|---|---|
c4a98ad2 JB |
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 | |
3 | Name: rocksdb | |
0d1ecc76 | 4 | Version: 3.6.1 |
c4a98ad2 JB |
5 | Release: 1 |
6 | License: BSD | |
7 | Group: Libraries | |
8 | Source0: https://github.com/facebook/rocksdb/archive/%{name}-%{version}.tar.gz | |
0d1ecc76 | 9 | # Source0-md5: 57536681f119049c19d71f2d6711da3b |
c4a98ad2 JB |
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) | |
20 | ||
21 | %description | |
22 | RocksDB is a Persistent Key-Value Store for Flash and RAM Storage. | |
23 | ||
24 | %description -l pl.UTF-8 | |
25 | RocksDB to trwała baza danych klucz-wartość dla pamięci Flash i RAM. | |
26 | ||
27 | %package devel | |
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 | |
33 | ||
34 | %description devel | |
35 | Header files for RocksDB library. | |
36 | ||
37 | %description devel -l pl.UTF-8 | |
38 | Pliki nagłówkowe biblioteki RocksDB. | |
39 | ||
40 | %package static | |
41 | Summary: Static RocksDB library | |
42 | Summary(pl.UTF-8): Statyczna biblioteka RocksDB | |
43 | Group: Development/Libraries | |
44 | Requires: %{name}-devel = %{version}-%{release} | |
45 | ||
46 | %description static | |
47 | Static RocksDB library. | |
48 | ||
49 | %description static -l pl.UTF-8 | |
50 | Statyczna biblioteka RocksDB. | |
51 | ||
52 | %prep | |
53 | %setup -q -n %{name}-%{name}-%{version} | |
54 | %patch0 -p1 | |
55 | ||
56 | %build | |
57 | %{__make} all shared_lib \ | |
58 | CC="%{__cc}" \ | |
59 | CXX="%{__cxx}" \ | |
60 | OPT="%{rpmcflags} %{!?debug:-DNDEBUG}" \ | |
61 | WARNING_FLAGS="%{rpmcppflags} -Wall" | |
62 | ||
63 | %install | |
64 | rm -rf $RPM_BUILD_ROOT | |
65 | ||
66 | %{__make} install \ | |
67 | INSTALL_PATH=$RPM_BUILD_ROOT%{_prefix} \ | |
68 | INSTALL_LIBDIR=$RPM_BUILD_ROOT%{_libdir} \ | |
69 | ||
70 | %clean | |
71 | rm -rf $RPM_BUILD_ROOT | |
72 | ||
73 | %post -p /sbin/ldconfig | |
74 | %postun -p /sbin/ldconfig | |
75 | ||
76 | %files | |
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 | |
80 | ||
81 | %files devel | |
82 | %defattr(644,root,root,755) | |
83 | %doc doc/* | |
84 | %{_includedir}/rocksdb | |
85 | ||
86 | %files static | |
87 | %defattr(644,root,root,755) | |
88 | %{_libdir}/librocksdb.a |