[perl-Text-CSV_XS] Update to 1.12

Paul Howarth pghmcfc at fedoraproject.org
Sun Nov 16 20:13:34 UTC 2014


commit ac34a3f59a143f968082827268ae1409ec96032c
Author: Paul Howarth <paul at city-fan.org>
Date:   Sun Nov 16 20:12:57 2014 +0000

    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

 .gitignore                  |   37 +------------------------------------
 Text-CSV_XS-1.12-utf8.patch |   11 +++++++++++
 perl-Text-CSV_XS.spec       |   33 ++++++++++++++++++++++++++-------
 sources                     |    2 +-
 4 files changed, 39 insertions(+), 44 deletions(-)
---
diff --git a/.gitignore b/.gitignore
index acee4b2..cf21524 100644
--- a/.gitignore
+++ b/.gitignore
@@ -1,36 +1 @@
-Text-CSV_XS-0.72.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
+/Text-CSV_XS-[0-9.a]*.tgz
diff --git a/Text-CSV_XS-1.12-utf8.patch b/Text-CSV_XS-1.12-utf8.patch
new file mode 100644
index 0000000..7d63c4d
--- /dev/null
+++ b/Text-CSV_XS-1.12-utf8.patch
@@ -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
diff --git a/perl-Text-CSV_XS.spec b/perl-Text-CSV_XS.spec
index a63adf1..9c697de 100644
--- a/perl-Text-CSV_XS.spec
+++ b/perl-Text-CSV_XS.spec
@@ -1,11 +1,12 @@
 Name:           perl-Text-CSV_XS
-Version:        1.11
-Release:        2%{?dist}
+Version:        1.12
+Release:        1%{?dist}
 Summary:        Comma-separated values manipulation routines
 Group:          Development/Libraries
 License:        GPL+ or Artistic
 URL:            http://search.cpan.org/dist/Text-CSV_XS/
 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(ExtUtils::MakeMaker) >= 6.76
 BuildRequires:  perl(strict)
@@ -40,8 +41,12 @@ fields into a CSV string and parse a CSV string into fields.
 
 %prep
 %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/*
+
 # Upstream does this on purpose (2011-03-23):
 # "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
@@ -49,13 +54,13 @@ chmod -c a-x examples/*
 #find . -type f -exec sed -i '1s/pro/usr/' {} \;
 
 %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}
 
 %install
-make pure_install DESTDIR=%{buildroot}
+make install DESTDIR=%{buildroot}
 find %{buildroot} -type f -name '*.bs' -empty -exec rm -f {} +
-chmod -R u+w %{buildroot}/*
+%{_fixperms} %{buildroot}
 
 %check
 make test %{?_smp_mflags}
@@ -64,9 +69,23 @@ make test %{?_smp_mflags}
 %doc ChangeLog README examples/
 %{perl_vendorarch}/Text/
 %{perl_vendorarch}/auto/Text/
-%{_mandir}/man3/*.3pm*
+%{_mandir}/man3/Text::CSV_XS.3*
 
 %changelog
+* Sun Nov 16 2014 Paul Howarth <paul at 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 at redhat.com> - 1.11-2
 - Perl 5.20 rebuild
 
diff --git a/sources b/sources
index b69d0bc..9b9e988 100644
--- a/sources
+++ b/sources
@@ -1 +1 @@
-2c8eeee7ce5ef57e8290c18edcc0ad3e  Text-CSV_XS-1.11.tgz
+b91f2d806054b68c2a29d3da5821fe87  Text-CSV_XS-1.12.tgz


More information about the scm-commits mailing list