]> git.pld-linux.org Git - packages/rocksdb.git/blob - rocksdb.spec
up to 3.10.2
[packages/rocksdb.git] / rocksdb.spec
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
4 Version:        3.10.2
5 Release:        1
6 License:        BSD
7 Group:          Libraries
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
14 %ifarch i386 i486
15 BuildRequires:  libatomic-devel
16 %endif
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)
23
24 %description
25 RocksDB is a Persistent Key-Value Store for Flash and RAM Storage.
26
27 %description -l pl.UTF-8
28 RocksDB to trwała baza danych klucz-wartość dla pamięci Flash i RAM.
29
30 %package devel
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
36
37 %description devel
38 Header files for RocksDB library.
39
40 %description devel -l pl.UTF-8
41 Pliki nagłówkowe biblioteki RocksDB.
42
43 %package static
44 Summary:        Static RocksDB library
45 Summary(pl.UTF-8):      Statyczna biblioteka RocksDB
46 Group:          Development/Libraries
47 Requires:       %{name}-devel = %{version}-%{release}
48
49 %description static
50 Static RocksDB library.
51
52 %description static -l pl.UTF-8
53 Statyczna biblioteka RocksDB.
54
55 %prep
56 %setup -q -n %{name}-%{name}-%{version}
57 %patch0 -p1
58
59 %build
60 %ifarch i386 i486
61 PLATFORM_LDFLAGS="-latomic" \
62 %endif
63 %{__make} all shared_lib \
64         AM_DEFAULT_VERBOSITY=1 \
65         CC="%{__cc}" \
66         CXX="%{__cxx}" \
67         OPT="%{rpmcflags} %{!?debug:-DNDEBUG}" \
68         WARNING_FLAGS="%{rpmcppflags} -Wall"
69
70 %install
71 rm -rf $RPM_BUILD_ROOT
72
73 %{__make} install \
74         INSTALL_PATH=$RPM_BUILD_ROOT%{_prefix} \
75         INSTALL_LIBDIR=$RPM_BUILD_ROOT%{_libdir} \
76
77 %clean
78 rm -rf $RPM_BUILD_ROOT
79
80 %post   -p /sbin/ldconfig
81 %postun -p /sbin/ldconfig
82
83 %files
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
87
88 %files devel
89 %defattr(644,root,root,755)
90 %doc doc/*
91 %{_includedir}/rocksdb
92
93 %files static
94 %defattr(644,root,root,755)
95 %{_libdir}/librocksdb.a
This page took 0.062487 seconds and 3 git commands to generate.