%define module DB_File %define version 1.73 %define release 2mdk Packager: Jean-Michel Dault <jmdault@mandrakesoft.com> Vendor: MandrakeSoft Distribution: Linux-Mandrake Summary: Perl module for use of the Berkeley DB version 1 Name: perl-%{module} Version: %{version} Release: %{release} Copyright: distributable Group: Development/Perl Source0: %{module}-%{version}.tar.bz2 Url: http://www.cpan.org BuildRoot: %{_tmppath}/%{name}-buildroot/ Requires: perl >= 5.600 %description DB_File is a module which allows Perl programs to make use of the facilities provided by Berkeley DB version 1. (DB_File can be built with version 2 or 3 of Berkeley DB, but it will only support the 1.x features), If you want to make use of the new features available in Berkeley DB 2.x or 3.x, use the Perl module BerkeleyDB instead. Berkeley DB is a C library which provides a consistent interface to a number of database formats. DB_File provides an interface to all three of the database types (hash, btree and recno) currently supported by Berkeley DB. For further details see the documentation included at the end of the file DB_File.pm. %prep %setup -q -n %{module}-%{version} %build CFLAGS="$RPM_OPT_FLAGS" perl Makefile.PL make %clean rm -rf $RPM_BUILD_ROOT %install rm -rf $RPM_BUILD_ROOT eval `perl '-V:installarchlib'` mkdir -p $RPM_BUILD_ROOT/$installarchlib make PREFIX=$RPM_BUILD_ROOT%{_prefix} install # call spec-helper before creating the file list s=/usr/share/spec-helper/spec-helper ; [ -x $s ] && $s find $RPM_BUILD_ROOT%{_prefix} -type f -print | sed "s@^$RPM_BUILD_ROOT@@g" | grep -v perllocal.pod > %{module}-%{version}-filelist %files -f %{module}-%{version}-filelist %defattr(-,root,root) %changelog * Sat Sep 16 2000 Stefan van der Eijk <s.vandereijk@chello.nl> 1.73-2mdk - Call spec-helper before creating filelist * Wed Aug 09 2000 Jean-Michel Dault <jmdault@mandrakesoft.com> 1.73-1mdk - Completely re-made (macroize) package for 1.73 (update)