# $Id$ # Authority: dries # Upstream: Jeff Zucker %define perl_vendorlib %(eval "`%{__perl} -V:installvendorlib`"; echo $installvendorlib) %define perl_vendorarch %(eval "`%{__perl} -V:installvendorarch`"; echo $installvendorarch) %define real_name DBD-CSV Summary: DBI driver for CSV files Name: perl-DBD-CSV Version: 0.22 Release: 1.2 License: Artistic/GPL Group: Applications/CPAN URL: http://search.cpan.org/dist/DBD-CSV/ Source: http://www.cpan.org/modules/by-module/DBD/DBD-CSV-%{version}.tar.gz BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root BuildArch: noarch BuildRequires: perl BuildRequires: perl(ExtUtils::MakeMaker) %description The DBD::CSV module is 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 separated values). Such files are mostly used for exporting MS Access and MS Excel data. %prep %setup -n %{real_name}-%{version} %build %{__perl} Makefile.PL INSTALLDIRS="vendor" PREFIX="%{buildroot}%{_prefix}" %{__make} %{?_smp_mflags} %install %{__rm} -rf %{buildroot} %{__make} pure_install ### Clean up buildroot find %{buildroot} -name .packlist -exec %{__rm} {} \; %clean %{__rm} -rf %{buildroot} %files %defattr(-, root, root, 0755) %doc ChangeLog README %doc %{_mandir}/man3/* %{perl_vendorlib}/DBD/CSV.pm %{perl_vendorlib}/Bundle/DBD/CSV.pm %changelog * Wed Jun 8 2005 Dries Verachtert - 0.22-1 - Updated to release 0.22. * Tue Mar 1 2005 Dries Verachtert - 0.21-1 - Initial package.