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

#
# spec file for package perl-DBD-CSV (Version 0.30)
#
# 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/
#

# norootforbuild

%bcond_with test

Name:           perl-DBD-CSV
%define cpan_name DBD-CSV
Summary:        DBI driver for CSV files
Version:        0.30
Release:        2
License:        GPL+ or Artistic
Group:          Development/Libraries/Perl
Url:            http://search.cpan.org/dist/DBD-CSV/
#Source:         http://www.cpan.org/modules/by-module/DBD/DBD-CSV-%{version}.tgz
Source:         %{cpan_name}-%{version}.tar.bz2
BuildArch:      noarch
BuildRoot:      %{_tmppath}/%{name}-%{version}-build
%{perl_requires}
BuildRequires:  perl
BuildRequires:  perl-macros
%if %{with test}
BuildRequires:  perl(Test::Pod) >= 1.00
BuildRequires:  perl(Test::Pod::Coverage)
%endif
BuildRequires:  perl(Config)
BuildRequires:  perl(Cwd)
BuildRequires:  perl(DBD::File) >= 0.38
BuildRequires:  perl(DBI) >= 1.611
BuildRequires:  perl(SQL::Statement) >= 1.25
BuildRequires:  perl(Text::CSV_XS) >= 0.71
Requires:       perl(DBD::File) >= 0.38
Requires:       perl(DBI) >= 1.611
Requires:       perl(SQL::Statement) >= 1.25
Requires:       perl(Text::CSV_XS) >= 0.71

%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.

Authors:
--------
    Jochen Wiedmann<joe@ispsoft.de>
    Jeff Zucker <jeff@vpservices.com>

%prep
%setup -q -n %{cpan_name}-%{version}
# rpmlint spurious-executable-perm
find . -type f -exec chmod a-x '{}' \;

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

%check
%{__make} test

%install
%perl_make_install
# do not perl_process_packlist (noarch)
# remove .packlist file
%{__rm} -rf $RPM_BUILD_ROOT%perl_vendorarch
# remove perllocal.pod file
%{__rm} -rf $RPM_BUILD_ROOT%perl_archlib
%perl_gen_filelist

%clean
%{__rm} -rf $RPM_BUILD_ROOT

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

%changelog
openSUSE Build Service is sponsored by