3 # _without_tests - do not perform "make test"
5 %include /usr/lib/rpm/macros.perl
8 Summary: IANA Character Set Registry names and Unicode::MapUTF8 conversion scheme names
9 Summary(pl): Nazwy zestawów znaków wg IANA oraz nazwy tabeli konwersji Unicode::MapUTF8
10 Name: perl-I18N-Charset
14 Group: Development/Languages/Perl
15 Source0: http://www.cpan.org/modules/by-module/%{pdir}/%{pdir}-%{pnam}-%{version}.tar.gz
16 # Source0-md5: 4e370038e7b025df89e5e673de23e3ff
17 BuildRequires: perl-devel >= 5.6
18 %if %{?_without_tests:0}%{!?_without_tests:1}
19 BuildRequires: perl-File-Which
20 BuildRequires: perl-IO-String
21 BuildRequires: perl-Test-Simple
22 BuildRequires: perl-Unicode-MapUTF8 >= 1.09
24 BuildRequires: rpm-perlprov >= 4.1-13
26 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
29 The I18N::Charset module provides access to the IANA Character Set
30 Registry names for identifying character encoding schemes. It also
31 provides a mapping to the character set names used by the Unicode::Map8
32 and Unicode::Map modules.
34 So, for example, if you get an HTML document with a META CHARSET="..."
35 tag, you can fairly quickly determine what Unicode::MapXXX module can
36 be used to convert it to Unicode.
39 Modu³ I18N::Charset daje dostêp do nazw z IANA Character Set Registry
40 (rejestru zestawów znaków IANA) s³u¿±cych do identyfikowania schematów
41 kodowania znaków. Udostêpnia tak¿e mapowanie dla nazw zestawów znaków
42 u¿ywanych w modu³ach Unicode::Map8 i Unicode::Map.
44 W ten sposób mo¿na np. maj±c dokument HTML ze znacznikiem META
45 CHARSET="..." szybko okre¶liæ, jakiego modu³u Unicode::MapXXX u¿yæ do
46 konwersji dokumentu do Unikodu.
49 %setup -q -n %{pdir}-%{pnam}-%{version}
52 %{__perl} Makefile.PL \
56 %{!?_without_tests:%{__make} test}
59 rm -rf $RPM_BUILD_ROOT
61 %{__make} install DESTDIR=$RPM_BUILD_ROOT
64 rm -rf $RPM_BUILD_ROOT
67 %defattr(644,root,root,755)
69 %{perl_vendorlib}/%{pdir}/*.pm