# # spec file for package perl-Text-CSV_XS (Version 0.73) # # Copyright (c) 2010 SUSE LINUX Products GmbH, Nuernberg, Germany. # # All modifications and additions to the file contributed by third parties # remain the property of their copyright owners, unless otherwise agreed # upon. The license for this file, and modifications and additions to the # file, is the same license as for the pristine package itself (unless the # license for the pristine package is not an Open Source License, in which # case the license is the MIT License). An "Open Source License" is a # license that conforms to the Open Source Definition (Version 1.9) # published by the Open Source Initiative. # Please submit bugfixes or comments via http://bugs.opensuse.org/ # # norootforbuild Name: perl-Text-CSV_XS %define cpan_name %( echo %{name} | %{__sed} -e 's,perl-,,' ) Summary: Comma-separated values manipulation routines Version: 0.73 Release: 1 License: Artistic License .. Group: Development/Libraries/Perl Url: http://search.cpan.org/dist/Text-CSV_XS Source: %{cpan_name}-%{version}.tar.bz2 BuildRoot: %{_tmppath}/%{name}-%{version}-build %{perl_requires} BuildRequires: perl BuildRequires: perl-macros BuildRequires: perl(Test::Pod) >= 1.00 BuildRequires: perl(Test::Pod::Coverage) %description Text::CSV_XS provides facilities for the composition and decomposition of comma-separated values. An instance of the Text::CSV_XS class can combine fields into a CSV string and parse a CSV string into fields. The module accepts either strings or files as input and can utilize any user-specified characters as delimiters, separators, and escapes so it is perhaps better called ASV (anything separated values) rather than just CSV. Authors: Alan Citterman wrote the original Perl module. Please don't send mail concerning Text::CSV_XS to Alan, as he's not involved in the C part which is now the main part of the module. Jochen Wiedmann rewrote the encoding and decoding in C by implementing a simple finite-state machine and added the variable quote, escape and separator characters, the binary mode and the print and getline methods. See ChangeLog releases 0.10 through 0.23. H.Merijn Brand cleaned up the code, added the field flags methods, wrote the major part of the test suite, completed the documentation, fixed some RT bugs and added all the allow flags. See ChangeLog releases 0.25 and on. %prep %setup -q -n %{cpan_name}-%{version} %build perl Makefile.PL %{__make} %{?jobs:-j%jobs} %check %{__make} test %install %perl_make_install %perl_process_packlist %perl_gen_filelist %clean %{__rm} -rf %{buildroot} %files -f %{name}.files %defattr(-, root, root) %doc ChangeLog README %changelog