3 %bcond_without tests # Do not perform "make test"
5 %include /usr/lib/rpm/macros.perl
8 Summary: DBD::CSV - DBI driver for CSV files
9 Summary(pl): DBD::CSV - sterownik DBI dla plików CSV
13 License: GPL or Artistic
14 Group: Development/Languages/Perl
15 Source0: http://www.cpan.org/modules/by-module/%{pdir}/%{pdir}-%{pnam}-%{version}.tar.gz
16 # Source0-md5: 9a98138aee1c94747d86494ceb343c2b
17 BuildRequires: perl-devel >= 5.6
18 BuildRequires: rpm-perlprov >= 4.1-13
20 BuildRequires: perl-DBI
21 BuildRequires: perl-SQL-Statement
22 BuildRequires: perl-Text-CSV_XS
25 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
28 The DBD::CSV module is yet another driver for the DBI (Database
29 Independent Interface for Perl). This one is based on the SQL "engine"
30 SQL::Statement and the abstract DBI driver DBD::File and implements
31 access to so-called CSV files (Comma separated values). Such files are
32 mostly used for exporting MS Access and MS Excel data.
35 Modu³ DBD::CSV jest kolejnym sterownikiem dla DBI (Database Independent
36 Interface). Opiera siê na ,,silniku'' SQL -- SQL::Statement, oraz
37 abstrakcyjnym sterowniku DBD::File (za³±czonym w tej dystrybucji).
38 Implementuje dostêp do tzw. plików CSV (Comma Separated Values --
39 ,,warto¶ci oddzielone ¶rednikami''). Ten format plików spotykany jest
40 najczê¶ciej przy eksportowaniu danych z programów MS Access i MS Excel.
43 %setup -q -n %{pdir}-%{pnam}-%{version}
46 %{__perl} Makefile.PL \
49 %{?with_tests:%{__make} test}
52 rm -rf $RPM_BUILD_ROOT
54 %{__make} install DESTDIR=$RPM_BUILD_ROOT
57 rm -rf $RPM_BUILD_ROOT
60 %defattr(644,root,root,755)
62 %{perl_vendorlib}/DBD/CSV.pm
63 %{perl_vendorlib}/DBD/File.pm