From 641b9732259af3929a7c78fe98009532aee76af3c16150a85ca6f6ec14adcd19 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Lars=20M=C3=BCller?= Date: Sun, 3 Jun 2012 21:23:58 +0000 Subject: [PATCH] Define library name and use it instead of libldb1. OBS-URL: https://build.opensuse.org/package/show/network:samba:STABLE/ldb?expand=0&rev=13 --- ldb.changes | 5 +++++ ldb.spec | 13 ++++++------- 2 files changed, 11 insertions(+), 7 deletions(-) diff --git a/ldb.changes b/ldb.changes index 38069a5..729a95a 100644 --- a/ldb.changes +++ b/ldb.changes @@ -1,3 +1,8 @@ +------------------------------------------------------------------- +Sun Jun 3 21:18:46 UTC 2012 - lmuelle@suse.com + +- Define library name and use it instead of libldb1. + ------------------------------------------------------------------- Sun Jun 3 14:03:09 UTC 2012 - lmuelle@suse.com diff --git a/ldb.spec b/ldb.spec index fcc985b..a28cb45 100644 --- a/ldb.spec +++ b/ldb.spec @@ -52,7 +52,8 @@ BuildRoot: %{_tmppath}/%{name}-%{version}-build Ldb is an LDAP-like embedded database. -%package -n libldb1 +%define libldb_name libldb1 +%package -n %{libldb_name} License: LGPL-3.0+ Summary: An LDAP-like embedded database Group: System/Libraries @@ -63,7 +64,7 @@ BuildRequires: pkgconfig %endif PreReq: /sbin/ldconfig -%description -n libldb1 +%description -n %{libldb_name} Ldb is an LDAP-like embedded database. This package includes the ldb1 library. @@ -120,13 +121,11 @@ CONFIGURE_OPTIONS="\ %install DESTDIR=${RPM_BUILD_ROOT} make install -%post -n libldb1 -/sbin/ldconfig +%post -n %{libldb_name} -p /sbin/ldconfig -%postun -n libldb1 -/sbin/ldconfig +%postun -n %{libldb_name} -p /sbin/ldconfig -%files -n libldb1 +%files -n %{libldb_name} %defattr(-,root,root) %{_libdir}/libldb.so.* %{_libdir}/libpyldb-util.so.*