3 %bcond_without tcmalloc # don't use tcmalloc
6 %undefine with_tcmalloc
9 Summary: LevelDB - key-value store library
10 Summary(pl.UTF-8): LevelDB - biblioteka bazy danych klucz-wartość
16 #Source0Download: http://code.google.com/p/leveldb/downloads/list
17 Source0: http://leveldb.googlecode.com/files/%{name}-%{version}.tar.gz
18 # Source0-md5: e91fd7cbced8b84e21f357a866ad226a
19 URL: http://code.google.com/p/leveldb/
20 BuildRequires: libstdc++-devel
21 %{?with_tcmalloc:BuildRequires: libtcmalloc-devel}
22 BuildRequires: snappy-devel
23 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
26 LevelDB is a fast key-value storage library written at Google that
27 provides an ordered mapping from string keys to string values.
29 %description -l pl.UTF-8
30 LevelDB to napisana w Google szybka biblioteka do przechowywania par
31 klucz-wartość, udostępniająca uporządkowane odwzorowanie z kluczy
32 będących łańcuchami znaków do wartości tego samego typu.
35 Summary: Header files for LevelDB library
36 Summary(pl.UTF-8): Pliki nagłówkowe biblioteki LevelDB
37 Group: Development/Libraries
38 Requires: %{name} = %{version}-%{release}
39 Requires: libstdc++-devel
40 Requires: libtcmalloc-devel
41 Requires: snappy-devel
44 Header files for LevelDB library.
46 %description devel -l pl.UTF-8
47 Pliki nagłówkowe biblioteki LevelDB.
50 Summary: Static LevelDB library
51 Summary(pl.UTF-8): Statyczna biblioteka LevelDB
52 Group: Development/Libraries
53 Requires: %{name}-devel = %{version}-%{release}
56 Static LevelDB library.
58 %description static -l pl.UTF-8
59 Statyczna biblioteka LevelDB.
67 OPT="%{rpmcflags} %{!?debug:-DNDEBUG}"
70 rm -rf $RPM_BUILD_ROOT
71 install -d $RPM_BUILD_ROOT{%{_libdir},%{_includedir}}
73 cp -dp libleveldb.so* libleveldb.a $RPM_BUILD_ROOT%{_libdir}
74 cp -a include/leveldb $RPM_BUILD_ROOT%{_includedir}
77 rm -rf $RPM_BUILD_ROOT
79 %post -p /sbin/ldconfig
80 %postun -p /sbin/ldconfig
83 %defattr(644,root,root,755)
84 %doc AUTHORS LICENSE NEWS README TODO
85 %attr(755,root,root) %{_libdir}/libleveldb.so.*.*
86 %attr(755,root,root) %ghost %{_libdir}/libleveldb.so.1
89 %defattr(644,root,root,755)
91 %attr(755,root,root) %{_libdir}/libleveldb.so
92 %{_includedir}/leveldb
95 %defattr(644,root,root,755)
96 %{_libdir}/libleveldb.a