1 | Name: perl-Text-CSV_XS
|
---|
2 | Version: 1.37
|
---|
3 | Release: 1%{?dist}
|
---|
4 | Vendor: bww bitwise works GmbH
|
---|
5 | Summary: Comma-separated values manipulation routines
|
---|
6 | License: GPL+ or Artistic
|
---|
7 | URL: https://metacpan.org/release/Text-CSV_XS
|
---|
8 | Source0: https://cpan.metacpan.org/modules/by-module/Text/Text-CSV_XS-%{version}.tgz
|
---|
9 | # Build:
|
---|
10 | BuildRequires: coreutils
|
---|
11 | BuildRequires: findutils
|
---|
12 | BuildRequires: gcc
|
---|
13 | BuildRequires: make
|
---|
14 | BuildRequires: perl-devel
|
---|
15 | BuildRequires: perl-generators
|
---|
16 | #BuildRequires: perl-interpreter
|
---|
17 | BuildRequires: perl(Config::Tiny)
|
---|
18 | BuildRequires: perl(ExtUtils::MakeMaker) >= 6.63
|
---|
19 | # Run-time:
|
---|
20 | BuildRequires: perl(Carp)
|
---|
21 | # Specific version ⥠2.92 for Encode is recommended but not required
|
---|
22 | BuildRequires: perl(Encode)
|
---|
23 | BuildRequires: perl(Exporter)
|
---|
24 | BuildRequires: perl(IO::Handle)
|
---|
25 | BuildRequires: perl(strict)
|
---|
26 | BuildRequires: perl(UNIVERSAL::isa)
|
---|
27 | BuildRequires: perl(vars)
|
---|
28 | BuildRequires: perl(warnings)
|
---|
29 | BuildRequires: perl(XSLoader)
|
---|
30 | # Tests:
|
---|
31 | #BuildRequires: perl(base)
|
---|
32 | #BuildRequires: perl(charnames)
|
---|
33 | #BuildRequires: perl(Config)
|
---|
34 | #BuildRequires: perl(Test::More)
|
---|
35 | #BuildRequires: perl(Tie::Scalar)
|
---|
36 | # Dependencies
|
---|
37 | Requires: perl(:MODULE_COMPAT_%(eval "$(perl -V:version)"; echo $version))
|
---|
38 | # Specific version ⥠2.92 for Encode is recommended but not required
|
---|
39 | Requires: perl(Encode)
|
---|
40 | # IO::Handle is loaded by XS code
|
---|
41 | Requires: perl(IO::Handle)
|
---|
42 | Requires: perl(UNIVERSAL::isa)
|
---|
43 |
|
---|
44 | %{?perl_default_filter}
|
---|
45 |
|
---|
46 | %description
|
---|
47 | Text::CSV provides facilities for the composition and decomposition of
|
---|
48 | comma-separated values. An instance of the Text::CSV class can combine
|
---|
49 | fields into a CSV string and parse a CSV string into fields.
|
---|
50 |
|
---|
51 | %prep
|
---|
52 | %setup -q -n Text-CSV_XS-%{version}
|
---|
53 |
|
---|
54 | chmod -c a-x examples/*
|
---|
55 |
|
---|
56 | # Upstream does this on purpose (2011-03-23):
|
---|
57 | # "As Text::CSV_XS is so low-level, most of these files are actually *examples*
|
---|
58 | # and not ready-to-run out-of-the-box scripts that work as expected, though
|
---|
59 | # I must admit that some have evolved into being like that."
|
---|
60 | #find . -type f -exec sed -i '1s/pro/usr/' {} \;
|
---|
61 |
|
---|
62 | %build
|
---|
63 | perl Makefile.PL \
|
---|
64 | INSTALLDIRS=vendor \
|
---|
65 | OPTIMIZE="%{optflags}" \
|
---|
66 | NO_PACKLIST=true \
|
---|
67 | NO_PERLLOCAL=true
|
---|
68 | make %{?_smp_mflags}
|
---|
69 | make manifypods
|
---|
70 |
|
---|
71 | %install
|
---|
72 | make install DESTDIR=%{buildroot}
|
---|
73 | find %{buildroot} -type f -name '*.bs' -empty -delete
|
---|
74 | %{_fixperms} -c %{buildroot}
|
---|
75 |
|
---|
76 | %check
|
---|
77 | #make %{?_smp_mflags} test
|
---|
78 |
|
---|
79 | %files
|
---|
80 | %doc ChangeLog CONTRIBUTING.md README examples/
|
---|
81 | /@unixroot/usr/lib/perl5/
|
---|
82 | %{perl_vendorarch}/Text/
|
---|
83 | %{perl_vendorarch}/auto/Text/
|
---|
84 | %{_mandir}/man3/*.3*
|
---|
85 |
|
---|
86 | %changelog
|
---|
87 | * Fri Sep 28 2018 Elbert Pol <elbert.pol@gmail.com> 1.37-1
|
---|
88 | - First OS/2 rpm release
|
---|