]> git.pld-linux.org Git - packages/leveldb.git/blob - leveldb.spec
- updated to 1.6.0
[packages/leveldb.git] / leveldb.spec
1 Summary:        LevelDB - key-value store library
2 Summary(pl.UTF-8):      LevelDB - biblioteka bazy danych klucz-wartość
3 Name:           leveldb
4 Version:        1.6.0
5 Release:        1
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
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)
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
This page took 0.134877 seconds and 3 git commands to generate.