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.*