Define library name and use it instead of libtdb1.

OBS-URL: https://build.opensuse.org/package/show/network:samba:STABLE/tdb?expand=0&rev=14
This commit is contained in:
Lars Müller 2012-06-03 21:47:59 +00:00 committed by Git OBS Bridge
parent b9164136b4
commit 8cd1115f2e
2 changed files with 13 additions and 7 deletions

View File

@ -1,3 +1,8 @@
-------------------------------------------------------------------
Sun Jun 3 21:46:25 UTC 2012 - lmuelle@suse.com
- Define library name and use it instead of libtdb1.
-------------------------------------------------------------------
Sat Jun 2 20:17:54 UTC 2012 - lmuelle@suse.com

View File

@ -53,7 +53,8 @@ internally to keep writers from trampling on each other. TDB is also extremely
small.
%package -n libtdb1
%define libtdb_name libtdb1
%package -n %{libtdb_name}
License: GPL-3.0+
Summary: Libraries and Header Files to Develop Programs with tdb1 Support
Group: System/Libraries
@ -64,7 +65,7 @@ Requires: pkgconfig
%endif
PreReq: /sbin/ldconfig
%description -n libtdb1
%description -n %{libtdb_name}
TDB is a Trivial Database. In concept, it is very much like GDBM, and BSD's DB
except that it allows multiple simultaneous writers and uses locking
internally to keep writers from trampling on each other. TDB is also extremely
@ -77,7 +78,7 @@ This package contains the tdb1 library.
License: GPL-3.0+
Summary: Libraries and Header Files to Develop Programs with tdb1 Support
Group: Development/Libraries/C and C++
Requires: libtdb1 = %{version}
Requires: %{libtdb_name} = %{version}
%if 0%{?suse_version} > 1020
Requires: pkg-config
%else
@ -111,7 +112,7 @@ This package contains tools to manage Tdb files.
License: GPL-3.0+
Summary: Python bindings for the Tdb library
Group: Development/Libraries/Python
Requires: libtdb1 = %{version}
Requires: %{libtdb_name} = %{version}
%description -n python-tdb
This package contains the python bindings for the Tdb library.
@ -144,15 +145,15 @@ CONFIGURE_OPTIONS="\
%install
DESTDIR=${RPM_BUILD_ROOT} make install
%post -n libtdb1 -p /sbin/ldconfig
%post -n %{libtdb_name} -p /sbin/ldconfig
%postun -n libtdb1 -p /sbin/ldconfig
%postun -n %{libtdb_name} -p /sbin/ldconfig
%post -n python-tdb -p /sbin/ldconfig
%postun -n python-tdb -p /sbin/ldconfig
%files -n libtdb1
%files -n %{libtdb_name}
%defattr(-,root,root)
%{_libdir}/libtdb.so.*