%define module Encode-Detect Name: perl-%module Version: 1.01 Release: 3ark Summary: Perl module for detecting the encoding of data URL: http://search.cpan.org/dist/%module Source: http://mirror.switch.ch/ftp/mirror/CPAN/authors/id/J/JG/JGMYERS/%{module}-%version.tar.gz License: Perl (Artistic or GPL) Group: Development/Languages BuildRoot: %{_tmppath}/%{name}-root # For make test BuildRequires: perl-Japanese %description Perl module for detecting the encoding of data %prep %setup -q -n %{module}-%version %build perl Makefile.PL INSTALLDIRS=vendor make %?_smp_mflags make %?_smp_mflags test %install make %?_smp_mflags install INSTALLDIRS=vendor DESTDIR="$RPM_BUILD_ROOT" find "$RPM_BUILD_ROOT" -name .packlist |xargs rm %files %defattr(-,root,root) %_libdir/perl5/vendor_perl/*/*/Encode %_libdir/perl5/vendor_perl/*/*/auto/Encode %_mandir/man3/* %clean rm -rf $RPM_BUILD_ROOT $RPM_BUILD_DIR/%{name}-%{version} %changelog * Mon Jun 20 2011 Bernhard Rosenkraenzer <bero@arklinux.org> 1.01-3ark - Rebuild for perl 5.14 * Wed Oct 27 2010 Bernhard Rosenkraenzer <bero@arklinux.org> 1.01-2ark - Build for perl 5.12.x * Fri Feb 26 2010 Bernhard Rosenkraenzer <bero@arklinux.org> 1.01-1ark - Initial package, needed by current spamassassin