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
9 Summary(pl): Text::Unaccent - usuwanie akcentów z napisów
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.8.0
17 BuildRequires: rpm-perlprov >= 4.1-13
18 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
21 Text::Unaccent is a module that provides functions to remove accents
22 from a string. For instance the string été will become ete. The
23 charset of the input string is specified as an argument. The input is
24 converted to UTF-16 using iconv(3), accents are stripped and the
25 result is converted back to the original charset. The iconv --list
26 command on GNU/Linux will show all charset supported.
28 Text-Unaccent-1.01 has the same unac.[ch] files than unac-1.1.0.
31 Text::Unaccent to modu³ dostarczaj±cy funkcje do usuwania akcentów z
32 napisów. Na przyk³ad tekst été zostanie zamieniony na ete. Zestaw
33 znaków ³añcucha wej¶ciowego jest podawany jako argument. Wej¶cie jest
34 konwertowane do UTF-16 przy u¿yciu iconv(3), usuwane s± akcenty, a
35 wynik jest konwertowany z powrotem do oryginalnego zestawu znaków.
36 Obs³ugiwane zestawy znaków mo¿na sprawdziæ poleceniem iconv --list.
38 Text-Unaccent-1.01 ma te same pliki unac.[ch] co unac-1.1.0.
41 %setup -q -n %{pdir}-%{pnam}-%{version}
44 %{__perl} Makefile.PL \
49 %{?with_tests:%{__make} test}
52 rm -rf $RPM_BUILD_ROOT
55 DESTDIR=$RPM_BUILD_ROOT
58 rm -rf $RPM_BUILD_ROOT
61 %defattr(644,root,root,755)
63 %{perl_vendorarch}/Text/*.pm
64 %dir %{perl_vendorarch}/auto/Text/Unaccent
65 %{perl_vendorarch}/auto/Text/Unaccent/*.bs
66 %attr(755,root,root) %{perl_vendorarch}/auto/Text/Unaccent/*.so