%define real_name Text-Unaccent %define name perl-%{real_name} %define version 1.08 %define release %mkrel 1 Summary: Remove accents from a string Name: %{name} Version: %{version} Release: %{release} License: GPL or Artistic Group: Development/Perl Source: http://search.cpan.org/CPAN/authors/id/L/LD/LDACHARY/%{real_name}-%{version}.tar.bz2 URL: http://search.cpan.org/dist/%{real_name}/ 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 * Mon Sep 05 2005 Olivier Thauvin <nanardon@mandriva.org> 1.08-1mdk - First mandriva package (require by bins)