]> git.pld-linux.org Git - packages/perl-DBD-CSV.git/blame - perl-DBD-CSV.spec
- drop obsolete and outdated manual inclusion of rpm macros
[packages/perl-DBD-CSV.git] / perl-DBD-CSV.spec
CommitLineData
0c43b82e 1#
2# Conditional build:
719f3a88 3%bcond_without tests # Do not perform "make test"
4#
e6cbebf1 5%define pdir DBD
6%define pnam CSV
21c1037d 7Summary: DBD::CSV - DBI driver for CSV files
8eda8c6d 8Summary(pl.UTF-8): DBD::CSV - sterownik DBI dla plików CSV
ca57970b 9Name: perl-DBD-CSV
96c8cd2b
MK
10Version: 0.48
11Release: 1
ced8cb75 12Epoch: 1
124c3be0 13License: GPL or Artistic
ca57970b 14Group: Development/Languages/Perl
96c8cd2b
MK
15Source0: http://www.cpan.org/modules/by-module/DBD/%{pdir}-%{pnam}-%{version}.tgz
16# Source0-md5: 11391a868171dfe493f0a907d8c33596
fe8bc5de 17URL: http://search.cpan.org/dist/DBD-CSV/
ced8cb75 18BuildRequires: perl-devel >= 1:5.8.0
7fecd27c 19BuildRequires: rpm-perlprov >= 4.1-13
719f3a88 20%if %{with tests}
ced8cb75 21BuildRequires: perl-DBI >= 1.42
ca57970b 22BuildRequires: perl-SQL-Statement
126efe6f 23BuildRequires: perl-Text-CSV_XS
0c43b82e 24%endif
ced8cb75 25Requires: perl-DBI >= 1.42
80f98ae6 26Requires: perl-SQL-Statement
a4664b7c 27BuildArch: noarch
879f45a2 28BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
ca57970b 29
30%description
e6889c33 31The DBD::CSV module is yet another driver for the DBI (Database
32Independent Interface for Perl). This one is based on the SQL "engine"
33SQL::Statement and the abstract DBI driver DBD::File and implements
34access to so-called CSV files (Comma separated values). Such files are
35mostly used for exporting MS Access and MS Excel data.
ca57970b 36
09374cf2 37%description -l pl.UTF-8
6bf9be2e
ER
38Moduł DBD::CSV jest kolejnym sterownikiem dla DBI (Database
39Independent Interface). Opiera się na ,,silniku'' SQL --
40SQL::Statement, oraz abstrakcyjnym sterowniku DBD::File (załączonym w
41tej dystrybucji). Implementuje dostęp do tzw. plików CSV (Comma
42Separated Values -- ,,wartości oddzielone średnikami''). Ten format
43plików spotykany jest najczęściej przy eksportowaniu danych z
44programów MS Access i MS Excel.
ca57970b 45
46%prep
eafbbc93 47%setup -q -n %{pdir}-%{pnam}-%{version}
ca57970b 48
49%build
96c8cd2b 50AUTOMATED_TESTING=1 %{__perl} Makefile.PL \
053ecd53 51 INSTALLDIRS=vendor
dd8546bd 52%{__make}
719f3a88 53%{?with_tests:%{__make} test}
ca57970b 54
55%install
56rm -rf $RPM_BUILD_ROOT
ced8cb75
JB
57%{__make} install \
58 DESTDIR=$RPM_BUILD_ROOT
ca57970b 59
6bf9be2e
ER
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
ca57970b 65%clean
66rm -rf $RPM_BUILD_ROOT
67
68%files
69%defattr(644,root,root,755)
126efe6f 70%doc ChangeLog README
7fecd27c 71%{perl_vendorlib}/DBD/CSV.pm
96c8cd2b
MK
72%dir %{perl_vendorlib}/DBD/CSV
73%{perl_vendorlib}/DBD/CSV/GetInfo.pm
74%{perl_vendorlib}/DBD/CSV/TypeInfo.pm
0a235c94 75%{_mandir}/man3/DBD*.3pm*
This page took 0.105251 seconds and 4 git commands to generate.