Summary: The Berkeley Database, the Open Source embedded database system Name: db Version: 2.7.7 Release: 4 Copyright: Open Source Group: System Environments/Libraries Source: http://www.sleepycat.com/update/2.7.7/db-2.7.7.tar.gz Prefix: %{_prefix} Buildroot: /var/tmp/%{name}-root %ifarch ia64 %define stdlib lib/ia64l32 %define liblink ../../.. %define DEFCCIA cc %define DEFCC %{DEFCCIA} %else %define stdlib lib %define liblink ../.. %define DEFCC cc %endif %description Berekley DB is a programmatic toolkit that provides high-performance built-in database support for desktop and server applications and for information appliances. The Berkeley DB access methods include B+tree, Extended Linear Hashing, Fixed and Variable-length records, and Queues. Berkeley DB provides full transactional support, database recovery, online backups, and separate access to locking, logging and shared memory caching subsystems. Berkeley DB supports C, C++, Java, Tcl, Perl, and Python APIs. %prep %setup -q %build # Use the default compiler for this platform - gcc otherwise if [[ -z "$CC" ]] then if test "X`type %{DEFCC} 2>/dev/null`" != 'X'; then export CC=%{DEFCC} export RPM_OPT_FLAGS=`echo $RPM_OPT_FLAGS | sed 's:-fsigned-char::'` else export CC=gcc fi fi cd build_unix ../dist/configure --prefix=$RPM_BUILD_ROOT%{_prefix} --enable-compat185 --enable-shared make %install cd build_unix make prefix=$RPM_BUILD_ROOT%{_prefix} install ( cd $RPM_BUILD_ROOT for dir in bin include do mkdir -p usr/$dir cd usr/$dir ln -sf ../..%{prefix}/BerkeleyDB/$dir/* . cd - done mkdir -p usr/%{stdlib} cd usr/%{stdlib} ln -sf %{liblink}%{prefix}/BerkeleyDB/lib/* . ) %clean rm -rf $RPM_BUILD_ROOT %files %defattr(-,root,root) %docdir %{_prefix}/docs %doc LICENSE README %{_prefix}/BerkeleyDB/bin/db_* %{_prefix}/BerkeleyDB/lib/* %{_prefix}/BerkeleyDB/include/* /usr/bin/db_* /usr/%{stdlib}/* /usr/include/* %changelog * Thu Jun 07 2001 David Clissold - Package was inadvertently shipping a bogus core and temp file. * Thu Mar 08 2001 Marc Stephenson - Add logic for default compiler - Rebuild against new shared objects * Tue Feb 20 2001 aixtoolbox - Account for different standard lib location in IA64 32-bit ABI * Thu Feb 24 2000 Cristian Gafton - add patch from Andreas Jaeger to fix dtype lookups (for glibc 2.1.3 builds) * Mon Feb 7 2000 Jeff Johnson - compress man page. * Fri Jan 21 2000 Cristian Gafton - apply patch to fix a /tmp race condition from Thomas Biege - simplify %install * Sat Nov 27 1999 Jeff Johnson - update to 3.78.1. * Thu Apr 15 1999 Bill Nottingham - added a serial tag so it upgrades right * Sun Mar 21 1999 Cristian Gafton - auto rebuild in the new build environment (release 5) * Wed Sep 16 1998 Cristian Gafton - added a patch for large file support in glob * Tue Aug 18 1998 Jeff Johnson - update to 3.77 * Mon Apr 27 1998 Prospector System - translations modified for de, fr, tr * Thu Oct 16 1997 Donnie Barnes - udpated from 3.75 to 3.76 - various spec file cleanups - added install-info support * Mon Jun 02 1997 Erik Troan - built against glibc