]>
Commit | Line | Data |
---|---|---|
c6873abb JB |
1 | Summary: LevelDB - key-value store library |
2 | Summary(pl.UTF-8): LevelDB - biblioteka bazy danych klucz-wartość | |
3 | Name: leveldb | |
0d660fce | 4 | Version: 1.14.0 |
d2a9272b | 5 | Release: 1 |
c6873abb JB |
6 | License: BSD |
7 | Group: Libraries | |
8 | #Source0Download: http://code.google.com/p/leveldb/downloads/list | |
9 | Source0: http://leveldb.googlecode.com/files/%{name}-%{version}.tar.gz | |
0d660fce | 10 | # Source0-md5: 38ce005460d71040f959d71fd8d7fc78 |
c6873abb JB |
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) | |
16 | ||
17 | %description | |
18 | LevelDB is a fast key-value storage library written at Google that | |
19 | provides an ordered mapping from string keys to string values. | |
20 | ||
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. | |
25 | ||
26 | %package devel | |
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 | |
34 | ||
35 | %description devel | |
36 | Header files for LevelDB library. | |
37 | ||
38 | %description devel -l pl.UTF-8 | |
39 | Pliki nagłówkowe biblioteki LevelDB. | |
40 | ||
41 | %package static | |
42 | Summary: Static LevelDB library | |
43 | Summary(pl.UTF-8): Statyczna biblioteka LevelDB | |
44 | Group: Development/Libraries | |
45 | Requires: %{name}-devel = %{version}-%{release} | |
46 | ||
47 | %description static | |
48 | Static LevelDB library. | |
49 | ||
50 | %description static -l pl.UTF-8 | |
51 | Statyczna biblioteka LevelDB. | |
52 | ||
53 | %prep | |
54 | %setup -q | |
55 | ||
56 | %build | |
57 | %{__make} \ | |
58 | CXX="%{__cxx}" \ | |
59 | OPT="%{rpmcflags} %{!?debug:-DNDEBUG}" | |
60 | ||
61 | %install | |
62 | rm -rf $RPM_BUILD_ROOT | |
63 | install -d $RPM_BUILD_ROOT{%{_libdir},%{_includedir}} | |
64 | ||
65 | cp -dp libleveldb.so* libleveldb.a $RPM_BUILD_ROOT%{_libdir} | |
66 | cp -a include/leveldb $RPM_BUILD_ROOT%{_includedir} | |
67 | ||
68 | %clean | |
69 | rm -rf $RPM_BUILD_ROOT | |
70 | ||
71 | %post -p /sbin/ldconfig | |
72 | %postun -p /sbin/ldconfig | |
73 | ||
74 | %files | |
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 | |
79 | ||
80 | %files devel | |
81 | %defattr(644,root,root,755) | |
82 | %doc doc/* | |
83 | %attr(755,root,root) %{_libdir}/libleveldb.so | |
84 | %{_includedir}/leveldb | |
85 | ||
86 | %files static | |
87 | %defattr(644,root,root,755) | |
88 | %{_libdir}/libleveldb.a |