File perl-Text-Unaccent-openSUSE_Factory.spec of Package perl-Text-Unaccent

# $Id: perl-Text-Unaccent.spec 5703 2007-08-07 23:23:07Z dag $
# Authority: dries
# Upstream: Loic Dachary <loic$senga,org>

%define perl_vendorlib %(eval "`perl -V:installvendorlib`"; echo $installvendorlib)
%define perl_vendorarch %(eval "`perl -V:installvendorarch`"; echo $installvendorarch)

%define real_name Text-Unaccent

Summary: Remove accents from a string
Name: perl-Text-Unaccent
Version: 1.08
%define releasesuffix opensusefactory
Release: 1.2
License: Artistic/GPL
Group: Applications/CPAN

Packager: Dries Verachtert <>
Vendor: Dries RPM Repository
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root

BuildRequires: perl, perl(ExtUtils::MakeMaker)

Text::Unaccent is a module that provides functions to remove accents
from a string.  For instance the string été will become ete.  The
charset of the input string is specified as an argument. The input is
converted to UTF-16 using iconv(3), accents are stripped and the
result is converted back to the original charset. The iconv -l
command on GNU/Linux will show all charset supported.

%setup -n %{real_name}-%{version}

%{__perl} Makefile.PL INSTALLDIRS="vendor"  destdir="%{buildroot}" 
%{__make} %{?_smp_mflags} OPTIMIZE="%{optflags}"

%{__rm} -rf %{buildroot}
%{__make} install
%{__rm} -rf %{buildroot}%{perl_archlib}/perllocal.pod %{buildroot}%{perl_vendorarch}/auto/*/*/.packlist

%{__rm} -rf %{buildroot}

%defattr(-, root, root, 0755)
%doc ChangeLog README
%doc %{_mandir}/man3/*.3pm*
%dir %{perl_vendorarch}/Text/
%dir %{perl_vendorarch}/auto/Text/

* Sat Apr  9 2005 Dries Verachtert <> - 1.08-1
- Initial package.