3 # _without_tests - do not perform "make test"
4 %include /usr/lib/rpm/macros.perl
7 Summary: DBD::CSV - DBI driver for CSV files
8 Summary(pl): DBD::CSV - sterownik DBI dla plików CSV
13 Group: Development/Languages/Perl
14 Source0: http://www.cpan.org/modules/by-module/%{pdir}/%{pdir}-%{pnam}-%{version}.tar.gz
15 BuildRequires: perl-devel >= 5.6
16 BuildRequires: rpm-perlprov >= 4.1-13
17 %if %{?_without_tests:0}%{!?_without_tests:1}
18 BuildRequires: perl-DBI
19 BuildRequires: perl-SQL-Statement
20 BuildRequires: perl-Text-CSV_XS
23 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
26 The DBD::CSV module is yet another driver for the DBI (Database
27 Independent Interface for Perl). This one is based on the SQL "engine"
28 SQL::Statement and the abstract DBI driver DBD::File and implements
29 access to so-called CSV files (Comma separated values). Such files are
30 mostly used for exporting MS Access and MS Excel data.
33 Modu³ DBD::CSV jest kolejnym sterownikiem dla DBI (Database Independent
34 Interface). Opiera siê na ,,silniku'' SQL -- SQL::Statement, oraz
35 abstrakcyjnym sterowniku DBD::File (za³±czonym w tej dystrybucji).
36 Implementuje dostêp do tzw. plików CSV (Comma Separated Values --
37 ,,warto¶ci oddzielone ¶rednikami''). Ten format plików spotykany jest
38 najczê¶ciej przy eksportowaniu danych z programów MS Access i MS Excel.
41 %setup -q -n %{pdir}-%{pnam}-%{version}
44 %{__perl} Makefile.PL \
47 %{!?_without_tests:%{__make} test}
50 rm -rf $RPM_BUILD_ROOT
52 %{__make} install DESTDIR=$RPM_BUILD_ROOT
55 rm -rf $RPM_BUILD_ROOT
58 %defattr(644,root,root,755)
60 %{perl_vendorlib}/DBD/CSV.pm
61 %{perl_vendorlib}/DBD/File.pm