Update to 1.12

- New upstyream release 1.12
  - Add field number to error_diag
  - Fixed non-IO parsing multi-byte EOL
  - Fixed a possible missed multi-byte EOL
  - Allow hashref for csv()'s headers attribute
  - Allow encoding on all output handles in csv()
  - Include doc changes as ticketed in the Text::CSV queue
  - Fix parallel testing issue
  - Allow csv as method call (not using the object)
  - Rename quote_null to escape_null
  - Give meaning to keep_meta_info on output
- Add patch to recode documentation as UTF8
epel9
Paul Howarth 10 years ago
parent c3f1082d75
commit ac34a3f59a

37
.gitignore vendored

@ -1,36 +1 @@
Text-CSV_XS-0.72.tgz /Text-CSV_XS-[0-9.a]*.tgz
/Text-CSV_XS-0.73.tgz
/Text-CSV_XS-0.74.tgz
/Text-CSV_XS-0.75.tgz
/Text-CSV_XS-0.76.tgz
/Text-CSV_XS-0.79.tgz
/Text-CSV_XS-0.80.tgz
/Text-CSV_XS-0.81.tgz
/Text-CSV_XS-0.82.tgz
/Text-CSV_XS-0.83a.tgz
/Text-CSV_XS-0.85.tgz
/Text-CSV_XS-0.86.tgz
/Text-CSV_XS-0.87.tgz
/Text-CSV_XS-0.88.tgz
/Text-CSV_XS-0.90.tgz
/Text-CSV_XS-0.91.tgz
/Text-CSV_XS-0.92.tgz
/Text-CSV_XS-0.93.tgz
/Text-CSV_XS-0.94.tgz
/Text-CSV_XS-0.95.tgz
/Text-CSV_XS-0.96.tgz
/Text-CSV_XS-0.97.tgz
/Text-CSV_XS-0.98.tgz
/Text-CSV_XS-0.99.tgz
/Text-CSV_XS-1.00.tgz
/Text-CSV_XS-1.01.tgz
/Text-CSV_XS-1.02.tgz
/Text-CSV_XS-1.03.tgz
/Text-CSV_XS-1.04.tgz
/Text-CSV_XS-1.05.tgz
/Text-CSV_XS-1.06.tgz
/Text-CSV_XS-1.07.tgz
/Text-CSV_XS-1.08.tgz
/Text-CSV_XS-1.09.tgz
/Text-CSV_XS-1.10.tgz
/Text-CSV_XS-1.11.tgz

@ -0,0 +1,11 @@
--- CSV_XS.pm
+++ CSV_XS.pm
@@ -1691,7 +1691,7 @@
quote_space => 0,
});
- my $row = $csv->parse (q{1,,"", ," ",f,"g","h""h",hëlp,"hélp"});
+ my $row = $csv->parse (q{1,,"", ," ",f,"g","h""h",hëlp,"hélp"});
$csv->print (*STDOUT, \@row);
# 1,,, , ,f,g,"h""h",h?lp,h?lp

@ -1,11 +1,12 @@
Name: perl-Text-CSV_XS Name: perl-Text-CSV_XS
Version: 1.11 Version: 1.12
Release: 2%{?dist} Release: 1%{?dist}
Summary: Comma-separated values manipulation routines Summary: Comma-separated values manipulation routines
Group: Development/Libraries Group: Development/Libraries
License: GPL+ or Artistic License: GPL+ or Artistic
URL: http://search.cpan.org/dist/Text-CSV_XS/ URL: http://search.cpan.org/dist/Text-CSV_XS/
Source0: http://www.cpan.org/authors/id/H/HM/HMBRAND/Text-CSV_XS-%{version}.tgz Source0: http://www.cpan.org/authors/id/H/HM/HMBRAND/Text-CSV_XS-%{version}.tgz
Patch0: Text-CSV_XS-1.12-utf8.patch
BuildRequires: perl BuildRequires: perl
BuildRequires: perl(ExtUtils::MakeMaker) >= 6.76 BuildRequires: perl(ExtUtils::MakeMaker) >= 6.76
BuildRequires: perl(strict) BuildRequires: perl(strict)
@ -40,8 +41,12 @@ fields into a CSV string and parse a CSV string into fields.
%prep %prep
%setup -q -n Text-CSV_XS-%{version} %setup -q -n Text-CSV_XS-%{version}
iconv -f latin1 -t utf8 ChangeLog > ChangeLog.utf8 && mv ChangeLog.utf8 ChangeLog
# Have documentation in UTF8 encoding
%patch0
chmod -c a-x examples/* chmod -c a-x examples/*
# Upstream does this on purpose (2011-03-23): # Upstream does this on purpose (2011-03-23):
# "As Text::CSV_XS is so low-level, most of these files are actually *examples* # "As Text::CSV_XS is so low-level, most of these files are actually *examples*
# and not ready-to-run out-of-the-box scripts that work as expected, though # and not ready-to-run out-of-the-box scripts that work as expected, though
@ -49,13 +54,13 @@ chmod -c a-x examples/*
#find . -type f -exec sed -i '1s/pro/usr/' {} \; #find . -type f -exec sed -i '1s/pro/usr/' {} \;
%build %build
perl Makefile.PL INSTALLDIRS=vendor OPTIMIZE="%{optflags}" NO_PACKLIST=true perl Makefile.PL INSTALLDIRS=vendor OPTIMIZE="%{optflags}" NO_PACKLIST=true NO_PERLLOCAL=true
make %{?_smp_mflags} make %{?_smp_mflags}
%install %install
make pure_install DESTDIR=%{buildroot} make install DESTDIR=%{buildroot}
find %{buildroot} -type f -name '*.bs' -empty -exec rm -f {} + find %{buildroot} -type f -name '*.bs' -empty -exec rm -f {} +
chmod -R u+w %{buildroot}/* %{_fixperms} %{buildroot}
%check %check
make test %{?_smp_mflags} make test %{?_smp_mflags}
@ -64,9 +69,23 @@ make test %{?_smp_mflags}
%doc ChangeLog README examples/ %doc ChangeLog README examples/
%{perl_vendorarch}/Text/ %{perl_vendorarch}/Text/
%{perl_vendorarch}/auto/Text/ %{perl_vendorarch}/auto/Text/
%{_mandir}/man3/*.3pm* %{_mandir}/man3/Text::CSV_XS.3*
%changelog %changelog
* Sun Nov 16 2014 Paul Howarth <paul@city-fan.org> - 1.12-1
- Update to 1.12:
- Add field number to error_diag
- Fixed non-IO parsing multi-byte EOL
- Fixed a possible missed multi-byte EOL
- Allow hashref for csv()'s headers attribute
- Allow encoding on all output handles in csv()
- Include doc changes as ticketed in the Text::CSV queue
- Fix parallel testing issue
- Allow csv as method call (not using the object)
- Rename quote_null to escape_null
- Give meaning to keep_meta_info on output
- Add patch to recode documentation as UTF8
* Wed Aug 27 2014 Jitka Plesnikova <jplesnik@redhat.com> - 1.11-2 * Wed Aug 27 2014 Jitka Plesnikova <jplesnik@redhat.com> - 1.11-2
- Perl 5.20 rebuild - Perl 5.20 rebuild

@ -1 +1 @@
2c8eeee7ce5ef57e8290c18edcc0ad3e Text-CSV_XS-1.11.tgz b91f2d806054b68c2a29d3da5821fe87 Text-CSV_XS-1.12.tgz

Loading…
Cancel
Save