3 %bcond_without tests # do not perform "make test"
7 Summary: I18N::Charset - IANA Character Set Registry names and Unicode::MapUTF8 conversion scheme names
8 Summary(pl.UTF-8): I18N::Charset - nazwy zestawów znaków wg IANA oraz nazwy tabel konwersji Unicode::MapUTF8
9 Name: perl-I18N-Charset
13 License: GPL v1+ or Artistic
14 Group: Development/Languages/Perl
15 Source0: http://www.cpan.org/modules/by-module/I18N/%{pdir}-%{pnam}-%{version}.tar.gz
16 # Source0-md5: 3587c451956705e3b26e41f4b6e9a0d7
17 URL: http://search.cpan.org/dist/I18N-Charset/
18 BuildRequires: perl-devel >= 1:5.8.0
20 BuildRequires: perl-File-Which
21 BuildRequires: perl-IO-Capture
22 BuildRequires: perl-IO-String
23 BuildRequires: perl-Test-Pod
24 BuildRequires: perl-Test-Pod-Coverage
25 BuildRequires: perl-Test-Simple
26 BuildRequires: perl-Unicode-MapUTF8 >= 1.09
28 BuildRequires: rpm-perlprov >= 4.1-13
30 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
33 The I18N::Charset module provides access to the IANA Character Set
34 Registry names for identifying character encoding schemes. It also
35 provides a mapping to the character set names used by the
36 Unicode::Map8 and Unicode::Map modules.
38 So, for example, if you get an HTML document with a META CHARSET="..."
39 tag, you can fairly quickly determine what Unicode::MapXXX module can
40 be used to convert it to Unicode.
42 %description -l pl.UTF-8
43 Moduł I18N::Charset daje dostęp do nazw z IANA Character Set Registry
44 (rejestru zestawów znaków IANA) służących do identyfikowania schematów
45 kodowania znaków. Udostępnia także mapowanie dla nazw zestawów znaków
46 używanych w modułach Unicode::Map8 i Unicode::Map.
48 W ten sposób można np. mając dokument HTML ze znacznikiem META
49 CHARSET="..." szybko określić, jakiego modułu Unicode::MapXXX użyć do
50 konwersji dokumentu do Unikodu.
53 %setup -q -n %{pdir}-%{pnam}-%{version}
56 %{__perl} Makefile.PL \
60 %{?with_tests:%{__make} test}
63 rm -rf $RPM_BUILD_ROOT
66 DESTDIR=$RPM_BUILD_ROOT
69 rm -rf $RPM_BUILD_ROOT
72 %defattr(644,root,root,755)
74 %{perl_vendorlib}/I18N/*.pm