2014-02-03 18:58:37 +01:00
|
|
|
#
|
|
|
|
# spec file for package lmdb
|
|
|
|
#
|
2017-10-16 08:33:45 +02:00
|
|
|
# Copyright (c) 2017 SUSE LINUX GmbH, Nuernberg, Germany.
|
2014-02-03 18:58:37 +01:00
|
|
|
#
|
|
|
|
# All modifications and additions to the file contributed by third parties
|
|
|
|
# remain the property of their copyright owners, unless otherwise agreed
|
|
|
|
# upon. The license for this file, and modifications and additions to the
|
|
|
|
# file, is the same license as for the pristine package itself (unless the
|
|
|
|
# license for the pristine package is not an Open Source License, in which
|
|
|
|
# case the license is the MIT License). An "Open Source License" is a
|
|
|
|
# license that conforms to the Open Source Definition (Version 1.9)
|
|
|
|
# published by the Open Source Initiative.
|
|
|
|
|
|
|
|
# Please submit bugfixes or comments via http://bugs.opensuse.org/
|
|
|
|
#
|
|
|
|
|
|
|
|
|
|
|
|
Name: lmdb
|
2014-05-21 09:39:07 +02:00
|
|
|
Summary: Lightning Memory-Mapped Database Manager
|
2014-02-03 18:58:37 +01:00
|
|
|
License: OLDAP-2.8
|
|
|
|
Group: Productivity/Databases/Tools
|
2016-02-01 15:26:59 +01:00
|
|
|
%define lname liblmdb-0_9_17
|
|
|
|
Version: 0.9.17
|
2014-02-03 18:58:37 +01:00
|
|
|
Release: 0
|
2014-05-21 09:39:07 +02:00
|
|
|
Url: http://symas.com/mdb/
|
2014-02-12 15:09:29 +01:00
|
|
|
|
2014-05-21 09:39:07 +02:00
|
|
|
#Git-Clone: git://git.openldap.org/openldap mdb.master
|
2015-12-08 09:06:10 +01:00
|
|
|
Source: https://github.com/LMDB/lmdb/archive/LMDB_%version.tar.gz
|
2015-09-18 10:00:31 +02:00
|
|
|
Source99: baselibs.conf
|
2016-02-01 15:26:59 +01:00
|
|
|
|
|
|
|
# PATCH-FIX-UPSTREAM - debugging tools (https://github.com/kacfengine/lmdb)
|
|
|
|
Patch1: 0001-Add-extra-tools-and-CFEngine-modifications-for-LMDB.patch
|
|
|
|
# PATCH-FIX-UPSTREAM - configure.ac, Makefile.am, etc.
|
|
|
|
Patch2: 0002-Autoconf-files.patch
|
|
|
|
# PATCH-FIX-OPENSUSE - Implicit declaration of atol()
|
|
|
|
Patch3: liblmdb-implicit-decl.patch
|
2017-10-16 08:33:45 +02:00
|
|
|
Patch4: soname-configurable.patch
|
2016-02-01 15:26:59 +01:00
|
|
|
|
2014-02-03 18:58:37 +01:00
|
|
|
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
2014-05-21 09:39:07 +02:00
|
|
|
BuildRequires: autoconf
|
|
|
|
BuildRequires: automake >= 1.10
|
|
|
|
BuildRequires: libtool >= 2
|
2014-02-03 18:58:37 +01:00
|
|
|
|
2014-02-04 13:09:38 +01:00
|
|
|
%description
|
2014-05-21 09:39:07 +02:00
|
|
|
LMDB is a Btree-based database management library with an API similar
|
|
|
|
to BerkeleyDB. The library is thread-aware and supports concurrent
|
|
|
|
read/write access from multiple processes and threads. The DB
|
|
|
|
structure is multi-versioned, and data pages use a copy-on-write
|
|
|
|
strategy, which also provides resistance to corruption and eliminates
|
|
|
|
the need for any recovery procedures. The database is exposed in a
|
|
|
|
memory map, requiring no page cache layer of its own.
|
|
|
|
|
|
|
|
%package -n %lname
|
|
|
|
Summary: Shared library for Lightning Memory-Mapped Database (LMDB)
|
2014-02-03 18:58:37 +01:00
|
|
|
Group: System/Libraries
|
|
|
|
|
2014-05-21 09:39:07 +02:00
|
|
|
%description -n %lname
|
|
|
|
LMDB is a Btree-based database management library with an API similar
|
|
|
|
to BerkeleyDB. The library is thread-aware and supports concurrent
|
|
|
|
read/write access from multiple processes and threads. The DB
|
|
|
|
structure is multi-versioned, and data pages use a copy-on-write
|
|
|
|
strategy, which also provides resistance to corruption and eliminates
|
|
|
|
the need for any recovery procedures. The database is exposed in a
|
|
|
|
memory map, requiring no page cache layer of its own.
|
|
|
|
|
|
|
|
This package contains the shared library.
|
2014-02-03 18:58:37 +01:00
|
|
|
|
|
|
|
%package devel
|
2014-02-04 13:09:38 +01:00
|
|
|
Summary: Development package for lmdb
|
2014-02-03 18:58:37 +01:00
|
|
|
Group: Development/Libraries/C and C++
|
2014-05-21 09:39:07 +02:00
|
|
|
Requires: %lname = %version
|
2014-02-03 18:58:37 +01:00
|
|
|
|
|
|
|
%description devel
|
2014-05-21 09:39:07 +02:00
|
|
|
LMDB is a Btree-based database management library with an API similar
|
|
|
|
to BerkeleyDB. The library is thread-aware and supports concurrent
|
|
|
|
read/write access from multiple processes and threads. The DB
|
|
|
|
structure is multi-versioned, and data pages use a copy-on-write
|
|
|
|
strategy, which also provides resistance to corruption and eliminates
|
|
|
|
the need for any recovery procedures. The database is exposed in a
|
|
|
|
memory map, requiring no page cache layer of its own.
|
2014-02-03 18:58:37 +01:00
|
|
|
|
2014-05-21 09:39:07 +02:00
|
|
|
This package contains the files needed to compile programs that use
|
|
|
|
the liblmdb library.
|
2014-02-03 18:58:37 +01:00
|
|
|
|
|
|
|
%prep
|
2016-02-01 15:26:59 +01:00
|
|
|
%setup -qn lmdb-LMDB_%version
|
2014-07-28 17:59:55 +02:00
|
|
|
%patch1 -p1
|
|
|
|
%patch2 -p1
|
|
|
|
%patch3 -p1
|
2017-10-16 08:33:45 +02:00
|
|
|
%patch4 -p1
|
|
|
|
sed -i -e 's,__VERSION__,%version,' libraries/liblmdb/Makefile.am
|
2014-02-03 18:58:37 +01:00
|
|
|
|
|
|
|
%build
|
2016-02-01 15:26:59 +01:00
|
|
|
cd libraries/liblmdb
|
2014-05-21 09:39:07 +02:00
|
|
|
mkdir -p m4
|
|
|
|
autoreconf -fi
|
|
|
|
%configure --disable-static
|
2014-09-11 09:28:39 +02:00
|
|
|
make %{?_smp_mflags} V=1
|
2014-02-03 18:58:37 +01:00
|
|
|
|
|
|
|
%install
|
2016-02-01 15:26:59 +01:00
|
|
|
cd libraries/liblmdb
|
2014-05-21 09:39:07 +02:00
|
|
|
make install DESTDIR="%buildroot"
|
|
|
|
rm -f "%buildroot/%_libdir"/*.la
|
2014-02-04 13:09:38 +01:00
|
|
|
|
2014-05-21 09:39:07 +02:00
|
|
|
%post -n %lname -p /sbin/ldconfig
|
|
|
|
%postun -n %lname -p /sbin/ldconfig
|
2014-02-04 13:09:38 +01:00
|
|
|
|
2014-02-03 18:58:37 +01:00
|
|
|
%files
|
|
|
|
%defattr(-,root,root)
|
2016-02-01 15:26:59 +01:00
|
|
|
%doc libraries/liblmdb/CHANGES
|
|
|
|
%doc libraries/liblmdb/COPYRIGHT
|
|
|
|
%doc libraries/liblmdb/LICENSE
|
2014-02-03 18:58:37 +01:00
|
|
|
%{_bindir}/*
|
2016-06-20 08:18:13 +02:00
|
|
|
%doc %{_mandir}/man1/*.1.gz
|
2014-02-03 18:58:37 +01:00
|
|
|
|
2014-05-21 09:39:07 +02:00
|
|
|
%files -n %lname
|
2014-02-03 18:58:37 +01:00
|
|
|
%defattr(-,root,root)
|
2014-05-21 09:39:07 +02:00
|
|
|
%_libdir/liblmdb-%version.so
|
2014-02-03 18:58:37 +01:00
|
|
|
|
|
|
|
%files devel
|
|
|
|
%defattr(-,root,root)
|
2014-05-21 09:39:07 +02:00
|
|
|
%_includedir/*
|
|
|
|
%_libdir/liblmdb.so
|
2014-02-03 18:58:37 +01:00
|
|
|
|
|
|
|
%changelog
|