From c766b5d0771bc87806facc1a0f6a39d089eeb8dd Mon Sep 17 00:00:00 2001 From: Jose Pedro Oliveira Date: Thu, 5 Jan 2006 17:23:10 +0000 Subject: [PATCH] auto-import perl-Text-CSV_XS-0.23-1 on branch devel from perl-Text-CSV_XS-0.23-1.src.rpm --- .cvsignore | 1 + perl-Text-CSV_XS.spec | 56 +++++++++++++++++++++++++++++++++++++++++++ sources | 1 + 3 files changed, 58 insertions(+) create mode 100644 perl-Text-CSV_XS.spec diff --git a/.cvsignore b/.cvsignore index e69de29..1f268ae 100644 --- a/.cvsignore +++ b/.cvsignore @@ -0,0 +1 @@ +Text-CSV_XS-0.23.tar.gz diff --git a/perl-Text-CSV_XS.spec b/perl-Text-CSV_XS.spec new file mode 100644 index 0000000..e30da5c --- /dev/null +++ b/perl-Text-CSV_XS.spec @@ -0,0 +1,56 @@ +Name: perl-Text-CSV_XS +Version: 0.23 +Release: 1%{?dist} +Summary: Comma-separated values manipulation routines + +Group: Development/Libraries +License: GPL or Artistic +URL: http://search.cpan.org/dist/Text-CSV_XS/ +Source0: http://www.cpan.org/authors/id/J/JW/JWIED/Text-CSV_XS-%{version}.tar.gz +BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) + +Requires: perl(:MODULE_COMPAT_%(eval "`%{__perl} -V:version`"; echo $version)) + +%description +Text::CSV provides facilities for the composition and decomposition of +comma-separated values. An instance of the Text::CSV class can combine +fields into a CSV string and parse a CSV string into fields. + + +%prep +%setup -q -n Text-CSV_XS-%{version} + + +%build +CFLAGS="$RPM_OPT_FLAGS" %{__perl} Makefile.PL INSTALLDIRS=vendor +make %{?_smp_mflags} OPTIMIZE="$RPM_OPT_FLAGS" + + +%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 -type f -name '*.bs' -empty -exec rm -f {} ';' +find $RPM_BUILD_ROOT -type d -depth -exec rmdir {} 2>/dev/null ';' +chmod -R u+w $RPM_BUILD_ROOT/* + + +%check +make test + + +%clean +rm -rf $RPM_BUILD_ROOT + + +%files +%defattr(-,root,root,-) +%doc ChangeLog README +%{perl_vendorarch}/Text/ +%{perl_vendorarch}/auto/Text/ +%{_mandir}/man3/*.3* + + +%changelog +* Sat Nov 05 2005 Jose Pedro Oliveira - 0.23-1 +- First build. diff --git a/sources b/sources index e69de29..f45b166 100644 --- a/sources +++ b/sources @@ -0,0 +1 @@ +936eca163a09e92353565ad37ee7a4fa Text-CSV_XS-0.23.tar.gz