2014-02-03 18:58:37 +01:00
|
|
|
#
|
|
|
|
# spec file for package lmdb
|
|
|
|
#
|
2021-03-03 11:14:47 +01:00
|
|
|
# Copyright (c) 2021 SUSE LLC
|
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
|
2021-03-20 17:52:14 +01:00
|
|
|
%define lname liblmdb-0_9_29
|
|
|
|
Version: 0.9.29
|
2014-02-03 18:58:37 +01:00
|
|
|
Release: 0
|
2021-03-03 11:14:47 +01:00
|
|
|
URL: https://symas.com/mdb/
|
2021-03-20 17:52:14 +01:00
|
|
|
Source: https://git.openldap.org/openldap/openldap/-/archive/LMDB_%{version}/openldap-LMDB_%{version}.tar.gz
|
2020-03-22 21:56:03 +01:00
|
|
|
Source1: lmdb.pc.in
|
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
|
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.
|
2019-03-26 08:00:19 +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
|
2021-03-20 17:52:14 +01:00
|
|
|
%setup -qn openldap-LMDB_%version
|
2014-07-28 17:59:55 +02:00
|
|
|
%patch1 -p1
|
|
|
|
%patch2 -p1
|
|
|
|
%patch3 -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
|
|
|
|
2020-03-22 21:56:03 +01:00
|
|
|
# Install pkgconfig file
|
|
|
|
sed -e 's:@PREFIX@:%{_prefix}:g' \
|
|
|
|
-e 's:@EXEC_PREFIX@:%{_exec_prefix}:g' \
|
|
|
|
-e 's:@LIBDIR@:%{_libdir}:g' \
|
|
|
|
-e 's:@INCLUDEDIR@:%{_includedir}:g' \
|
|
|
|
-e 's:@PACKAGE_VERSION@:%{version}:g' \
|
|
|
|
%{SOURCE1} >lmdb.pc
|
|
|
|
install -Dpm 0644 -t %{buildroot}%{_libdir}/pkgconfig lmdb.pc
|
|
|
|
|
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
|
2016-02-01 15:26:59 +01:00
|
|
|
%doc libraries/liblmdb/CHANGES
|
|
|
|
%doc libraries/liblmdb/COPYRIGHT
|
2019-03-26 08:00:19 +01:00
|
|
|
%license 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
|
|
|
|
%_libdir/liblmdb-%version.so
|
2014-02-03 18:58:37 +01:00
|
|
|
|
|
|
|
%files devel
|
2014-05-21 09:39:07 +02:00
|
|
|
%_includedir/*
|
|
|
|
%_libdir/liblmdb.so
|
2020-03-22 21:56:03 +01:00
|
|
|
%_libdir/pkgconfig/lmdb.pc
|
2014-02-03 18:58:37 +01:00
|
|
|
|
|
|
|
%changelog
|