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