Accepting request 533945 from home:dirkmueller:branches:systemsmanagement

- add soname-configurable.patch: Actually set the soname in the
  shared library rather than just renaming the files on disk post
  install (which does not actually do anything)

OBS-URL: https://build.opensuse.org/request/show/533945
OBS-URL: https://build.opensuse.org/package/show/systemsmanagement/lmdb?expand=0&rev=24
This commit is contained in:
Klaus Kämpf 2017-10-16 06:33:45 +00:00 committed by Git OBS Bridge
parent 24b99dabaa
commit e7e1e9035a
3 changed files with 22 additions and 2 deletions

View File

@ -1,4 +1,10 @@
-------------------------------------------------------------------
Fri Oct 13 13:45:42 UTC 2017 - dmueller@suse.com
- add soname-configurable.patch: Actually set the soname in the
shared library rather than just renaming the files on disk post
install (which does not actually do anything)
-------------------------------------------------------------------
Sun Jun 19 01:07:37 UTC 2016 - stefan.bruens@rwth-aachen.de

View File

@ -1,7 +1,7 @@
#
# spec file for package lmdb
#
# Copyright (c) 2016 SUSE LINUX GmbH, Nuernberg, Germany.
# Copyright (c) 2017 SUSE LINUX GmbH, Nuernberg, Germany.
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
@ -35,6 +35,7 @@ Patch1: 0001-Add-extra-tools-and-CFEngine-modifications-for-LMDB.patch
Patch2: 0002-Autoconf-files.patch
# PATCH-FIX-OPENSUSE - Implicit declaration of atol()
Patch3: liblmdb-implicit-decl.patch
Patch4: soname-configurable.patch
BuildRoot: %{_tmppath}/%{name}-%{version}-build
BuildRequires: autoconf
@ -87,6 +88,8 @@ the liblmdb library.
%patch1 -p1
%patch2 -p1
%patch3 -p1
%patch4 -p1
sed -i -e 's,__VERSION__,%version,' libraries/liblmdb/Makefile.am
%build
cd libraries/liblmdb
@ -99,7 +102,6 @@ make %{?_smp_mflags} V=1
cd libraries/liblmdb
make install DESTDIR="%buildroot"
rm -f "%buildroot/%_libdir"/*.la
(cd %buildroot/%_libdir; mv liblmdb.so liblmdb-%version.so; ln -s liblmdb-%version.so liblmdb.so)
%post -n %lname -p /sbin/ldconfig
%postun -n %lname -p /sbin/ldconfig

12
soname-configurable.patch Normal file
View File

@ -0,0 +1,12 @@
Index: lmdb-LMDB_0.9.17/libraries/liblmdb/Makefile.am
===================================================================
--- lmdb-LMDB_0.9.17.orig/libraries/liblmdb/Makefile.am
+++ lmdb-LMDB_0.9.17/libraries/liblmdb/Makefile.am
@@ -1,6 +1,6 @@
lib_LTLIBRARIES = liblmdb.la
liblmdb_la_SOURCES = mdb.c midl.c
-liblmdb_la_LDFLAGS=-no-undefined -avoid-version
+liblmdb_la_LDFLAGS = -no-undefined -release __VERSION__
bin_PROGRAMS = mdb_stat mdb_copy mdb_load mdb_dump lmdump lmmgr
mdb_stat_LDADD = liblmdb.la