]>
Commit | Line | Data |
---|---|---|
1 | # | |
2 | # Conditional build: | |
3 | %bcond_without tests # Do not perform "make test" | |
4 | # | |
5 | %define pdir DBD | |
6 | %define pnam CSV | |
7 | Summary: DBD::CSV - DBI driver for CSV files | |
8 | Summary(pl.UTF-8): DBD::CSV - sterownik DBI dla plików CSV | |
9 | Name: perl-DBD-CSV | |
10 | Version: 0.48 | |
11 | Release: 1 | |
12 | Epoch: 1 | |
13 | License: GPL or Artistic | |
14 | Group: Development/Languages/Perl | |
15 | Source0: http://www.cpan.org/modules/by-module/DBD/%{pdir}-%{pnam}-%{version}.tgz | |
16 | # Source0-md5: 11391a868171dfe493f0a907d8c33596 | |
17 | URL: http://search.cpan.org/dist/DBD-CSV/ | |
18 | BuildRequires: perl-devel >= 1:5.8.0 | |
19 | BuildRequires: rpm-perlprov >= 4.1-13 | |
20 | %if %{with tests} | |
21 | BuildRequires: perl-DBI >= 1.42 | |
22 | BuildRequires: perl-SQL-Statement | |
23 | BuildRequires: perl-Text-CSV_XS | |
24 | %endif | |
25 | Requires: perl-DBI >= 1.42 | |
26 | Requires: perl-SQL-Statement | |
27 | BuildArch: noarch | |
28 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) | |
29 | ||
30 | %description | |
31 | The DBD::CSV module is yet another driver for the DBI (Database | |
32 | Independent Interface for Perl). This one is based on the SQL "engine" | |
33 | SQL::Statement and the abstract DBI driver DBD::File and implements | |
34 | access to so-called CSV files (Comma separated values). Such files are | |
35 | mostly used for exporting MS Access and MS Excel data. | |
36 | ||
37 | %description -l pl.UTF-8 | |
38 | Moduł DBD::CSV jest kolejnym sterownikiem dla DBI (Database | |
39 | Independent Interface). Opiera się na ,,silniku'' SQL -- | |
40 | SQL::Statement, oraz abstrakcyjnym sterowniku DBD::File (załączonym w | |
41 | tej dystrybucji). Implementuje dostęp do tzw. plików CSV (Comma | |
42 | Separated Values -- ,,wartości oddzielone średnikami''). Ten format | |
43 | plików spotykany jest najczęściej przy eksportowaniu danych z | |
44 | programów MS Access i MS Excel. | |
45 | ||
46 | %prep | |
47 | %setup -q -n %{pdir}-%{pnam}-%{version} | |
48 | ||
49 | %build | |
50 | AUTOMATED_TESTING=1 %{__perl} Makefile.PL \ | |
51 | INSTALLDIRS=vendor | |
52 | %{__make} | |
53 | %{?with_tests:%{__make} test} | |
54 | ||
55 | %install | |
56 | rm -rf $RPM_BUILD_ROOT | |
57 | %{__make} install \ | |
58 | DESTDIR=$RPM_BUILD_ROOT | |
59 | ||
60 | # don't package Bundle and Test | |
61 | %{__rm} $RPM_BUILD_ROOT%{_mandir}/man3/Bundle::DBD::CSV.3pm | |
62 | %{__rm} $RPM_BUILD_ROOT%{perl_vendorlib}/Bundle/DBD/CSV.pm | |
63 | %{__rm} -r $RPM_BUILD_ROOT%{perl_vendorlib}/DBI/Test | |
64 | ||
65 | %clean | |
66 | rm -rf $RPM_BUILD_ROOT | |
67 | ||
68 | %files | |
69 | %defattr(644,root,root,755) | |
70 | %doc ChangeLog README | |
71 | %{perl_vendorlib}/DBD/CSV.pm | |
72 | %dir %{perl_vendorlib}/DBD/CSV | |
73 | %{perl_vendorlib}/DBD/CSV/GetInfo.pm | |
74 | %{perl_vendorlib}/DBD/CSV/TypeInfo.pm | |
75 | %{_mandir}/man3/DBD*.3pm* |