1 | Name: perl-DBD-CSV
|
---|
2 | Version: 0.53
|
---|
3 | Release: 1%{?dist}
|
---|
4 | Vendor: bww bitwise works GmbH
|
---|
5 | Summary: DBI driver for CSV files
|
---|
6 | License: GPL+ or Artistic
|
---|
7 | URL: https://metacpan.org/release/DBD-CSV
|
---|
8 | Source0: https://cpan.metacpan.org/authors/id/H/HM/HMBRAND/DBD-CSV-%{version}.tgz
|
---|
9 | BuildArch: noarch
|
---|
10 | # Module Build
|
---|
11 | BuildRequires: coreutils
|
---|
12 | BuildRequires: make
|
---|
13 | BuildRequires: perl-generators
|
---|
14 | #BuildRequires: perl-interpreter
|
---|
15 | BuildRequires: perl(ExtUtils::MakeMaker) >= 6.63
|
---|
16 | BuildRequires: perl(File::Spec)
|
---|
17 | BuildRequires: perl(lib)
|
---|
18 | # Module Runtime
|
---|
19 | # The DBI and SQL::Statement are needed per DBD::CVS POD
|
---|
20 | BuildRequires: perl(Carp)
|
---|
21 | BuildRequires: perl(DBD::File) >= 0.42
|
---|
22 | BuildRequires: perl(DBI) >= 1.628
|
---|
23 | BuildRequires: perl(DynaLoader)
|
---|
24 | BuildRequires: perl(Exporter)
|
---|
25 | BuildRequires: perl(IO::File)
|
---|
26 | BuildRequires: perl(SQL::Statement) >= 1.405
|
---|
27 | BuildRequires: perl(strict)
|
---|
28 | BuildRequires: perl(Text::CSV_XS) >= 1.01
|
---|
29 | BuildRequires: perl(vars)
|
---|
30 | BuildRequires: perl(warnings)
|
---|
31 | # Test Suite
|
---|
32 | #BuildRequires: perl(charnames)
|
---|
33 | #BuildRequires: perl(Cwd)
|
---|
34 | #BuildRequires: perl(Encode)
|
---|
35 | #BuildRequires: perl(Test::More) >= 0.90
|
---|
36 | # Dependencies
|
---|
37 | Requires: perl(:MODULE_COMPAT_%(eval "$(perl -V:version)"; echo $version))
|
---|
38 | Requires: perl(DBD::File) >= 0.42
|
---|
39 | Requires: perl(DBI) >= 1.628
|
---|
40 | Requires: perl(Exporter)
|
---|
41 | Requires: perl(SQL::Statement) >= 1.405
|
---|
42 | Requires: perl(Text::CSV_XS) >= 1.01
|
---|
43 |
|
---|
44 | %global __requires_exclude %{?__requires_exclude:__requires_exclude|}^perl\\(DBD::File\\)$
|
---|
45 | %global __requires_exclude %__requires_exclude|^perl\\(Text::CSV_XS\\)$
|
---|
46 |
|
---|
47 | %description
|
---|
48 | The DBD::CSV module is yet another driver for the DBI (Database
|
---|
49 | independent interface for Perl). This one is based on the SQL
|
---|
50 | "engine" SQL::Statement and the abstract DBI driver DBD::File
|
---|
51 | and implements access to so-called CSV files (Comma separated
|
---|
52 | values). Such files are mostly used for exporting MS Access and
|
---|
53 | MS Excel data.
|
---|
54 |
|
---|
55 | %prep
|
---|
56 | %setup -q -n DBD-CSV-%{version}
|
---|
57 | chmod -c a-x ChangeLog README lib/DBD/*.pm lib/Bundle/DBD/*.pm
|
---|
58 |
|
---|
59 | %build
|
---|
60 | perl Makefile.PL INSTALLDIRS=vendor NO_PACKLIST=1 NO_PERLLOCAL=1
|
---|
61 | make %{?_smp_mflags}
|
---|
62 | make manifypods
|
---|
63 |
|
---|
64 | %install
|
---|
65 | make install DESTDIR=%{buildroot}
|
---|
66 | find $RPM_BUILD_ROOT -type f -name .packlist -exec rm -f {} ';'
|
---|
67 | find %{buildroot} -type f -name perllocal.pod -exec rm -f {} ';'
|
---|
68 | %{_fixperms} -c %{buildroot}
|
---|
69 |
|
---|
70 | %check
|
---|
71 | #make test
|
---|
72 |
|
---|
73 | %files
|
---|
74 | %doc ChangeLog CONTRIBUTING.md README
|
---|
75 | /@unixroot/usr/lib/perl5
|
---|
76 | %{perl_vendorlib}/Bundle/
|
---|
77 | %{perl_vendorlib}/DBD/
|
---|
78 | #%{_mandir}/man3/Bundle::DBD::CSV.3*
|
---|
79 | %{_mandir}/man3/*.3*
|
---|
80 |
|
---|
81 | %changelog
|
---|
82 | * Fri Sep 28 2018 Elbert Pol <elbert.pol@gmail.com> 0.53-1
|
---|
83 | - First OS/2 rpm release
|
---|