[perl-Text-CSV_XS/el6: 10/10] Update to 0.85
Paul Howarth
pghmcfc at fedoraproject.org
Mon Sep 19 14:14:56 UTC 2011
commit aa7a2a120d5578381efc5e7cc73696be794c02d7
Author: Paul Howarth <paul at city-fan.org>
Date: Mon Sep 19 15:12:08 2011 +0100
Update to 0.85
- New upstream release 0.85
- Improve date conversion in examples/csv2xls
- New option -D allows column selection for date conversions
- Added a note about EBCDIC data files
- Test suite is now safe for parallel test (prove --shuffle -j6)
- Spelling fixes
- Real eol support for parsing streams (beyond \n, \r and \r\n)
- Clarify doc for always_quote to not quote undef fields
- Clarify UTF8 process for print () and combine ()
- Fixed undefinedness of $\ in print (CPAN RT#61880)
- Windows doesn't support STDERR redirection as used in t/80_diag
- Internals now use warn() instead of (void)fprintf (stderr, ...)
- The test in t/80_diag now passes on Windows
- Better parsing for eol = \r and set as such (CPAN RT#61525)
- Workaround for AIX cpp bug (CPAN RT#62388)
- Version 0.77 broke MacOS exported CSV files with only \r
- Use correct type for STRLEN (HP-UX/PA-RISC/32)
- More code coverage
- EOF unreliable when line-end missing at EOF
- Implement getline_all() and getaline_hr_all()
- Fixed another parsing issue with eol = \r (CPAN RT#61525)
- Add is_missing ()
- Doc overhaul
- Fix build on OpenVMS (CPAN RT#65654)
- Fix SetDiag () leak (CPAN RT#66453)
- Documentation fix (CPAN RT#66905)
- Documentation overhaul (pod links)
- Fix spurious auto_diag warning (CPAN RT#69673)
- Tested with 50 versions of perl, including 1.15.1
- NAME / DISTNAME in Makefile.PL
- More cross-checks for META data
- Fix shellbangs in example scripts
- Comment fixes done in %prep
- Use macros in a consistent and approved manner
.gitignore | 2 +-
perl-Text-CSV_XS.spec | 108 ++++++++++++++++++++++++++++++++-----------------
sources | 2 +-
3 files changed, 73 insertions(+), 39 deletions(-)
---
diff --git a/.gitignore b/.gitignore
index a9b04d3..617005b 100644
--- a/.gitignore
+++ b/.gitignore
@@ -1 +1 @@
-Text-CSV_XS-0.69.tgz
+/Text-CSV_XS-[0-9.]*.tgz
diff --git a/perl-Text-CSV_XS.spec b/perl-Text-CSV_XS.spec
index 8231669..f00f622 100644
--- a/perl-Text-CSV_XS.spec
+++ b/perl-Text-CSV_XS.spec
@@ -1,67 +1,101 @@
-Name: perl-Text-CSV_XS
-Version: 0.72
-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
-BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
-
-BuildRequires: perl(Test::Pod)
-BuildRequires: perl(Test::Pod::Coverage)
-BuildRequires: perl(ExtUtils::MakeMaker)
-BuildRequires: perl(IO::Handle)
-BuildRequires: perl(Test::Harness)
-BuildRequires: perl(Test::More)
-BuildRequires: perl(Tie::Scalar)
-Requires: perl(:MODULE_COMPAT_%(eval "`%{__perl} -V:version`"; echo $version))
-
+Name: perl-Text-CSV_XS
+Version: 0.85
+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://search.cpan.org/CPAN/authors/id/H/HM/HMBRAND/Text-CSV_XS-%{version}.tgz
+BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(id -nu)
+BuildRequires: perl(ExtUtils::MakeMaker)
+BuildRequires: perl(IO::Handle)
+BuildRequires: perl(Test::Harness)
+BuildRequires: perl(Test::More)
+BuildRequires: perl(Test::Pod)
+BuildRequires: perl(Test::Pod::Coverage)
+BuildRequires: perl(Tie::Scalar)
+Requires: perl(:MODULE_COMPAT_%(eval "`perl -V:version`"; echo $version))
+
+# Don't "provide" private perl objects
%{?perl_default_filter}
%description
Text::CSV provides facilities for the composition and decomposition of
-comma-separated values. An instance of the Text::CSV class can combine
+comma-separated values. An instance of the Text::CSV class can combine
fields into a CSV string and parse a CSV string into fields.
-
%prep
%setup -q -n Text-CSV_XS-%{version}
-chmod -c a-x examples/*
+# Fix perl location in example scripts
+perl -pi -e 's|^#!/pro/bin/perl|#!/usr/bin/perl|' \
+ examples/{csv-check,parser-xs.pl,csvdiff,csv2xls}
+
+# Turn off exec bits in examples to avoid a multitude of docfile dependencies
+chmod -c a-x examples/*
%build
-%{__perl} Makefile.PL INSTALLDIRS=vendor OPTIMIZE="$RPM_OPT_FLAGS"
+perl Makefile.PL INSTALLDIRS=vendor OPTIMIZE="%{optflags}"
make %{?_smp_mflags}
-
%install
-rm -rf $RPM_BUILD_ROOT
-make pure_install DESTDIR=$RPM_BUILD_ROOT
-find $RPM_BUILD_ROOT -type f -name .packlist -exec rm -f {} ';'
-find $RPM_BUILD_ROOT -type f -name '*.bs' -empty -exec rm -f {} ';'
-find $RPM_BUILD_ROOT -depth -type d -exec rmdir {} 2>/dev/null ';'
-chmod -R u+w $RPM_BUILD_ROOT/*
-
+rm -rf %{buildroot}
+make pure_install DESTDIR=%{buildroot}
+find %{buildroot} -type f -name .packlist -exec rm -f {} ';'
+find %{buildroot} -type f -name '*.bs' -empty -exec rm -f {} ';'
+find %{buildroot} -depth -type d -exec rmdir {} ';' 2>/dev/null
+chmod -R u+w %{buildroot}
%check
make test
-
%clean
-rm -rf $RPM_BUILD_ROOT
-
+rm -rf %{buildroot}
%files
%defattr(-,root,root,-)
%doc ChangeLog README examples/
%{perl_vendorarch}/Text/
%{perl_vendorarch}/auto/Text/
-%{_mandir}/man3/*.3pm*
-
+%{_mandir}/man3/Text::CSV_XS.3pm*
%changelog
+* Mon Sep 19 2011 Paul Howarth <paul at city-fan.org> - 0.85-1
+- Update to 0.85
+ - Improve date conversion in examples/csv2xls
+ - New option -D allows column selection for date conversions
+ - Added a note about EBCDIC data files
+ - Test suite is now safe for parallel test (prove --shuffle -j6)
+ - Spelling fixes
+ - Real eol support for parsing streams (beyond \n, \r and \r\n)
+ - Clarify doc for always_quote to not quote undef fields
+ - Clarify UTF8 process for print () and combine ()
+ - Fixed undefinedness of $\ in print (CPAN RT#61880)
+ - Windows doesn't support STDERR redirection as used in t/80_diag
+ - Internals now use warn() instead of (void)fprintf (stderr, ...)
+ - The test in t/80_diag now passes on Windows
+ - Better parsing for eol = \r and set as such (CPAN RT#61525)
+ - Workaround for AIX cpp bug (CPAN RT#62388)
+ - Version 0.77 broke MacOS exported CSV files with only \r
+ - Use correct type for STRLEN (HP-UX/PA-RISC/32)
+ - More code coverage
+ - EOF unreliable when line-end missing at EOF
+ - Implement getline_all() and getaline_hr_all()
+ - Fixed another parsing issue with eol = \r (CPAN RT#61525)
+ - Add is_missing ()
+ - Doc overhaul
+ - Fix build on OpenVMS (CPAN RT#65654)
+ - Fix SetDiag () leak (CPAN RT#66453)
+ - Documentation fix (CPAN RT#66905)
+ - Documentation overhaul (pod links)
+ - Fix spurious auto_diag warning (CPAN RT#69673)
+ - Tested with 50 versions of perl, including 1.15.1
+ - NAME / DISTNAME in Makefile.PL
+ - More cross-checks for META data
+- Fix shellbangs in example scripts
+- Comment fixes done in %%prep
+- Use macros in a consistent and approved manner
+
* Wed Mar 17 2010 Chris Weyl <cweyl at alumni.drew.edu> 0.72-1
- PERL_INSTALL_ROOT => DESTDIR, add perl_default_filter (XS module)
- auto-update to 0.72 (by cpan-spec-update 0.01) (DBIx::Class needed a newer
diff --git a/sources b/sources
index 01c6437..3b6f10b 100644
--- a/sources
+++ b/sources
@@ -1 +1 @@
-1d51e67d11d22e31d2c8201a07321d86 Text-CSV_XS-0.72.tgz
+876e4017ef95eaa5740730fef14e976f Text-CSV_XS-0.85.tgz
More information about the perl-devel
mailing list