Summary: Comma Separated Value (CSV) module for perl Name: perl-CSV Version: 2.0 Release: 1 License: LGPL Group: Applications/Text Source0: http://rath.ca/Misc/Perl_CSV/CSV-2.0.tar.gz URL: http://rath.ca/Misc/Perl_CSV/ Packager: Riku Meskanen BuildRoot: %{_tmppath}/%{name}-%{version}-%(id -u -n) BuildRequires: perl >= 5.000 Requires: perl >= 5.000 %description A properly implemented CSV based definition module for perl. # Provide perl-specific find-{provides,requires}. %define __find_provides /usr/lib/rpm/find-provides.perl %define __find_requires /usr/lib/rpm/find-requires.perl %prep %setup -q -n CSV-2 %build CFLAGS="$RPM_OPT_FLAGS" PREFIX=%{_prefix} perl Makefile.PL make make test %clean rm -rf $RPM_BUILD_ROOT %install rm -rf $RPM_BUILD_ROOT eval `perl '-V:installarchlib'` mkdir -p $RPM_BUILD_ROOT/$installarchlib for i in $(find . -type f -print | xargs grep -l '#!/usr/local/bin/perl'); do cp -p $i $i.dist &&\ sed 's/^\(#!\/usr\)\/local\(\/bin\/perl\)/\1\2/' < $i.dist >$i &&\ rm -f $i.dist done make PREFIX=$RPM_BUILD_ROOT%{_prefix} install [ -x /usr/lib/rpm/brp-compress ] && /usr/lib/rpm/brp-compress find $RPM_BUILD_ROOT/usr -type f -print | sed "s@^$RPM_BUILD_ROOT@@g" | grep -v perllocal.pod | grep -v "\.packlist" > filelist if [ "$(cat filelist)X" = "X" ] ; then echo "ERROR: EMPTY FILE LIST" exit -1 fi %files -f filelist %defattr(-,root,root) %changelog * Fri Oct 18 2002 Riku Meskanen - initial build