]> git.pld-linux.org Git - packages/rocksdb.git/blame - rocksdb.spec
up to 3.10.2
[packages/rocksdb.git] / rocksdb.spec
CommitLineData
c4a98ad2
JB
1Summary: RocksDB: A Persistent Key-Value Store for Flash and RAM Storage
2Summary(pl.UTF-8): RocksDB - trwała baza danych klucz-wartość dla pamięci Flash i RAM
3Name: rocksdb
83ab867a 4Version: 3.10.2
c4a98ad2
JB
5Release: 1
6License: BSD
7Group: Libraries
8Source0: https://github.com/facebook/rocksdb/archive/%{name}-%{version}.tar.gz
83ab867a 9# Source0-md5: 6bdc1defb0a0d8e9e3cb11bfc6e795ef
c4a98ad2
JB
10Patch0: %{name}-libdir.patch
11URL: http://rocksdb.org/
12BuildRequires: bzip2-devel
13BuildRequires: gflags-devel
1225ec57
JB
14%ifarch i386 i486
15BuildRequires: libatomic-devel
16%endif
c4a98ad2
JB
17BuildRequires: libstdc++-devel >= 6:4.7
18BuildRequires: libtcmalloc-devel
19BuildRequires: lz4-devel
20BuildRequires: snappy-devel
21BuildRequires: zlib-devel
22BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
23
24%description
25RocksDB is a Persistent Key-Value Store for Flash and RAM Storage.
26
27%description -l pl.UTF-8
28RocksDB to trwała baza danych klucz-wartość dla pamięci Flash i RAM.
29
30%package devel
31Summary: Header files for RocksDB library
32Summary(pl.UTF-8): Pliki nagłówkowe biblioteki RocksDB
33Group: Development/Libraries
34Requires: %{name} = %{version}-%{release}
35Requires: libstdc++-devel >= 6:4.7
36
37%description devel
38Header files for RocksDB library.
39
40%description devel -l pl.UTF-8
41Pliki nagłówkowe biblioteki RocksDB.
42
43%package static
44Summary: Static RocksDB library
45Summary(pl.UTF-8): Statyczna biblioteka RocksDB
46Group: Development/Libraries
47Requires: %{name}-devel = %{version}-%{release}
48
49%description static
50Static RocksDB library.
51
52%description static -l pl.UTF-8
53Statyczna biblioteka RocksDB.
54
55%prep
56%setup -q -n %{name}-%{name}-%{version}
57%patch0 -p1
58
59%build
1225ec57
JB
60%ifarch i386 i486
61PLATFORM_LDFLAGS="-latomic" \
62%endif
c4a98ad2 63%{__make} all shared_lib \
83ab867a 64 AM_DEFAULT_VERBOSITY=1 \
c4a98ad2
JB
65 CC="%{__cc}" \
66 CXX="%{__cxx}" \
67 OPT="%{rpmcflags} %{!?debug:-DNDEBUG}" \
68 WARNING_FLAGS="%{rpmcppflags} -Wall"
69
70%install
71rm -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
78rm -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.072181 seconds and 4 git commands to generate.