You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
57 lines
1.5 KiB
57 lines
1.5 KiB
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 <jpo at di.uminho.pt> - 0.23-1
|
|
- First build.
|