1 %include /usr/lib/rpm/macros.perl
2 Summary: DBD-CSV perl module
3 Summary(pl): Modu³ perla DBD-CSV
8 Group: Development/Languages/Perl
9 Group(pl): Programowanie/Jêzyki/Perl
10 Source0: ftp://ftp.perl.org/pub/CPAN/modules/by-module/DBD/DBD-CSV-%{version}.tar.gz
11 BuildRequires: rpm-perlprov >= 3.0.3-16
12 BuildRequires: perl >= 5.005_03-14
13 BuildRequires: perl-DBI
14 BuildRequires: perl-Text-CSV_XS
15 BuildRequires: perl-SQL-Statement
17 Requires: %{perl_sitearch}
18 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
21 DBD-CSV - DBI driver for CSV files.
24 DBD-CSV - sterownik DBI dla plików CSV.
27 %setup -q -n DBD-CSV-%{version}
34 rm -rf $RPM_BUILD_ROOT
35 %{__make} install DESTDIR=$RPM_BUILD_ROOT
38 cd $RPM_BUILD_ROOT%{perl_sitearch}/auto/DBD/CSV
39 sed -e "s#$RPM_BUILD_ROOT##" .packlist >.packlist.new
40 mv .packlist.new .packlist
43 gzip -9nf $RPM_BUILD_ROOT%{_mandir}/man3/* \
47 rm -rf $RPM_BUILD_ROOT
50 %defattr(644,root,root,755)
51 %doc {ChangeLog,README}.gz
53 %{perl_sitelib}/Bundle/DBD/CSV.pm
54 %{perl_sitelib}/DBD/CSV.pm
55 %{perl_sitelib}/DBD/File.pm
57 %{perl_sitearch}/auto/DBD/CSV