From 8cd1115f2e17d7b790861903a51ac87362f85928838a60f7fbc1701e24aa059d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Lars=20M=C3=BCller?= Date: Sun, 3 Jun 2012 21:47:59 +0000 Subject: [PATCH] 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 --- tdb.changes | 5 +++++ tdb.spec | 15 ++++++++------- 2 files changed, 13 insertions(+), 7 deletions(-) diff --git a/tdb.changes b/tdb.changes index 3e44657..335ba46 100644 --- a/tdb.changes +++ b/tdb.changes @@ -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 diff --git a/tdb.spec b/tdb.spec index 4077d2f..ec59528 100644 --- a/tdb.spec +++ b/tdb.spec @@ -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.*