Name: perl-Class-CSV
Version: 1.03
Release: 6%{?dist}
Summary: Class based CSV parser/writer
License: GPL+ or Artistic
Group: Development/Libraries
URL: http://search.cpan.org/dist/Class-CSV/
Source0: http://www.cpan.org/authors/id/D/DJ/DJR/Class-CSV-%{version}.tar.gz
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
BuildArch: noarch
BuildRequires: perl(Class::Accessor) >= 0.18
BuildRequires: perl(ExtUtils::MakeMaker)
BuildRequires: perl(Text::CSV_XS) >= 0.23
Requires: perl(Class::Accessor) >= 0.18
Requires: perl(:MODULE_COMPAT_%(eval "`%{__perl} -V:version`"; echo $version))
%description
This module can be used to create objects from CSV files, or to create CSV
files from objects. Text::CSV_XS is used for parsing and creating CSV file
lines, so any limitations in Text::CSV_XS will of course be inherant in
this module.
%prep
%setup -q -n Class-CSV-%{version}
%build
%{__perl} Makefile.PL INSTALLDIRS=vendor
make %{?_smp_mflags}
%install
rm -rf $RPM_BUILD_ROOT
make pure_install PERL_INSTALL_ROOT=$RPM_BUILD_ROOT
find $RPM_BUILD_ROOT -type f -name .packlist -exec rm -f {} \;
find $RPM_BUILD_ROOT -depth -type d -exec rmdir {} 2>/dev/null \;
%{_fixperms} $RPM_BUILD_ROOT/*
%check
make test
%clean
rm -rf $RPM_BUILD_ROOT
%files
%defattr(-,root,root,-)
%doc Changes README
%{perl_vendorlib}/*
%{_mandir}/man3/*
%changelog
* Mon Dec 7 2009 Stepan Kasal <skasal@redhat.com> - 1.03-6
- rebuild against perl 5.10.1
* Sat Jul 25 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.03-5
- Rebuilt for https://fedoraproject.org/wiki/Fedora_12_Mass_Rebuild
* Thu Feb 26 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.03-4
- Rebuilt for https://fedoraproject.org/wiki/Fedora_11_Mass_Rebuild
* Thu Mar 06 2008 Tom "spot" Callaway <tcallawa@redhat.com> - 1.03-3
Rebuild for new perl
* Wed Nov 7 2007 David Malcolm <dmalcolm@redhat.com> - 1.03-2
- drop versioned dependency on perl(Text::CSV_XS) in lieu of autogenerated
one
* Fri Aug 31 2007 David Malcolm <dmalcolm@redhat.com> - 1.03-1
- Specfile autogenerated by cpanspec 1.73.