File perl-DBD-CSV.spec of Package perl-DBD-CSV

#
# spec file for package perl-DBD-CSV (Version 0.31)
#
# Copyright (c) 2010 SUSE LINUX Products GmbH, Nuernberg, Germany.
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
# upon. The license for this file, and modifications and additions to the
# file, is the same license as for the pristine package itself (unless the
# license for the pristine package is not an Open Source License, in which
# case the license is the MIT License). An "Open Source License" is a
# license that conforms to the Open Source Definition (Version 1.9)
# published by the Open Source Initiative.

# Please submit bugfixes or comments via http://bugs.opensuse.org/
#

Name:           perl-DBD-CSV
Version:        0.31
Release:        1
License:        GPL+ or Artistic
%define cpan_name DBD-CSV
Summary:        DBI driver for CSV files
Url:            http://search.cpan.org/dist/DBD-CSV/
Group:          Development/Libraries/Perl
#Source:         http://www.cpan.org/authors/id/H/HM/HMBRAND/DBD-CSV-%{version}.tgz
Source:         %{cpan_name}-%{version}.tar.gz
Patch0:         fix-perl.diff
BuildArch:      noarch
BuildRoot:      %{_tmppath}/%{name}-%{version}-build
BuildRequires:  perl
BuildRequires:  perl-macros
BuildRequires:  perl(Config)
BuildRequires:  perl(Cwd)
BuildRequires:  perl(DBD::File) >= 0.38
BuildRequires:  perl(DBI) >= 1.613
BuildRequires:  perl(SQL::Statement) >= 1.3
BuildRequires:  perl(Text::CSV_XS) >= 0.71
Requires:       perl(DBD::File) >= 0.40
Requires:       perl(DBI) >= 1.614
Requires:       perl(SQL::Statement) >= 1.31
Requires:       perl(Text::CSV_XS) >= 0.71
%{perl_requires}

%description
The DBD::CSV module is yet another driver for the DBI (Database independent
interface for Perl). This one is based on the SQL "engine" SQL::Statement
and the abstract DBI driver DBD::File and implements access to so-called
CSV files (Comma Separated Values). Such files are often used for exporting
MS Access and MS Excel data.

See the DBI manpage for details on DBI, the SQL::Statement manpage for
details on SQL::Statement and the DBD::File manpage for details on the base
class DBD::File.

%prep
%setup -q -n %{cpan_name}-%{version}
%patch0 -p1

%build
%{__perl} Makefile.PL INSTALLDIRS=vendor
%{__make} %{?_smp_mflags}

%check
%{__make} test

%install
%perl_make_install
%perl_process_packlist
%perl_gen_filelist

%clean
%{__rm} -rf %{buildroot}

%files -f %{name}.files
%defattr(644,root,root,755)
%doc ChangeLog README

%changelog
openSUSE Build Service is sponsored by