auto-import changelog data from gdbm-1.8.0-9.src.rpm

Tue Jun 12 2001 Than Ngo <than@redhat.com>
- fix to build against new libtool
Mon Mar 19 2001 Trond Eivind Glomsrd <teg@redhat.com>
- Make it respect RPM_OPT_FLAGS/CFLAGS - #32242. Patch from
    dan@D00M.cmc.msu.ru
This commit is contained in:
cvsdist 2004-09-09 05:01:04 +00:00
parent 2555efb2f9
commit 03f4c9a4db
2 changed files with 49 additions and 10 deletions

31
gdbm-1.8.0-cflags.patch Normal file
View File

@ -0,0 +1,31 @@
--- gdbm-1.8.0/Makefile.in.cflags Tue Jun 12 19:50:21 2001
+++ gdbm-1.8.0/Makefile.in Tue Jun 12 19:57:45 2001
@@ -17,22 +17,23 @@
MAKEINFO = makeinfo
TEXI2DVI = texi2dvi
-DEFS =
+DEFS = @DEFS@
# Where the system [n]dbm routines are...
LIBS = @LIBS@ -lc
# SunOS 4 users might wish to add '-fpcc-struct-return' to CFLAGS. see INSTALL.
-CFLAGS = -O
-LDFLAGS =
+CPPFLAGS = @CPPFLAGS@
+CFLAGS = @CFLAGS@
+LDFLAGS = @LDFLAGS@
# Common prefix for installation directories
-prefix = /usr/local
+prefix = /usr
exec_prefix = $(prefix)
mandir = $(prefix)/man
# Directory in which to put libgdbm.a.
-libdir = $(exec_prefix)/lib
+libdir = $(prefix)/lib
# The include directory for gdbm.h and dbm.h.
includedir = $(prefix)/include
# Info and man directories.

View File

@ -3,14 +3,15 @@
Summary: A GNU set of database routines which use extensible hashing.
Name: gdbm
Version: 1.8.0
Release: 6
Release: 9
Source: ftp://prep.ai.mit.edu/pub/gnu/gdbm-%{version}.tar.gz
Patch0: gdbm-1.8.0-jbj.patch
Patch1: gdbm-1.8.0-fhs.patch
Patch2: gdbm-1.8.0-cflags.patch
Copyright: GPL
Group: System Environment/Libraries
Prefix: %{_prefix}
BuildRoot: %{_tmppath}/%{name}-root
BuildRoot: %{_tmppath}/%{name}-%{version}-root
%description
Gdbm is a GNU database indexing library, including routines which use
@ -26,7 +27,7 @@ install gdbm-devel.
%package devel
Summary: Development libraries and header files for the gdbm library.
Group: Development/Libraries
Requires: gdbm
Requires: gdbm = %{version}
Prereq: /sbin/install-info
%description devel
@ -41,9 +42,12 @@ gdbm database library. You'll also need to install the gdbm package.
%setup -q
%patch0 -p 1 -b .jbj
%patch1 -p 1 -b .fhs
%patch2 -p 1 -b .cflags
%build
aclocal
autoheader
autoconf
%configure
make
@ -52,12 +56,9 @@ rm -rf ${RPM_BUILD_ROOT}
%makeinstall install-compat
{ cd ${RPM_BUILD_ROOT}
ln -sf gdbm/gdbm.h .%{_oldincludedir}/gdbm.h
ln -sf libgdbm.so.2.0.0 .%{_libdir}/libgdbm.so
gzip -9nf .%{_infodir}/gdbm*
rm -f .%{_infodir}/dir
}
pushd $RPM_BUILD_ROOT
ln -sf gdbm/gdbm.h .%{_oldincludedir}/gdbm.h
ln -sf libgdbm.so.2.0.0 .%{_libdir}/libgdbm.so
%post -p /sbin/ldconfig
@ -89,6 +90,13 @@ fi
rm -rf ${RPM_BUILD_ROOT}
%changelog
* Tue Jun 12 2001 Than Ngo <than@redhat.com>
- fix to build against new libtool
* Mon Mar 19 2001 Trond Eivind Glomsrød <teg@redhat.com>
- Make it respect RPM_OPT_FLAGS/CFLAGS - #32242.
Patch from dan@D00M.cmc.msu.ru
* Thu Jul 13 2000 Prospector <bugzilla@redhat.com>
- automatic rebuild