%define name perl-DBD-CSV %define realname DBD-CSV %define version 0.21 %define release 1mdk Name: %{name} Summary: Perl module to access csv files through DBI Version: %{version} Release: %{release} License: GPL Group: Development/Perl URL: http://search.cpan.org/~jzucker/DBD-CSV/ Source: http://search.cpan.org/CPAN/authors/id/J/JZ/JZUCKER/%{realname}-%{version}.tar.bz2 Buildroot: %{_tmppath}/%{name}-buildroot Buildrequires: perl-devel perl-DBI BuildPreReq: perl-Text-CSV_XS >= 0.16, perl-SQL-Statement >= 0.1011 Buildarch: noarch %description DBD-CSV is a Perl module that provides yet another driver for the DBI (Database independent interface for Perl). This one is based on the SQL "engine" SQL::Statement and the abstract DBI driver DBD::File and implements access to so-called CSV files (comma seperated values). Such files are mostly used for exporting MS Access and MS Excel data. %prep -q %setup -q -n %{realname}-%{version} %build CFLAGS="$RPM_OPT_FLAGS" %{__perl} Makefile.PL INSTALLDIRS=vendor make make test %install rm -rf $RPM_BUILD_ROOT %makeinstall_std %clean rm -rf $RPM_BUILD_ROOT %files %defattr(-,root,root) %doc ChangeLog MANIFEST MANIFEST.SKIP README %{perl_vendorlib}/Bundle/DBD/* %{perl_vendorlib}/DBD/* %{_mandir}/*/* %changelog * Wed May 19 2004 Michael Scherer <misc@mandrake.org> 0.21-1mdk - new version - rpmbuildupdate aware - new url - automatic requires * Tue Aug 12 2003 Per Øyvind Karlsen <peroyvind@linux-mandrake.com> 0.2002-6mdk - rebuild - rm -rf $RPM_BUILD_ROOT in %%install, not %%prep - use %%makeinstall_std macro * Wed Jul 23 2003 Lenny Cartier <lenny@mandrakesoft.com> 0.2002-5mdk - buildrequires from Michael Scherer * Wed May 28 2003 Thierry Vignaud <tvignaud@mandrakesoft.com> 0.2002-4mdk - rebuild for new auto{prov,req} * Mon May 05 2003 Lenny Cartier <lenny@mandrakesoft.com> 0.2002-3mdk - buildrequires * Fri Jan 24 2003 Lenny Cartier <lenny@mandrakesoft.com> 0.2002-2mdk - rebuild * Wed Jul 24 2002 Lenny Cartier <lenny@mandrakesoft.com> 0.2002-1mdk - 0.2002 * Fri Mar 01 2002 Lenny Cartier <lenny@mandrakesoft.com> 0.1030-1mdk - 0.1030 * Thu Aug 23 2001 Lenny Cartier <lenny@mandrakesoft.com> 0.1027-1mdk - updated to 0.1027 * Tue Sep 12 2000 Lenny Cartier <lenny@mandrakesoft.com> 0.1023-1mdk - updated to 0.1023 * Sat Jul 22 2000 Vincent Danen <vdanen@mandrakesoft.com> 0.1022-3mdk - build for new perl - macroization * Mon May 1 2000 Vincent Danen <vdanen@linux-mandrake.com> 0.1022-2mdk - fix group * Wed Mar 8 2000 Vincent Danen <vdanen@linux-mandrake.com> - 0.1022 * Tue Mar 7 2000 Vincent Danen <vdanen@linux-mandrake.com> - initial specfile - bzip sources