From 1920162d01c01d4d2b84cb3fd62d482a43a2a34df16c209f6b85587baec653e9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Lars=20M=C3=BCller?= Date: Sat, 2 Jun 2012 14:43:53 +0000 Subject: [PATCH] - Rename package to tdb and add an independent libtdb1 subpackage. - Rename rpmlintrc file from libtdb1 to tdb-tools. - Remove bogus requires to itself from libtdb1 package. OBS-URL: https://build.opensuse.org/package/show/network:samba:STABLE/tdb?expand=0&rev=9 --- libtdb1.rpmlintrc => tdb-tools.rpmlintrc | 0 tdb.changes | 7 +++ tdb.spec | 63 +++++++++++++++--------- 3 files changed, 48 insertions(+), 22 deletions(-) rename libtdb1.rpmlintrc => tdb-tools.rpmlintrc (100%) diff --git a/libtdb1.rpmlintrc b/tdb-tools.rpmlintrc similarity index 100% rename from libtdb1.rpmlintrc rename to tdb-tools.rpmlintrc diff --git a/tdb.changes b/tdb.changes index eeb3aad..150e3ac 100644 --- a/tdb.changes +++ b/tdb.changes @@ -1,3 +1,10 @@ +------------------------------------------------------------------- +Sat Jun 2 14:32:09 UTC 2012 - lmuelle@suse.com + +- Rename package to tdb and add an independent libtdb1 subpackage. +- Rename rpmlintrc file from libtdb1 to tdb-tools. +- Remove bogus requires to itself from libtdb1 package. + ------------------------------------------------------------------- Thu May 31 14:13:31 UTC 2012 - lmuelle@suse.com diff --git a/tdb.spec b/tdb.spec index 9251aca..fb48961 100644 --- a/tdb.spec +++ b/tdb.spec @@ -1,5 +1,5 @@ # -# spec file for package libtdb1 (Version 1.2.10) +# spec file for package tdb (Version 1.2.10) # # Copyright (c) 2012 SUSE LINUX Products GmbH, Nuernberg, Germany. # @@ -19,7 +19,39 @@ %{!?python_sitearch: %global python_sitearch %(%{__python} -c "from distutils.sysconfig import get_python_lib; print get_python_lib(1)")} -Name: libtdb1 +Name: tdb +%if 0%{?suse_version} == 0 || 0%{?suse_version} > 1140 +%define build_make_smp_mflags %{?_smp_mflags} +%else +%define build_make_smp_mflags %{?jobs:-j%jobs} +%endif +License: GPL-3.0+ +Group: System/Libraries +Url: http://tdb.samba.org/ +Version: 1.2.10 +Release: 0 +Summary: Samba Trivial Database +Source: http://download.samba.org/pub/tdb/tdb-%{version}.tar.gz +Source4: baselibs.conf +BuildRoot: %{_tmppath}/%{name}-%{version}-build + + +%description +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 +small. + + +%package -n libtdb1 +License: GPL-3.0+ +Summary: Libraries and Header Files to Develop Programs with tdb1 Support +Group: System/Libraries +%if 0%{?suse_version} > 1020 +Requires: pkg-config +%else +Requires: pkgconfig +%endif BuildRequires: autoconf BuildRequires: docbook-xsl-stylesheets BuildRequires: libxslt @@ -29,23 +61,10 @@ BuildRequires: pkg-config BuildRequires: pkgconfig %endif BuildRequires: python-devel -%if 0%{?suse_version} == 0 || 0%{?suse_version} > 1140 -%define build_make_smp_mflags %{?_smp_mflags} -%else -%define build_make_smp_mflags %{?jobs:-j%jobs} -%endif -License: GPLv3+ -Group: System/Libraries -Url: http://tdb.samba.org/ -Version: 1.2.10 -Release: 0 PreReq: /sbin/ldconfig -Summary: Samba tdb Library -Source: http://download.samba.org/pub/tdb/tdb-%{version}.tar.gz -Source4: baselibs.conf -BuildRoot: %{_tmppath}/%{name}-%{version}-build -%description + +%description -n libtdb1 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 @@ -91,11 +110,11 @@ This package contains tools to manage Tdb files. %package -n python-tdb License: GPL-3.0+ Summary: Python bindings for the Tdb library -Group: Development/Libraries +Group: Development/Libraries/Python Requires: libtdb1 = %{version} %description -n python-tdb -Python bindings for libtdb +This package contains the python bindings for the Tdb library. %prep @@ -125,15 +144,15 @@ CONFIGURE_OPTIONS="\ %install DESTDIR=${RPM_BUILD_ROOT} make install -%post -p /sbin/ldconfig +%post -n libtdb1 -p /sbin/ldconfig -%postun -p /sbin/ldconfig +%postun -n libtdb1 -p /sbin/ldconfig %post -n python-tdb -p /sbin/ldconfig %postun -n python-tdb -p /sbin/ldconfig -%files +%files -n libtdb1 %defattr(-,root,root) %{_libdir}/libtdb.so.*