Summary: Czech laguage tools Name: perl-DBD-Xbase Version: 0.241 Release: 1.%{mysig} Group: Applications/Databases Packager: Milan Kerslager Source: DBD-XBase-%{version}.tar.gz URL: http://search.cpan.org/search?mode=module&query=xbase License: Distributable BuildArch: noarch Buildroot: /tmp/%{name}-root Requires: %(perl -MConfig -le 'if (defined $Config{useithreads}) { print "perl(:WITH_ITHREADS)" } else { print "perl(:WITHOUT_ITHREADS)" }') Requires: %(perl -MConfig -le 'if (defined $Config{usethreads}) { print "perl(:WITH_THREADS)" } else { print "perl(:WITHOUT_THREADS)" }') Requires: %(perl -MConfig -le 'if (defined $Config{uselargefiles}) { print "perl(:WITH_LARGEFILES)" } else { print "perl(:WITHOUT_LARGEFILES)" }') %description This module can read and write XBase database files, known as dbf in dBase and FoxPro world. It also reads memo fields from the dbt and fpt files, if needed. An alpha code of reading index support for ndx, ntx, mdx, idx and cdx is available for testing -- see the DBD::Index(3) man page. Module XBase provides simple native interface to XBase files. For DBI compliant database access, see the DBD::XBase and DBI modules and their man pages. %prep %setup -q -n DBD-XBase-%{version} %build CFLAGS="$RPM_OPT_FLAGS" perl Makefile.PL PREFIX=$RPM_BUILD_ROOT/usr make make test %install rm -rf $RPM_BUILD_ROOT mkdir -p $RPM_BUILD_ROOT/usr eval `perl '-V:installarchlib'` mkdir -p $RPM_BUILD_ROOT/$installarchlib # make install wants to append to perllocal.pod which is politically # incorrect behaviour; let's disable it: it's RPM that is supposed to # keep track of installed software make install [ -x /usr/lib/rpm/brp-compress ] && /usr/lib/rpm/brp-compress find $RPM_BUILD_ROOT \( -name perllocal.pod -o -name .packlist \) -exec rm -v {} \; find $RPM_BUILD_ROOT/usr -type f -print | \ sed "s@^$RPM_BUILD_ROOT@@g" > %{name}-%{version}-filelist if [ "$(cat %{name}-%{version}-filelist)X" = "X" ] ; then echo "ERROR: EMPTY FILE LIST" exit 1 fi %clean [ "$RPM_BUILD_ROOT" != "/" ] && rm -rf $RPM_BUILD_ROOT %files -f %{name}-%{version}-filelist %defattr(-,root,root,-) %doc Changes README %changelog * Wed Nov 21 2007 Milan Kerslager 0.241-1.ker.rhel5 - rebuild for RHEL5 * Tue Feb 22 2005 Milan Kerslager 0.241-1.ker.rhel4 - rebuild for RHEL4 * Thu Feb 26 2004 Milan Kerslager 0.241-1.ker.rhel3 - rebuild for RHEL3 - updated to 0.241 * Wed May 14 2003 Milan Kerslager 0.232-1.9 - updated to 0.232 - rebuild for RH 9 * Tue Nov 26 2002 Milan Kerslager 0.231-1 - initial release for RH 8.0