diff --git a/gdbm.changes b/gdbm.changes index daea5d7..219eb7c 100644 --- a/gdbm.changes +++ b/gdbm.changes @@ -1,3 +1,9 @@ +------------------------------------------------------------------- +Sun Feb 5 17:48:43 UTC 2012 - jengelh@medozas.de + +- Name library package according to shlib policy +- Update description, source text from GNU homepage + ------------------------------------------------------------------- Sun Feb 5 16:36:13 UTC 2012 - jengelh@medozas.de diff --git a/gdbm.spec b/gdbm.spec index a240a59..c09ca16 100644 --- a/gdbm.spec +++ b/gdbm.spec @@ -16,6 +16,7 @@ # Name: gdbm +%define lname libgdbm3 Url: http://directory.fsf.org/GNU/gdbm.html #!BuildIgnore: man # bug437293 @@ -25,7 +26,7 @@ Obsoletes: gdbm-64bit # Version: 1.8.3 Release: 0 -Summary: GNU Database Routines +Summary: GNU dbm key/data database License: GPL-2.0+ Group: System/Libraries Source: ftp://prep.ai.mit.edu/gnu/gdbm/gdbm-%{version}.tar.bz2 @@ -39,9 +40,46 @@ BuildRoot: %{_tmppath}/%{name}-%{version}-build BuildRequires: libtool %description -A static and dynamic library for the GNU database routines. +GNU dbm is a library of database functions that use extensible +hashing and work similar to the standard UNIX dbm. These routines are +provided to a programmer needing to create and manipulate a hashed +database. +The basic use of GDBM is to store key/data pairs in a data file. Each +key must be unique and each key is paired with only one data item. +The library provides primitives for storing key/data pairs, searching +and retrieving the data by its key and deleting a key along with its +data. It also support sequential iteration over all key/data pairs in +a database. + +For compatibility with programs using old UNIX dbm function, the +package also provides traditional dbm and ndbm interfaces. + +%package -n %lname +Summary: GNU dbm key/data database +License: GPL-2.0+ +Group: System/Libraries +# O/P added in 12.2 +Obsoletes: gdbm < %version-%release +Provides: gdbm = %version-%release + +%description -n %lname +GNU dbm is a library of database functions that use extensible +hashing and work similar to the standard UNIX dbm. These routines are +provided to a programmer needing to create and manipulate a hashed +database. + +The basic use of GDBM is to store key/data pairs in a data file. Each +key must be unique and each key is paired with only one data item. + +The library provides primitives for storing key/data pairs, searching +and retrieving the data by its key and deleting a key along with its +data. It also support sequential iteration over all key/data pairs in +a database. + +For compatibility with programs using old UNIX dbm function, the +package also provides traditional dbm and ndbm interfaces. %package devel Summary: Include Files and Libraries mandatory for Development @@ -97,11 +135,11 @@ echo "/* GNU ld script the static library, so try that secondarily. */ GROUP ( %_libdir/libgdbm.a %_libdir/libgdbm_compat.a )" > $RPM_BUILD_ROOT/%{_libdir}/libndbm.a -%post -p /sbin/ldconfig +%post -n %lname -p /sbin/ldconfig -%postun -p /sbin/ldconfig +%postun -n %lname -p /sbin/ldconfig -%files +%files -n %lname %defattr(-,root,root) %doc COPYING README NEWS %_libdir/libgdbm.so.3