3 %bcond_without tests # do not perform "make test"
7 %include /usr/lib/rpm/macros.perl
8 Summary: Text::Unaccent - remove accents from a string
9 Summary(pl.UTF-8): 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 # Source0-md5: 9ac9b28cbb66f4829a50d563ace79cb5
17 URL: http://search.cpan.org/dist/Text-Unaccent/
18 BuildRequires: perl-devel >= 1:5.8.0
19 BuildRequires: rpm-perlprov >= 4.1-13
20 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
23 Text::Unaccent is a module that provides functions to remove accents
24 from a string. For instance the string été will become ete. The
25 charset of the input string is specified as an argument. The input is
26 converted to UTF-16 using iconv(3), accents are stripped and the
27 result is converted back to the original charset. The iconv --list
28 command on GNU/Linux will show all charset supported.
30 Text-Unaccent-1.01 has the same unac.[ch] files than unac-1.1.0.
32 %description -l pl.UTF-8
33 Text::Unaccent to moduł dostarczający funkcje do usuwania akcentów z
34 napisów. Na przykład tekst été zostanie zamieniony na ete. Zestaw
35 znaków łańcucha wejściowego jest podawany jako argument. Wejście jest
36 konwertowane do UTF-16 przy użyciu iconv(3), usuwane są akcenty, a
37 wynik jest konwertowany z powrotem do oryginalnego zestawu znaków.
38 Obsługiwane zestawy znaków można sprawdzić poleceniem iconv --list.
40 Text-Unaccent-1.01 ma te same pliki unac.[ch] co unac-1.1.0.
43 %setup -q -n %{pdir}-%{pnam}-%{version}
46 %{__perl} Makefile.PL \
51 %{?with_tests:%{__make} test}
54 rm -rf $RPM_BUILD_ROOT
57 DESTDIR=$RPM_BUILD_ROOT
60 rm -rf $RPM_BUILD_ROOT
63 %defattr(644,root,root,755)
65 %{perl_vendorarch}/Text/*.pm
66 %dir %{perl_vendorarch}/auto/Text/Unaccent
67 %attr(755,root,root) %{perl_vendorarch}/auto/Text/Unaccent/*.so