1 Summary: LevelDB - key-value store library
2 Summary(pl.UTF-8): LevelDB - biblioteka bazy danych klucz-wartość
8 #Source0Download: http://code.google.com/p/leveldb/downloads/list
9 Source0: http://leveldb.googlecode.com/files/%{name}-%{version}.tar.gz
10 # Source0-md5: d0b73edbb86996d58b073bba6b206295
11 URL: http://code.google.com/p/leveldb/
12 BuildRequires: libstdc++-devel
13 BuildRequires: libtcmalloc-devel
14 BuildRequires: snappy-devel
15 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
18 LevelDB is a fast key-value storage library written at Google that
19 provides an ordered mapping from string keys to string values.
21 %description -l pl.UTF-8
22 LevelDB to napisana w Google szybka biblioteka do przechowywania par
23 klucz-wartość, udostępniająca uporządkowane odwzorowanie z kluczy
24 będących łańcuchami znaków do wartości tego samego typu.
27 Summary: Header files for LevelDB library
28 Summary(pl.UTF-8): Pliki nagłówkowe biblioteki LevelDB
29 Group: Development/Libraries
30 Requires: %{name} = %{version}-%{release}
31 Requires: libstdc++-devel
32 Requires: libtcmalloc-devel
33 Requires: snappy-devel
36 Header files for LevelDB library.
38 %description devel -l pl.UTF-8
39 Pliki nagłówkowe biblioteki LevelDB.
42 Summary: Static LevelDB library
43 Summary(pl.UTF-8): Statyczna biblioteka LevelDB
44 Group: Development/Libraries
45 Requires: %{name}-devel = %{version}-%{release}
48 Static LevelDB library.
50 %description static -l pl.UTF-8
51 Statyczna biblioteka LevelDB.
59 OPT="%{rpmcflags} %{!?debug:-DNDEBUG}"
62 rm -rf $RPM_BUILD_ROOT
63 install -d $RPM_BUILD_ROOT{%{_libdir},%{_includedir}}
65 cp -dp libleveldb.so* libleveldb.a $RPM_BUILD_ROOT%{_libdir}
66 cp -a include/leveldb $RPM_BUILD_ROOT%{_includedir}
69 rm -rf $RPM_BUILD_ROOT
71 %post -p /sbin/ldconfig
72 %postun -p /sbin/ldconfig
75 %defattr(644,root,root,755)
76 %doc AUTHORS LICENSE NEWS README TODO
77 %attr(755,root,root) %{_libdir}/libleveldb.so.*.*
78 %attr(755,root,root) %ghost %{_libdir}/libleveldb.so.1
81 %defattr(644,root,root,755)
83 %attr(755,root,root) %{_libdir}/libleveldb.so
84 %{_includedir}/leveldb
87 %defattr(644,root,root,755)
88 %{_libdir}/libleveldb.a