]>
Commit | Line | Data |
---|---|---|
0c43b82e | 1 | # |
2 | # Conditional build: | |
719f3a88 | 3 | %bcond_without tests # Do not perform "make test" |
4 | # | |
eafbbc93 | 5 | %include /usr/lib/rpm/macros.perl |
e6cbebf1 | 6 | %define pdir DBD |
7 | %define pnam CSV | |
21c1037d | 8 | Summary: DBD::CSV - DBI driver for CSV files |
8eda8c6d | 9 | Summary(pl.UTF-8): DBD::CSV - sterownik DBI dla plików CSV |
ca57970b | 10 | Name: perl-DBD-CSV |
9a899964 | 11 | Version: 0.22 |
80f98ae6 | 12 | Release: 3 |
ced8cb75 | 13 | Epoch: 1 |
124c3be0 | 14 | License: GPL or Artistic |
ca57970b | 15 | Group: Development/Languages/Perl |
a22ad6bb | 16 | Source0: http://www.cpan.org/modules/by-module/%{pdir}/%{pdir}-%{pnam}-%{version}.tar.gz |
9a899964 | 17 | # Source0-md5: 365517fb2e0f565b16613eac01046d85 |
ced8cb75 | 18 | BuildRequires: perl-devel >= 1:5.8.0 |
7fecd27c | 19 | BuildRequires: rpm-perlprov >= 4.1-13 |
719f3a88 | 20 | %if %{with tests} |
ced8cb75 | 21 | BuildRequires: perl-DBI >= 1.42 |
ca57970b | 22 | BuildRequires: perl-SQL-Statement |
126efe6f | 23 | BuildRequires: perl-Text-CSV_XS |
0c43b82e | 24 | %endif |
ced8cb75 | 25 | Requires: perl-DBI >= 1.42 |
80f98ae6 | 26 | Requires: perl-SQL-Statement |
a4664b7c | 27 | BuildArch: noarch |
879f45a2 | 28 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) |
ca57970b | 29 | |
30 | %description | |
e6889c33 | 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. | |
ca57970b | 36 | |
09374cf2 JR |
37 | %description -l pl.UTF-8 |
38 | Moduł DBD::CSV jest kolejnym sterownikiem dla DBI (Database Independent | |
39 | Interface). Opiera się na ,,silniku'' SQL -- SQL::Statement, oraz | |
40 | abstrakcyjnym sterowniku DBD::File (załączonym w tej dystrybucji). | |
41 | Implementuje dostęp do tzw. plików CSV (Comma Separated Values -- | |
42 | ,,wartości oddzielone średnikami''). Ten format plików spotykany jest | |
43 | najczęściej przy eksportowaniu danych z programów MS Access i MS Excel. | |
ca57970b | 44 | |
45 | %prep | |
eafbbc93 | 46 | %setup -q -n %{pdir}-%{pnam}-%{version} |
ca57970b | 47 | |
48 | %build | |
7fecd27c | 49 | %{__perl} Makefile.PL \ |
053ecd53 | 50 | INSTALLDIRS=vendor |
dd8546bd | 51 | %{__make} |
719f3a88 | 52 | %{?with_tests:%{__make} test} |
ca57970b | 53 | |
54 | %install | |
55 | rm -rf $RPM_BUILD_ROOT | |
ca57970b | 56 | |
ced8cb75 JB |
57 | %{__make} install \ |
58 | DESTDIR=$RPM_BUILD_ROOT | |
ca57970b | 59 | |
ca57970b | 60 | %clean |
61 | rm -rf $RPM_BUILD_ROOT | |
62 | ||
63 | %files | |
64 | %defattr(644,root,root,755) | |
126efe6f | 65 | %doc ChangeLog README |
7fecd27c | 66 | %{perl_vendorlib}/DBD/CSV.pm |
0a235c94 | 67 | %{_mandir}/man3/DBD*.3pm* |