File perl-Text-CSV_XS.spec of Package perl-Text-CSV_XS

#
# spec file for package perl-Text-CSV_XS (Version 0.41)
#
# Copyright (c) 2008 SUSE LINUX Products GmbH, Nuernberg, Germany.
# This file and all modifications and additions to the pristine
# package are under the same license as the package itself.
#
# Please submit bugfixes or comments via http://bugs.opensuse.org/
#

# norootforbuild


Name:           perl-Text-CSV_XS
Summary:        Perl Module Text::CSV
Version:        0.41
Release:        1
License:        GPL v2 or later
Group:          Development/Libraries/Perl
Source0:        Text-CSV_XS-%{version}.tgz
Patch:          Text-CSV_XS-%{version}.dif
Url:            http://www.cpan.org
BuildRoot:      %{_tmppath}/%{name}-%{version}-build
Obsoletes:      p_txtcsv
Provides:       p_txtcsv
Requires:       perl = %{perl_version}
AutoReqProv:    on

%description
ext::CSV provides facilities for the composition and decomposition of
comma-separated values.  An instance of the Text::CSV class can combine
fields into a CSV string and parse a CSV string into fields.



Authors:
--------
    Jochen Wiedmann <joe@ispsoft.de>

%prep
%setup -q -n Text-CSV_XS-%{version}
%patch

%build
CFLAGS="$RPM_OPT_FLAGS" perl Makefile.PL
make

%install
rm -rf $RPM_BUILD_ROOT
make DESTDIR=$RPM_BUILD_ROOT install_vendor
%perl_process_packlist

%clean
rm -rf $RPM_BUILD_ROOT

%files
%defattr(-, root, root)
%doc  README
%doc %{_mandir}/man?/*
%{perl_vendorarch}/Text
%{perl_vendorarch}/auto/Text
/var/adm/perl-modules/%{name}

%changelog
* Mon Apr 14 2008 ug@suse.de
- version 0.41
- error_diag () subclassable
- typo in bind_columns () docs
- examples/csv2xls now uses getline ()
- better test for getline in t/75_hashref.t (makamata)
- document return value of getline () with bind_columns ()
- add perl version prereq to META.yml
- Implemented getline_hr () and column_names () RT 34474
  (suggestions accepted from Mark Stosberg)
- Corrected misspelled variable names in XS
- Functions are now =head2 type doc entries (Mark Stosberg)
- Make SetDiag() available to the perl level, so errors can
  be centralized and consistent
- Integrate the non-XS errors into XS
- Add t/75_hashref.t
- Testcase for error 2023 (Michael P Randall)
- Completely refactored the XS part of parse/getline, which
  is now up to 6%% faster. YMMV
- Completed bind_columns. On straight fetches now up to three
  times as fast as normal fetches (both using getline ())
* Fri Apr 04 2008 ug@suse.de
- version to 0.37
- Fix leak / make meta info available to getline () + tests
- Updated ppport.h
- auto-load IO::Handle when needed
- Diagnostics for failed new ()
- New 'blank_is_undef' option
- Fixed allow_whitespace issue, revealed by blank_is_undef
- Fixed parse error that passed for q{1, "bar",2} with escape_char +
- Extended XS coverage
- Removed error 2033
- Text-CSV_XS now under git
- Added $csv->error_diag () to SYNOPSIS
- Added need for diag when new () fails to TODO
- Fixed a sneaked-in defined or in examples/csv2xls
- Plugged a 32byte memory leak in the cache code (valgrind++)
- Improved usage for examples/csv2xls (GetOpt::Long now does --help/-?)
- Extended examples/csv2xls to deal with Unicode (-u)
- Serious bug in Text::CSV_XS::NV () type setting, causing the
  resulting field to be truncated to IV
* Mon Jul 16 2007 ug@suse.de
- version to 0.29
  * Removed an unused 'use Data::Dumper'
  * Added $csv->eof () RT 27424
  * Two typo's in the doc's (Amsterdam.pm)
  * Modified examples/speed.pl to better show the diffs between versions
  * Cache attribute settings and regain speed of 0.23! anmd beyond
  Relative overall speeds (YMMV, use examples/speed.pl to check),
  the 1.0x versions are from Text::CSV_PP.
  0.23 0.25 0.26 0.27 0.28 0.29 1.00 1.02 1.05
  ==== ==== ==== ==== ==== ==== ==== ==== ====
  combine   1   62   61   61   60   58  100   14   14   14
  combine  10   41   41   41   42   42  100    6    6    6
  combine 100   35   35   36   36   36  100    5    5    5
  parse     1  100   92   87   90   81   96   19   19   17
  parse    10   95  100   86   97   94   94   15   16   14
  parse   100   90   95   84   94   92  100   16   16   14
  print    io   93   89   91   91   95  100    0    0    6
  getline  io   90   92   84   87   89  100    0    0   13
        ---- ---- ---- ---- ---- ---- ---- ---- ----
  average       75   75   71   74   73   98    9    9   11
  * Removed prototypes
  * Added a SPECIFICATION section to the pod
  * Safe caching of eol, and a warning in the docs
  * Rewrote t/20_file.t do do actual file IO instead of IO_Scalar fake
  * Small optimilisation for parse (juerd)
  * Added make target test_speed
  * Merged the items from CAVEAT to SPECIFICATION
  * Updated the TODO and Release Plan sections
  * Speed up internals by using references instead of copies (juerd)
  * Reworked error_input, which also had an undetected internal error
  * Added IO tests for lexical IO handles and perlio IO to/from scalars
  * IMPORTANT CHANGE: new () returns undef if it gets unsupported
  attributes. Until now, new ({ esc_char => "\\" }) was just
  silently ignored. Rejecting it and failing is better than
  continuing with false assumptions.
  * Added allow_loose_quotes  (see doc)
  * Added t/65_allow.t
  * Added allow_loose_escapes (see doc) RT 15076
  * More code cleanup in XS
  * Added allow_whitespace    (see doc)
  * checked with perlcritic (still works under 5.00504)
  so 3-arg open cannot be used (except in the docs)
  * 3-arg open in docs too
  * Added a lot to the TODO list
  * Some more info on using escape character (jZed)
  * Mention Text::CSV_PP in README
  * Added t/45_eol.t, eol tests
  * Added a section about embedded newlines in the pod
  * Allow \r as eol ($/) for parsing
  * More docs for eol
  * More eol = \r fixes, tfrayner's test case added to t/45_eol.t
  * Add $csv->allow_undef (1) suggestion in TODO
  Still have to find the best spot to document
  the difference between empty string and undef
  * Spell-checked the pod and fixed some typo's
  * Added t/70_rt.t
  - Regression         for RT 24386: \t doesn't work (WFM)
  - Regression and fix for RT 21530: getline () return at eof
  This one still passes under perl 5.00504
  - Regression         for RT 18703: Fails to use quote_char of '~'
  * Added t/55_combi.t for most combinations of always_quote,
  sep_char, quote_char, and escape_char
  * Added docs about sep_char not allowed to be either quote_char
  or escape_char
  * Both combine () and parse () now return FALSE id sep_char is
  equal to either quote_char or escape_char. Done in XS, as it
  was a slowdown of 10%% when done in perl.
  * Merijn got the maintainership
- code reformat and code cleanup
- renamed internal (Encode, Decode) to (Combine, Parse) to
  prevent misinterpretation with upcoming Unicode changes
  and possible name clashes
- added pod check (and fixed pod)
- added pod coverage and small additions to the pod.
  More to do in this area
- renamed test to fixate the sequence
- Added t/50_utf8.t
- tests now use Test::More
  . Makefile.PL requires Test::More
- checked proclaimed version compatibility
  . 5.9.x-64int     works @31159
  . 5.8.x-64int-dor works @31162
  . 5.8.0-dor       works
  . 5.6.2           works
  . 5.005.04        works
  . 5.004.05        fails
- 5.005 is now prerequisite
- Added missing info in docs for new ()
- Added meta_info () method and docs
- Added keep_meta_info in new ()
- Added t/15_flags.t
- Added test_cover make target
- Added test for error_input ()
- Added tests for fields () and meta_info () before parse ()
- Added tests for ->types () as method
- Added tests for deleting types (coverage now over 99%%)
- Added is_quoted (), is_binary () and tests
- Added COPYRIGHT section to pod
- Added the parse example from the pod to test.pl
- Added accessor methods for internals: quote_char () et all
- Added tests for the new accessor methods
- Added always_quote to the missing places in the doc and in new ()
- Changed the tests to use the accessors instead of the hash keys
  except for the ->{types} and ->{_types}
- Moved test.pl to examples/speed.pl
* Wed Jan 25 2006 mls@suse.de
- converted neededforbuild to BuildRequires
* Thu Sep 29 2005 dmueller@suse.de
- add norootforbuild
* Fri Aug 22 2003 mjancar@suse.cz
- require the perl version we build with
* Fri Jul 18 2003 nashif@suse.de
- use DESTDIR
- fixed filelist
* Tue Jul 01 2003 ro@suse.de
- use perl_process_packlist macro
* Fri Jun 13 2003 nashif@suse.de
- Fixed file list
* Mon Jul 08 2002 nashif@suse.de
- use mandir macro
* Tue Dec 11 2001 nashif@suse.de
- Update to version 0.23
* Wed Mar 07 2001 nashif@suse.de
- Update to version 0.22
* Wed Nov 08 2000 nashif@suse.de
- removed buiuld root path from packlist
* Tue Nov 07 2000 nashif@suse.de
- Changed to long package name
* Wed Oct 11 2000 nashif@suse.de
- Fixed man path
* Thu Aug 24 2000 nashif@suse.de
- Initial Release (0.20)
openSUSE Build Service is sponsored by