From dc39e83fec2d2194773d5f969dcd8201b820cbc2e2a830da89c6570abe643822 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Lars=20M=C3=BCller?= Date: Sun, 3 Jun 2012 21:23:29 +0000 Subject: [PATCH] Define library name and use it instead of libtalloc2. OBS-URL: https://build.opensuse.org/package/show/network:samba:STABLE/talloc?expand=0&rev=7 --- talloc.changes | 5 +++++ talloc.spec | 15 ++++++++------- 2 files changed, 13 insertions(+), 7 deletions(-) diff --git a/talloc.changes b/talloc.changes index 924f307..37bc651 100644 --- a/talloc.changes +++ b/talloc.changes @@ -1,3 +1,8 @@ +------------------------------------------------------------------- +Sun Jun 3 21:13:08 UTC 2012 - lmuelle@suse.com + +- Define library name and use it instead of libtalloc2. + ------------------------------------------------------------------- Sat Jun 2 15:05:32 UTC 2012 - lmuelle@suse.com diff --git a/talloc.spec b/talloc.spec index 644a4f3..acd3adf 100644 --- a/talloc.spec +++ b/talloc.spec @@ -54,12 +54,13 @@ destructors. It is the core memory allocator used in Samba. -%package -n libtalloc2 +%define libtalloc_name libtalloc2 +%package -n %{libtalloc_name} License: LGPL-3.0+ Summary: Libraries and Header Files to Develop Programs with talloc2 Support Provides: bundled(libreplace) -%description -n libtalloc2 +%description -n %{libtalloc_name} Talloc is a hierarchical, reference counted memory pool system with destructors. @@ -72,7 +73,7 @@ This package includes the talloc2 library. License: LGPL-3.0+ Summary: Libraries and Header Files to Develop Programs with talloc2 Support Group: Development/Libraries/C and C++ -Requires: libtalloc2 = %{version} +Requires: %{libtalloc_name} = %{version} %description -n libtalloc-devel Talloc is a hierarchical, reference counted memory pool system with @@ -87,7 +88,7 @@ Libraries and Header Files to Develop Programs with talloc2 Support License: LGPL-3.0+ Summary: Python bindings for the Talloc library Group: Development/Libraries/Python -Requires: libtalloc2 = %{version} +Requires: %{libtalloc_name} = %{version} %description -n pytalloc This package contains the python bindings for the Talloc library. @@ -131,15 +132,15 @@ doxygen doxy.config %install DESTDIR=${RPM_BUILD_ROOT} make install -%post -n libtalloc2 -p /sbin/ldconfig +%post -n %{libtalloc_name} -p /sbin/ldconfig -%postun -n libtalloc2 -p /sbin/ldconfig +%postun -n %{libtalloc_name} -p /sbin/ldconfig %post -n pytalloc -p /sbin/ldconfig %postun -n pytalloc -p /sbin/ldconfig -%files -n libtalloc2 +%files -n %{libtalloc_name} %defattr(-,root,root) %{_libdir}/libtalloc.so.*