source: spec/trunk/SPECS/perl-Text-CSV_XS.spec@ 1566

Last change on this file since 1566 was 1496, checked in by tellie, 7 years ago

spec: perl-Text-CSV_XS: Release version 1.37-1.

File size: 2.6 KB
Line 
1Name: perl-Text-CSV_XS
2Version: 1.37
3Release: 1%{?dist}
4Vendor: bww bitwise works GmbH
5Summary: Comma-separated values manipulation routines
6License: GPL+ or Artistic
7URL: https://metacpan.org/release/Text-CSV_XS
8Source0: https://cpan.metacpan.org/modules/by-module/Text/Text-CSV_XS-%{version}.tgz
9# Build:
10BuildRequires: coreutils
11BuildRequires: findutils
12BuildRequires: gcc
13BuildRequires: make
14BuildRequires: perl-devel
15BuildRequires: perl-generators
16#BuildRequires: perl-interpreter
17BuildRequires: perl(Config::Tiny)
18BuildRequires: perl(ExtUtils::MakeMaker) >= 6.63
19# Run-time:
20BuildRequires: perl(Carp)
21# Specific version ≥ 2.92 for Encode is recommended but not required
22BuildRequires: perl(Encode)
23BuildRequires: perl(Exporter)
24BuildRequires: perl(IO::Handle)
25BuildRequires: perl(strict)
26BuildRequires: perl(UNIVERSAL::isa)
27BuildRequires: perl(vars)
28BuildRequires: perl(warnings)
29BuildRequires: 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
37Requires: perl(:MODULE_COMPAT_%(eval "$(perl -V:version)"; echo $version))
38# Specific version ≥ 2.92 for Encode is recommended but not required
39Requires: perl(Encode)
40# IO::Handle is loaded by XS code
41Requires: perl(IO::Handle)
42Requires: perl(UNIVERSAL::isa)
43
44%{?perl_default_filter}
45
46%description
47Text::CSV provides facilities for the composition and decomposition of
48comma-separated values. An instance of the Text::CSV class can combine
49fields into a CSV string and parse a CSV string into fields.
50
51%prep
52%setup -q -n Text-CSV_XS-%{version}
53
54chmod -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
63perl Makefile.PL \
64 INSTALLDIRS=vendor \
65 OPTIMIZE="%{optflags}" \
66 NO_PACKLIST=true \
67 NO_PERLLOCAL=true
68make %{?_smp_mflags}
69make manifypods
70
71%install
72make install DESTDIR=%{buildroot}
73find %{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
Note: See TracBrowser for help on using the repository browser.