Name: cdb Version: 0.75 Release: 1 Group: File/Utilities URL: http://cr.yp.to/cdb.html Copyright: Check with djb@koobera.math.uic.edu Packager: Blair Lowe Source0: http://cr.yp.to/cdb/cdb-0.75.tar.gz Summary: constant database (cdb) utilities Provides: cdbget Provides: cdbmake Provides: cdbdump Provides: cdbstats Provides: cdbtest Provides: cdbmake-12 Provides: cdbmake-sv BuildRoot: /var/tmp/cdb-root %description cdb is a fast, reliable, simple package for creating and reading constant databases. Its database structure provides several features: * Fast lookups: A successful lookup in a large database normally takes just two disk accesses. An unsuccessful lookup takes only one. * Low overhead: A database uses 2048 bytes, plus 24 bytes per record, plus the space for keys and data. * No random limits: cdb can handle any database up to 4 gigabytes. There are no other restrictions; records don't even have to fit into memory. Databases are stored in a machine-independent format. * Fast atomic database replacement: cdbmake can rewrite an entire database two orders of magnitude faster than other hashing packages. * Fast database dumps: cdbdump prints the contents of a database in cdbmake-compatible format. cdb is designed to be used in mission-critical applications like e-mail. Database replacement is safe against system crashes. Readers don't have to pause during a rewrite. %prep %setup %build # default is /usr/local, but Blair uses CentOS conventions (and buildroot prefix for rpmbuild) echo "%{buildroot}/usr This is the cdb home directory. Programs will be installed in .../bin." > conf-home make %install # if buildroot is not "/" then remove it to clean up before install [ "%{buildroot}" != "/" ] && rm -rf %{buildroot} #shell script to make install easier export PATH="/sbin:/usr/sbin:/bin:/usr/bin" install_file() { source="$1" dest="$2" shift 2 install "$@" "$source" %{buildroot}/"$dest" } mkdir -p %{buildroot} pushd %{buildroot} install -d %{buildroot}%{_bindir} popd make setup check %clean # if buildroot is not "/" then remove it to clean up before install [ "%{buildroot}" != "/" ] && rm -rf %{buildroot} # Pre/Post-install Scripts ##################################################### %pre %preun # Files List ################################################################### %files %defattr(-,root,root) %doc CHANGES FILES Makefile README SYSDEPS TARGETS TODO VERSION %defattr(755,root,root) %{_bindir} %changelog * Wed Jan 4 2006 Blair Lowe - Version: 0.75-1 - first time packaged