2 %define prefix %{_prefix}
3 %define libdir %{_libdir}
6 Summary: Lightning Memory-Mapped Database Manager
8 Group: Productivity/Databases/Tools
11 Url: http://symas.com/mdb/
12 Source0: %{name}-%{version}.tar.gz
13 # Source99: baselibs.conf
15 # BuildRequires: autoconf
16 BuildRequires: automake >= 1.10
17 BuildRequires: libtool >= 2
20 LMDB is a Btree-based database management library with an API similar
21 to BerkeleyDB. The library is thread-aware and supports concurrent
22 read/write access from multiple processes and threads. The DB
23 structure is multi-versioned, and data pages use a copy-on-write
24 strategy, which also provides resistance to corruption and eliminates
25 the need for any recovery procedures. The database is exposed in a
26 memory map, requiring no page cache layer of its own.
29 Summary: Shared library for Lightning Memory-Mapped Database (LMDB)
30 Group: System/Libraries
32 %description -n %lname
33 LMDB is a Btree-based database management library with an API similar
34 to BerkeleyDB. The library is thread-aware and supports concurrent
35 read/write access from multiple processes and threads. The DB
36 structure is multi-versioned, and data pages use a copy-on-write
37 strategy, which also provides resistance to corruption and eliminates
38 the need for any recovery procedures. The database is exposed in a
39 memory map, requiring no page cache layer of its own.
41 This package contains the shared library.
44 Summary: Development package for lmdb
45 Group: Development/Libraries/C and C++
46 Requires: %lname = %version
49 LMDB is a Btree-based database management library with an API similar
50 to BerkeleyDB. The library is thread-aware and supports concurrent
51 read/write access from multiple processes and threads. The DB
52 structure is multi-versioned, and data pages use a copy-on-write
53 strategy, which also provides resistance to corruption and eliminates
54 the need for any recovery procedures. The database is exposed in a
55 memory map, requiring no page cache layer of its own.
57 This package contains the files needed to compile programs that use
65 make PREFIX=%{prefix} LIBDIR=%{libdir}
69 # make install DESTDIR="%buildroot"
70 make install prefix=$RPM_BUILD_ROOT%{prefix} LIBDIR=$RPM_BUILD_ROOT%{libdir} install
72 rm -rf %{buildroot}%{_mandir}
74 %post -n %lname -p /sbin/ldconfig
75 %postun -n %lname -p /sbin/ldconfig