2007-01-15 23:31:57 +00:00
|
|
|
#
|
2011-11-11 11:23:29 +00:00
|
|
|
# spec file for package perl-Text-CSV_XS
|
2007-01-15 23:31:57 +00:00
|
|
|
#
|
2011-03-31 13:23:18 +00:00
|
|
|
# Copyright (c) 2011 SUSE LINUX Products GmbH, Nuernberg, Germany.
|
2007-01-15 23:31:57 +00:00
|
|
|
#
|
2009-06-18 15:13:44 +00:00
|
|
|
# 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.
|
|
|
|
|
2007-07-16 16:18:04 +00:00
|
|
|
# Please submit bugfixes or comments via http://bugs.opensuse.org/
|
2007-01-15 23:31:57 +00:00
|
|
|
#
|
|
|
|
|
2011-11-11 11:23:29 +00:00
|
|
|
|
|
|
|
|
2007-07-16 16:18:04 +00:00
|
|
|
Name: perl-Text-CSV_XS
|
2011-11-29 20:50:00 +00:00
|
|
|
Version: 0.85
|
2009-08-10 21:00:06 +00:00
|
|
|
Release: 1
|
2011-03-31 08:52:47 +00:00
|
|
|
License: GPL+ or Artistic
|
|
|
|
%define cpan_name Text-CSV_XS
|
|
|
|
Summary: comma-separated values manipulation routines
|
|
|
|
Url: http://search.cpan.org/dist/Text-CSV_XS/
|
2010-01-09 10:51:41 +00:00
|
|
|
Group: Development/Libraries/Perl
|
2011-05-16 08:55:15 +00:00
|
|
|
Source: http://www.cpan.org/authors/id/H/HM/HMBRAND/%{cpan_name}-%{version}.tgz
|
2009-08-10 21:00:06 +00:00
|
|
|
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
2010-01-09 10:51:41 +00:00
|
|
|
BuildRequires: perl
|
|
|
|
BuildRequires: perl-macros
|
2011-03-31 08:52:47 +00:00
|
|
|
%{perl_requires}
|
2007-01-15 23:31:57 +00:00
|
|
|
|
|
|
|
%description
|
2009-08-10 21:00:06 +00:00
|
|
|
Text::CSV_XS provides facilities for the composition and decomposition of
|
|
|
|
comma-separated values. An instance of the Text::CSV_XS class can combine
|
2007-01-15 23:31:57 +00:00
|
|
|
fields into a CSV string and parse a CSV string into fields.
|
|
|
|
|
2009-08-10 21:00:06 +00:00
|
|
|
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.
|
2007-01-15 23:31:57 +00:00
|
|
|
|
|
|
|
%prep
|
2010-01-09 10:51:41 +00:00
|
|
|
%setup -q -n %{cpan_name}-%{version}
|
2011-05-16 08:55:15 +00:00
|
|
|
find . -type f -print0 | xargs -0 chmod 644
|
2007-01-15 23:31:57 +00:00
|
|
|
|
|
|
|
%build
|
2011-03-31 08:52:47 +00:00
|
|
|
%{__perl} Makefile.PL INSTALLDIRS=vendor OPTIMIZE="%{optflags}"
|
|
|
|
%{__make} %{?_smp_mflags}
|
2009-08-10 21:00:06 +00:00
|
|
|
|
|
|
|
%check
|
2010-01-09 10:51:41 +00:00
|
|
|
%{__make} test
|
2007-01-15 23:31:57 +00:00
|
|
|
|
|
|
|
%install
|
2009-08-10 21:00:06 +00:00
|
|
|
%perl_make_install
|
2007-01-15 23:31:57 +00:00
|
|
|
%perl_process_packlist
|
2010-01-09 10:51:41 +00:00
|
|
|
%perl_gen_filelist
|
2007-01-15 23:31:57 +00:00
|
|
|
|
|
|
|
%clean
|
2010-01-09 10:51:41 +00:00
|
|
|
%{__rm} -rf %{buildroot}
|
2007-01-15 23:31:57 +00:00
|
|
|
|
2011-03-31 08:52:47 +00:00
|
|
|
%files -f %{name}.files
|
2011-05-16 08:55:15 +00:00
|
|
|
%defattr(-,root,root,755)
|
|
|
|
%doc ChangeLog examples README
|
2007-01-15 23:31:57 +00:00
|
|
|
|
2007-07-16 16:18:04 +00:00
|
|
|
%changelog
|