]> git.pld-linux.org Git - packages/perl-DBD-CSV.git/blob - perl-DBD-CSV.spec
- massive attack s/pld.org.pl/pld-linux.org/
[packages/perl-DBD-CSV.git] / perl-DBD-CSV.spec
1 #
2 # Conditional build:
3 # _without_tests - do not perform "make test"
4 %include        /usr/lib/rpm/macros.perl
5 %define         pdir    DBD
6 %define         pnam    CSV
7 Summary:        DBD::CSV - DBI driver for CSV files
8 Summary(pl):    DBD::CSV - sterownik DBI dla plików CSV
9 Name:           perl-DBD-CSV
10 Version:        0.2002
11 Release:        4
12 License:        GPL/Artistic
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
21 %endif
22 BuildArch:      noarch
23 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
24
25 %description
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.
31
32 %description -l pl
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.
39
40 %prep
41 %setup -q -n %{pdir}-%{pnam}-%{version}
42
43 %build
44 %{__perl} Makefile.PL \
45         INSTALLDIRS=vendor 
46 %{__make}
47 %{!?_without_tests:%{__make} test}
48
49 %install
50 rm -rf $RPM_BUILD_ROOT
51
52 %{__make} install DESTDIR=$RPM_BUILD_ROOT
53
54 %clean
55 rm -rf $RPM_BUILD_ROOT
56
57 %files
58 %defattr(644,root,root,755)
59 %doc ChangeLog README
60 %{perl_vendorlib}/DBD/CSV.pm
61 %{perl_vendorlib}/DBD/File.pm
62 %{_mandir}/man3/DBD*
This page took 0.051426 seconds and 3 git commands to generate.