Copy from devel:languages:perl/perl-Text-CSV_XS based on submit request 43329 from user computersalat OBS-URL: https://build.opensuse.org/request/show/43329 OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/perl-Text-CSV_XS?expand=0&rev=13
87 lines
2.8 KiB
RPMSpec
87 lines
2.8 KiB
RPMSpec
#
|
|
# 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
|
|
BuildRequires: perl
|
|
%if 0%{?suse_version} < 1120
|
|
BuildRequires: perl-macros
|
|
%endif
|
|
BuildRequires: perl(Test::Pod) >= 1.00
|
|
BuildRequires: perl(Test::Pod::Coverage)
|
|
Requires: perl = %{perl_version}
|
|
|
|
%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 <alan@mfgrtl.com> 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 <joe@ispsoft.de> 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 <h.m.brand@xs4all.nl> 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
|