Summary(pl): GNU biblioteka bazy danych la jêzyka C
Name: gdbm
Version: 1.8.0
-Release: 2
+Release: 3
Copyright: GPL
Group: Libraries
Group(pl): Biblioteki
Source: ftp://prep.ai.mit.edu/pub/gnu/%{name}-%{version}.tar.gz
Patch0: gdbm-info.patch
Patch1: gdbm-DESTDIR.patch
+Patch2: gdbm-jbj.patch
BuildRequires: libtool
BuildRequires: autoconf
-Buildroot: /tmp/%{name}-%{version}-root
+BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
%description
-This is a database indexing library. It is useful for those who need
-to write C applications and need access to a simple and efficient
-database or build C applications which use it.
+Gdbm is a GNU database indexing library, including routines which use
+extensible hashing. Gdbm works in a similar way to standard UNIX dbm
+routines. Gdbm is useful for developers who write C applications and need
+access to a simple and efficient database or who are building C applications
+which will use such a database.
%description -l de
Dies ist eine Datenbank-Index-Library für Programmierer, die
Group: Development/Libraries
Group(pl): Programowanie/Biblioteki
Requires: %{name} = %{version}
-Prereq: /usr/sbin/fix-info-dir
%description devel
These are the development libraries and header files for gdbm, the
%setup -q
%patch0 -p1
%patch1 -p1
+%patch2 -p1
%build
libtoolize --copy --force
%post -p /sbin/ldconfig
%post devel
-/usr/sbin/fix-info-dir -c %{_infodir} >/dev/null 2>&1
+[ -x /usr/sbin/fix-info-dir ] && /usr/sbin/fix-info-dir -c %{_infodir} >/dev/null 2>&1
%postun -p /sbin/ldconfig
-%preun devel
-/usr/sbin/fix-info-dir -c %{_infodir} >/dev/null 2>&1
+%postun devel
+[ -x /usr/sbin/fix-info-dir ] && /usr/sbin/fix-info-dir -c %{_infodir} >/dev/null 2>&1
%clean
rm -rf $RPM_BUILD_ROOT