%define real_name Text-Unaccent %define name perl-%{real_name} %define version 1.08 %define release %mkrel 5 Summary: Remove accents from a string Name: %{name} Version: %{version} Release: %{release} License: GPL or Artistic Group: Development/Perl Source: ftp://ftp.perl.org/pub/CPAN/modules/by-module/Text//%{real_name}-%{version}.tar.bz2 URL: http://search.cpan.org/dist/%{real_name}/ ExcludeArch: x86_64 BuildRequires: perl-devel BuildRoot: %{_tmppath}/%{name}-buildroot %description A module that remove accents from a string. unac_string converts the input string from the specified charset to UTF-16 and call unac_string_utf16 to return the unaccented equivalent. The conversion from and to UTF-16 is done with iconv(1). %prep %setup -q -n %{real_name}-%{version} %build %{__perl} Makefile.PL INSTALLDIRS=vendor make OPTIMIZE="$RPM_OPT_FLAGS" %check make test %install %makeinstall_std %clean rm -rf $RPM_BUILD_ROOT %files %defattr(-,root,root) %doc README ChangeLog %{_mandir}/*/* %{perl_vendorarch}/* %changelog * Sun Sep 16 2007 Guillaume Rousse <guillomovitch@mandriva.org> 1.08-5mdv2008.0 + Revision: 88620 - exclude x86_64, test don't pass (see #http://rt.cpan.org//Ticket/Display.html?id=29390) - rebuild * Mon Aug 07 2006 Olivier Thauvin <nanardon@mandriva.org> + 08/07/06 19:23:54 (54159) - rebuild * Mon Aug 07 2006 Olivier Thauvin <nanardon@mandriva.org> + 08/07/06 19:21:24 (54156) Import perl-Text-Unaccent * Fri Apr 28 2006 Nicolas Lécureuil <neoclust@mandriva.org> 1.08-3mdk - Fix SPEC according to Perl Policy - Source URL * Mon Oct 10 2005 Nicolas Lécureuil <neoclust@mandriva.org> 1.08-2mdk - Fix BuildRequires * Mon Sep 05 2005 Olivier Thauvin <nanardon@mandriva.org> 1.08-1mdk - First mandriva package (require by bins)