2007-01-15 23:30:16 +00:00
|
|
|
#
|
2011-11-18 11:38:41 +00:00
|
|
|
# spec file for package perl-DBD-CSV
|
2007-01-15 23:30:16 +00:00
|
|
|
#
|
2025-01-26 01:36:49 +00:00
|
|
|
# Copyright (c) 2025 SUSE LLC
|
2007-01-15 23:30:16 +00:00
|
|
|
#
|
2009-06-18 15:01:25 +00:00
|
|
|
# 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.
|
|
|
|
|
2018-11-08 15:34:08 +00:00
|
|
|
# Please submit bugfixes or comments via https://bugs.opensuse.org/
|
2007-01-15 23:30:16 +00:00
|
|
|
#
|
|
|
|
|
2011-11-18 11:38:41 +00:00
|
|
|
|
2021-02-11 11:28:17 +00:00
|
|
|
%define cpan_name DBD-CSV
|
2008-07-31 23:20:02 +00:00
|
|
|
Name: perl-DBD-CSV
|
2025-01-26 01:36:49 +00:00
|
|
|
Version: 0.620.0
|
2012-05-14 05:59:33 +00:00
|
|
|
Release: 0
|
2025-01-26 01:36:49 +00:00
|
|
|
# 0.62 -> normalize -> 0.620.0
|
|
|
|
%define cpan_version 0.62
|
2018-04-04 10:14:05 +00:00
|
|
|
License: Artistic-1.0 OR GPL-1.0-or-later
|
2023-01-31 13:54:38 +00:00
|
|
|
Summary: DBI driver for CSV files
|
2020-07-28 13:39:55 +00:00
|
|
|
URL: https://metacpan.org/release/%{cpan_name}
|
2025-01-26 01:36:49 +00:00
|
|
|
Source0: https://cpan.metacpan.org/authors/id/H/HM/HMBRAND/%{cpan_name}-%{cpan_version}.tgz
|
2015-04-17 09:22:39 +00:00
|
|
|
Source1: cpanspec.yml
|
2025-08-12 18:13:18 +02:00
|
|
|
Source100: README.md
|
2010-07-20 18:37:52 +00:00
|
|
|
BuildArch: noarch
|
2010-04-05 16:48:21 +00:00
|
|
|
BuildRequires: perl
|
|
|
|
BuildRequires: perl-macros
|
2013-07-27 12:13:09 +00:00
|
|
|
BuildRequires: perl(DBD::File) >= 0.42
|
|
|
|
BuildRequires: perl(DBI) >= 1.628
|
|
|
|
BuildRequires: perl(SQL::Statement) >= 1.405
|
2022-01-17 13:47:09 +00:00
|
|
|
BuildRequires: perl(Test::More) >= 0.90
|
2013-07-27 12:13:09 +00:00
|
|
|
BuildRequires: perl(Text::CSV_XS) >= 1.01
|
|
|
|
Requires: perl(DBD::File) >= 0.42
|
|
|
|
Requires: perl(DBI) >= 1.628
|
|
|
|
Requires: perl(SQL::Statement) >= 1.405
|
2011-11-18 18:38:16 +00:00
|
|
|
Requires: perl(Test::More) >= 0.9
|
2013-07-27 12:13:09 +00:00
|
|
|
Requires: perl(Text::CSV_XS) >= 1.01
|
2025-01-26 01:36:49 +00:00
|
|
|
Provides: perl(DBD::CSV) = %{version}
|
|
|
|
%undefine __perllib_provides
|
2015-04-17 09:22:39 +00:00
|
|
|
Recommends: perl(DBD::File) >= 0.44
|
2020-07-28 13:39:55 +00:00
|
|
|
Recommends: perl(DBI) >= 1.643
|
2020-12-11 09:16:12 +00:00
|
|
|
Recommends: perl(SQL::Statement) >= 1.414
|
2025-01-26 01:36:49 +00:00
|
|
|
Recommends: perl(Text::CSV_XS) >= 1.590
|
2011-03-31 09:28:48 +00:00
|
|
|
%{perl_requires}
|
2007-01-15 23:30:16 +00:00
|
|
|
|
|
|
|
%description
|
2010-07-20 18:37:52 +00:00
|
|
|
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.
|
2007-01-15 23:30:16 +00:00
|
|
|
|
2017-10-08 08:14:42 +00:00
|
|
|
See DBI for details on DBI, SQL::Statement for details on SQL::Statement
|
|
|
|
and DBD::File for details on the base class DBD::File.
|
2011-03-31 09:28:48 +00:00
|
|
|
|
2007-01-15 23:30:16 +00:00
|
|
|
%prep
|
2025-01-26 01:36:49 +00:00
|
|
|
%autosetup -n %{cpan_name}-%{cpan_version} -p1
|
|
|
|
|
|
|
|
find . -type f ! -path "*/t/*" ! -name "*.pl" ! -path "*/bin/*" ! -path "*/script/*" ! -path "*/scripts/*" ! -name "configure" -print0 | xargs -0 chmod 644
|
2007-01-15 23:30:16 +00:00
|
|
|
|
|
|
|
%build
|
2020-07-28 13:39:55 +00:00
|
|
|
perl Makefile.PL INSTALLDIRS=vendor
|
2021-02-11 11:28:17 +00:00
|
|
|
%make_build
|
2008-07-31 23:20:02 +00:00
|
|
|
|
|
|
|
%check
|
2020-07-28 13:39:55 +00:00
|
|
|
make test
|
2007-01-15 23:30:16 +00:00
|
|
|
|
|
|
|
%install
|
2010-04-05 16:48:21 +00:00
|
|
|
%perl_make_install
|
2011-03-31 09:28:48 +00:00
|
|
|
%perl_process_packlist
|
2010-04-05 16:48:21 +00:00
|
|
|
%perl_gen_filelist
|
2007-01-15 23:30:16 +00:00
|
|
|
|
2010-04-05 16:48:21 +00:00
|
|
|
%files -f %{name}.files
|
2025-01-26 01:36:49 +00:00
|
|
|
%doc ChangeLog CONTRIBUTING.md examples README SECURITY.md
|
2007-01-15 23:30:16 +00:00
|
|
|
|
2008-07-31 23:20:02 +00:00
|
|
|
%changelog
|