%define perl_major_ver %(eval `perl -V:version`; echo ${version%*.[0-9]*}.0) Name: perl-Text-Iconv Version: 1.7 Release: 4mamba Summary: Text::Iconv - Perl interface to iconv() codeset conversion function Group: System/Libraries/Perl Vendor: openmamba Distribution: openmamba Packager: Aleph0 URL: http://www.cpan.org Source: http://search.cpan.org/CPAN/authors/id/M/MP/MPIOTR/Text-Iconv-%{version}.tar.gz License: Artistic Requires: perl >= %perl_major_ver ## AUTOBUILDREQ-BEGIN BuildRequires: glibc-devel BuildRequires: perl >= %perl_major_ver ## AUTOBUILDREQ-END BuildRoot: %{_tmppath}/%{name}-%{version}-root %description This module provides a Perl interface to the iconv() codeset conversion function, as defined by the Single UNIX Specification. %prep %setup -q -n Text-Iconv-%{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 * Wed Nov 09 2016 Silvan Calarco 1.7-4mamba - rebuilt with perl 5.24 * Tue Nov 13 2012 Silvan Calarco 1.7-3mamba - perl 5.16 mass rebuild * Wed Nov 05 2008 Silvan Calarco 1.7-2mamba - automatic rebuild by autodist * Mon Sep 15 2008 gil 1.7-1mamba - update to 1.7 * Thu May 31 2007 Aleph0 1.4-1mamba - package created by autospec