]>
Commit | Line | Data |
---|---|---|
7b0b0c37 | 1 | # |
2 | # Conditional build: | |
3 | %bcond_without tests # do not perform "make test" | |
4 | # | |
5 | %include /usr/lib/rpm/macros.perl | |
8632d1cb | 6 | %define pdir Text |
7 | %define pnam Unaccent | |
52bb8327 | 8 | Summary: Text::Unaccent - remove accents from a string |
00f54af1 | 9 | Summary(pl.UTF-8): Text::Unaccent - usuwanie akcentów z napisów |
7b0b0c37 | 10 | Name: perl-Text-Unaccent |
e603ae43 | 11 | Version: 1.08 |
a5c953b8 | 12 | Release: 4 |
7b0b0c37 | 13 | License: GPL v2+ |
14 | Group: Development/Languages/Perl | |
15 | Source0: http://www.cpan.org/modules/by-module/%{pdir}/%{pdir}-%{pnam}-%{version}.tar.gz | |
e603ae43 | 16 | # Source0-md5: 9ac9b28cbb66f4829a50d563ace79cb5 |
52bb8327 | 17 | BuildRequires: perl-devel >= 1:5.8.0 |
7b0b0c37 | 18 | BuildRequires: rpm-perlprov >= 4.1-13 |
7b0b0c37 | 19 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) |
20 | ||
21 | %description | |
22 | Text::Unaccent is a module that provides functions to remove accents | |
ca0fdfbe | 23 | from a string. For instance the string été will become ete. The |
7b0b0c37 | 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. | |
28 | ||
52bb8327 | 29 | Text-Unaccent-1.01 has the same unac.[ch] files than unac-1.1.0. |
7b0b0c37 | 30 | |
ca0fdfbe | 31 | %description -l pl.UTF-8 |
32 | Text::Unaccent to moduł dostarczający funkcje do usuwania akcentów z | |
33 | napisów. Na przykład tekst été zostanie zamieniony na ete. Zestaw | |
34 | znaków łańcucha wejściowego jest podawany jako argument. Wejście jest | |
35 | konwertowane do UTF-16 przy użyciu iconv(3), usuwane są akcenty, a | |
36 | wynik jest konwertowany z powrotem do oryginalnego zestawu znaków. | |
37 | Obsługiwane zestawy znaków można sprawdzić poleceniem iconv --list. | |
52bb8327 JB |
38 | |
39 | Text-Unaccent-1.01 ma te same pliki unac.[ch] co unac-1.1.0. | |
7b0b0c37 | 40 | |
41 | %prep | |
42 | %setup -q -n %{pdir}-%{pnam}-%{version} | |
43 | ||
44 | %build | |
45 | %{__perl} Makefile.PL \ | |
46 | LIBS= \ | |
47 | INSTALLDIRS=vendor | |
48 | %{__make} | |
49 | ||
50 | %{?with_tests:%{__make} test} | |
51 | ||
52 | %install | |
53 | rm -rf $RPM_BUILD_ROOT | |
54 | ||
55 | %{__make} install \ | |
56 | DESTDIR=$RPM_BUILD_ROOT | |
57 | ||
58 | %clean | |
59 | rm -rf $RPM_BUILD_ROOT | |
60 | ||
61 | %files | |
62 | %defattr(644,root,root,755) | |
63 | %doc ChangeLog README | |
52bb8327 JB |
64 | %{perl_vendorarch}/Text/*.pm |
65 | %dir %{perl_vendorarch}/auto/Text/Unaccent | |
66 | %{perl_vendorarch}/auto/Text/Unaccent/*.bs | |
67 | %attr(755,root,root) %{perl_vendorarch}/auto/Text/Unaccent/*.so | |
7b0b0c37 | 68 | %{_mandir}/man3/* |