SHA256
1
0
forked from pool/ldb

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
This commit is contained in:
Lars Müller 2012-06-03 21:23:58 +00:00 committed by Git OBS Bridge
parent 5dfa981eeb
commit 641b973225
2 changed files with 11 additions and 7 deletions

View File

@ -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 Sun Jun 3 14:03:09 UTC 2012 - lmuelle@suse.com

View File

@ -52,7 +52,8 @@ BuildRoot: %{_tmppath}/%{name}-%{version}-build
Ldb is an LDAP-like embedded database. Ldb is an LDAP-like embedded database.
%package -n libldb1 %define libldb_name libldb1
%package -n %{libldb_name}
License: LGPL-3.0+ License: LGPL-3.0+
Summary: An LDAP-like embedded database Summary: An LDAP-like embedded database
Group: System/Libraries Group: System/Libraries
@ -63,7 +64,7 @@ BuildRequires: pkgconfig
%endif %endif
PreReq: /sbin/ldconfig PreReq: /sbin/ldconfig
%description -n libldb1 %description -n %{libldb_name}
Ldb is an LDAP-like embedded database. Ldb is an LDAP-like embedded database.
This package includes the ldb1 library. This package includes the ldb1 library.
@ -120,13 +121,11 @@ CONFIGURE_OPTIONS="\
%install %install
DESTDIR=${RPM_BUILD_ROOT} make install DESTDIR=${RPM_BUILD_ROOT} make install
%post -n libldb1 %post -n %{libldb_name} -p /sbin/ldconfig
/sbin/ldconfig
%postun -n libldb1 %postun -n %{libldb_name} -p /sbin/ldconfig
/sbin/ldconfig
%files -n libldb1 %files -n %{libldb_name}
%defattr(-,root,root) %defattr(-,root,root)
%{_libdir}/libldb.so.* %{_libdir}/libldb.so.*
%{_libdir}/libpyldb-util.so.* %{_libdir}/libpyldb-util.so.*