perl-Text-CSV/perl-Text-CSV.spec

93 lines
2.9 KiB
RPMSpec

%define perl_major_ver %(eval `perl -V:version`; echo ${version%*.[0-9]*}.0)
Name: perl-Text-CSV
Version: 1.33
Release: 1mamba
Summary: Text::CSV - comma-separated values manupulator (using XS or PurePerl)
Group: System/Libraries/Perl
Vendor: openmamba
Distribution: openmamba
Packager: Silvan Calarco <silvan.calarco@mambasoft.it>
URL: http://www.cpan.org
Source: http://search.cpan.org/CPAN/authors/id/M/MA/MAKAMAKA/Text-CSV-%{version}.tar.gz
License: Artistic, GPL
Requires: perl >= %perl_major_ver
BuildRequires: perl-devel >= %perl_major_ver
BuildRoot: %{_tmppath}/%{name}-%{version}-root
Requires: perl-Text-CSV_XS
%description
Text::CSV - comma-separated values manupulator (using XS or PurePerl)
%prep
%setup -q -n Text-CSV-%{version}
%build
perl Makefile.PL PREFIX=%{_prefix} INSTALLDIRS=vendor
%make
%make test
%install
[ "%{buildroot}" != / ] && rm -rf "%{buildroot}"
%makeinstall_perl
packlist=`find %{buildroot} -name .packlist`
[ -z "$packlist" ] && exit 1 || cat $packlist | \
sed "s,%buildroot,,g;s,.*/man/.*,&.gz,g" | \
sort -u > .packlist && rm $packlist
strid=`echo $packlist | sed 's,.*auto\(.*\)/.packlist,\1,'`
for dir in `find %{buildroot} -type d | grep $strid`; do
echo "%dir ${dir#%buildroot}" >> .packlist
done
%clean
[ "%{buildroot}" != / ] && rm -rf "%{buildroot}"
rm -f .packlist
%files -f .packlist
%defattr(-,root,root)
%changelog
* Thu Mar 26 2015 Automatic Build System <autodist@mambasoft.it> 1.33-1mamba
- automatic update by autodist
* Fri Jun 21 2013 Automatic Build System <autodist@mambasoft.it> 1.32-1mamba
- automatic version update by autodist
* Mon Nov 12 2012 Silvan Calarco <silvan.calarco@mambasoft.it> 1.21-2mamba
- perl 5.16 mass rebuild
* Mon Dec 27 2010 Automatic Build System <autodist@mambasoft.it> 1.21-1mamba
- automatic update by autodist
* Fri Nov 12 2010 Automatic Build System <autodist@mambasoft.it> 1.20-1mamba
- automatic update by autodist
* Mon Oct 18 2010 Automatic Build System <autodist@mambasoft.it> 1.19-1mamba
- automatic update by autodist
* Sat Jun 26 2010 Automatic Build System <autodist@mambasoft.it> 1.18-1mamba
- automatic update by autodist
* Tue Apr 27 2010 Automatic Build System <autodist@mambasoft.it> 1.17-1mamba
- automatic update by autodist
* Tue Jan 26 2010 Automatic Build System <autodist@mambasoft.it> 1.16-1mamba
- automatic update by autodist
* Mon Oct 26 2009 Automatic Build System <autodist@mambasoft.it> 1.15-1mamba
- automatic update by autodist
* Tue Oct 13 2009 Automatic Build System <autodist@mambasoft.it> 1.14-1mamba
- automatic update by autodist
* Fri Aug 07 2009 Automatic Build System <autodist@mambasoft.it> 1.13-1mamba
- automatic update by autodist
* Mon Jul 13 2009 Automatic Build System <autodist@mambasoft.it> 1.12-1mamba
- automatic update by autodist
* Wed Mar 18 2009 Silvan Calarco <silvan.calarco@mambasoft.it> 1.10-1mamba
- package created by autospec