%define upstream_name Text-CSV %define upstream_version 1.21 Name: perl-%{upstream_name} Version: %perl_convert_version %{upstream_version} Release: %mkrel 1 Summary: Manipulate comma-separated value strings License: GPL+ or Artistic Group: Development/Perl Url: http://search.cpan.org/dist/%{upstream_name} Source0: http://www.cpan.org/modules/by-module/Text/%{upstream_name}-%{upstream_version}.tar.gz BuildRequires: perl(IO::Handle) BuildRequires: perl(Test::Harness) BuildRequires: perl(Test::More) BuildArch: noarch %description Text::CSV provides facilities for the composition and decomposition of comma-separated values using the Text::CSV_XS manpage or its pure Perl version. An instance of the Text::CSV 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. %prep %setup -q -n %{upstream_name}-%{upstream_version} %build %{__perl} Makefile.PL INSTALLDIRS=vendor %make %check make test %install rm -rf %buildroot %makeinstall_std %clean rm -rf %buildroot %files %defattr(-,root,root) %doc Changes README %{_mandir}/man3/* %perl_vendorlib/* %changelog * Tue Jan 18 2011 jquelin <jquelin> 1.210.0-1.mga1 + Revision: 22924 - cleaning spec file - imported package perl-Text-CSV