3 %bcond_without tests # do not perform "make test"
5 %include /usr/lib/rpm/macros.perl
8 Summary: Text::Unaccent - Remove accents from a string
10 Name: perl-Text-Unaccent
14 Group: Development/Languages/Perl
15 Source0: http://www.cpan.org/modules/by-module/%{pdir}/%{pdir}-%{pnam}-%{version}.tar.gz
16 BuildRequires: perl-devel >= 1:5.6
17 BuildRequires: rpm-perlprov >= 4.1-13
19 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
22 Text::Unaccent is a module that provides functions to remove accents
23 from a string. For instance the string été will become ete. The
24 charset of the input string is specified as an argument. The input is
25 converted to UTF-16 using iconv(3), accents are stripped and the
26 result is converted back to the original charset. The iconv --list
27 command on GNU/Linux will show all charset supported.
29 Text-Unaccent-1.01 has the same unac.[ch] files than unac-1.1.0
35 %setup -q -n %{pdir}-%{pnam}-%{version}
38 %{__perl} Makefile.PL \
43 %{?with_tests:%{__make} test}
46 rm -rf $RPM_BUILD_ROOT
49 DESTDIR=$RPM_BUILD_ROOT
52 rm -rf $RPM_BUILD_ROOT
55 %defattr(644,root,root,755)
57 %{perl_vendorarch}/%{pdir}/*.pm
58 %dir %{perl_vendorarch}/auto/%{pdir}/%{pnam}
59 %{perl_vendorarch}/auto/%{pdir}/%{pnam}/*.bs
60 %attr(755,root,root) %{perl_vendorarch}/auto/%{pdir}/%{pnam}/*.so