%define name perl-DBD-CSV %define realname DBD-CSV %define version 0.1030 %define release 1mdk Name: %{name} Summary: DBD-CSV module for Perl (Miscellaneous_Modules/Bundle) Version: %{version} Release: %{release} License: GPL Group: Development/Perl URL: http://www.cpan.org Source: %{realname}-%{version}.tar.bz2 Requires: perl-DBI >= 1.00, perl-Text-CSV_XS >= 0.16, perl-SQL-Statement >= 0.1011 Buildroot: %{_tmppath}/%{name}-buildroot BuildPreReq: perl, perl-Text-CSV_XS >= 0.16, perl-SQL-Statement >= 0.1011 %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 rm -rf $RPM_BUILD_ROOT %setup -n %{realname}-%{version} %build mkdir -p %{buildroot} CFLAGS="$RPM_OPT_FLAGS" perl Makefile.PL %make %install mkdir -p %{buildroot}/%{perl_archlib} make PREFIX=%{buildroot}%{_prefix} install %clean rm -rf $RPM_BUILD_ROOT %files %defattr(-,root,root) %doc ChangeLog MANIFEST MANIFEST.SKIP README #%{perl_sitearch}/auto/DBD/CSV/.packlist %{_libdir}/perl5/site_perl/5.*/DBD/File.pm %{_libdir}/perl5/site_perl/5.*/DBD/CSV.pm %{_libdir}/perl5/site_perl/5.*/Bundle/DBD/CSV.pm %{_libdir}/perl5/man/man3/DBD::File.3* %{_libdir}/perl5/man/man3/DBD::CSV.3* %{_libdir}/perl5/man/man3/Bundle::DBD::CSV.3* %changelog * 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