2014-02-03 18:58:37 +01:00
|
|
|
#
|
|
|
|
# spec file for package lmdb
|
|
|
|
#
|
2018-06-04 09:07:20 +02:00
|
|
|
# Copyright (c) 2018 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.
|
|
|
|
|
2018-10-09 08:37:10 +02:00
|
|
|
# Please submit bugfixes or comments via https://bugs.opensuse.org/
|
2014-02-03 18:58:37 +01:00
|
|
|
#
|
|
|
|
|
|
|
|
|
|
|
|
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
|
2018-06-04 09:07:20 +02:00
|
|
|
%define lname liblmdb-0_9_22
|
|
|
|
Version: 0.9.22
|
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-OPENSUSE - Implicit declaration of atol()
|
2018-06-04 09:07:20 +02:00
|
|
|
Patch2: liblmdb-implicit-decl.patch
|
|
|
|
# PATCH-FIX-OPENSUSE - Build and link to shared library
|
|
|
|
Patch3: Makefile-build-use-shared-lib.patch
|
2018-10-09 08:37:10 +02:00
|
|
|
# PATCH-FIX-UPSTREAM - Fix crash due to failed assertion, freed pages ended up on the dirty page list twice
|
|
|
|
Patch4: 0001-ITS-8756-remove-loose-pg-from-dirty-list-in-freelist.patch
|
2016-02-01 15:26:59 +01:00
|
|
|
|
2014-02-03 18:58:37 +01:00
|
|
|
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
2017-12-20 10:10:02 +01:00
|
|
|
%if 0%{?rhel_version} == 700
|
|
|
|
BuildRequires: perl-Exporter
|
|
|
|
%endif
|
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
|
2018-10-09 08:37:10 +02:00
|
|
|
%patch4 -p1
|
2014-02-03 18:58:37 +01:00
|
|
|
|
|
|
|
%build
|
2016-02-01 15:26:59 +01:00
|
|
|
cd libraries/liblmdb
|
2018-06-04 09:07:20 +02:00
|
|
|
make %{?_smp_mflags} V=1 SOVERSION=%{version} CFLAGS="%{optflags}"
|
2014-02-03 18:58:37 +01:00
|
|
|
|
|
|
|
%install
|
2016-02-01 15:26:59 +01:00
|
|
|
cd libraries/liblmdb
|
2018-06-04 09:07:20 +02:00
|
|
|
make install DESTDIR="%buildroot" SOVERSION=%{version} \
|
|
|
|
bindir=%{_bindir} \
|
|
|
|
libdir=%{_libdir} \
|
|
|
|
mandir=%{_mandir} \
|
|
|
|
includedir=%{_includedir} \
|
|
|
|
datarootdir=%{_datadir}
|
|
|
|
ln -s %{_libdir}/liblmdb-%{version}.so %{buildroot}%{_libdir}/liblmdb.so
|
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
|