]> git.pld-linux.org Git - packages/perl-DBD-CSV.git/blob - perl-DBD-CSV.spec
- new bconds
[packages/perl-DBD-CSV.git] / perl-DBD-CSV.spec
1 #
2 # Conditional build:
3 %bcond_without  tests   # Do not perform "make test"
4 #
5 %include        /usr/lib/rpm/macros.perl
6 %define         pdir    DBD
7 %define         pnam    CSV
8 Summary:        DBD::CSV - DBI driver for CSV files
9 Summary(pl):    DBD::CSV - sterownik DBI dla plików CSV
10 Name:           perl-DBD-CSV
11 Version:        0.2002
12 Release:        4
13 License:        GPL or Artistic
14 Group:          Development/Languages/Perl
15 Source0:        http://www.cpan.org/modules/by-module/%{pdir}/%{pdir}-%{pnam}-%{version}.tar.gz
16 # Source0-md5:  9a98138aee1c94747d86494ceb343c2b
17 BuildRequires:  perl-devel >= 5.6
18 BuildRequires:  rpm-perlprov >= 4.1-13
19 %if %{with tests}
20 BuildRequires:  perl-DBI
21 BuildRequires:  perl-SQL-Statement
22 BuildRequires:  perl-Text-CSV_XS
23 %endif
24 BuildArch:      noarch
25 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
26
27 %description
28 The DBD::CSV module is yet another driver for the DBI (Database
29 Independent Interface for Perl). This one is based on the SQL "engine"
30 SQL::Statement and the abstract DBI driver DBD::File and implements
31 access to so-called CSV files (Comma separated values). Such files are
32 mostly used for exporting MS Access and MS Excel data.
33
34 %description -l pl
35 Modu³ DBD::CSV jest kolejnym sterownikiem dla DBI (Database Independent
36 Interface).  Opiera siê na ,,silniku'' SQL -- SQL::Statement, oraz
37 abstrakcyjnym sterowniku DBD::File (za³±czonym w tej dystrybucji).
38 Implementuje dostêp do tzw. plików CSV (Comma Separated Values --
39 ,,warto¶ci oddzielone ¶rednikami'').  Ten format plików spotykany jest
40 najczê¶ciej przy eksportowaniu danych z programów MS Access i MS Excel.
41
42 %prep
43 %setup -q -n %{pdir}-%{pnam}-%{version}
44
45 %build
46 %{__perl} Makefile.PL \
47         INSTALLDIRS=vendor
48 %{__make}
49 %{?with_tests:%{__make} test}
50
51 %install
52 rm -rf $RPM_BUILD_ROOT
53
54 %{__make} install DESTDIR=$RPM_BUILD_ROOT
55
56 %clean
57 rm -rf $RPM_BUILD_ROOT
58
59 %files
60 %defattr(644,root,root,755)
61 %doc ChangeLog README
62 %{perl_vendorlib}/DBD/CSV.pm
63 %{perl_vendorlib}/DBD/File.pm
64 %{_mandir}/man3/DBD*
This page took 0.215045 seconds and 3 git commands to generate.