]> git.pld-linux.org Git - packages/perl-I18N-Charset.git/blob - perl-I18N-Charset.spec
- up to 1.24 (from RA-branch), release 2
[packages/perl-I18N-Charset.git] / perl-I18N-Charset.spec
1 #
2 # Conditional build:
3 # _without_tests - do not perform "make test"
4 #
5 %include        /usr/lib/rpm/macros.perl
6 %define pdir    I18N
7 %define pnam    Charset
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
11 Version:        1.24
12 Release:        2
13 License:        GPL/Artistic
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
23 %endif
24 BuildRequires:  rpm-perlprov >= 4.1-13
25 BuildArch:      noarch
26 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
27
28 %description
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.
33
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.
37
38 %description -l pl
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.
43
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.
47
48 %prep
49 %setup -q -n %{pdir}-%{pnam}-%{version}
50
51 %build
52 %{__perl} Makefile.PL \
53         INSTALLDIRS=vendor 
54 %{__make}
55
56 %{!?_without_tests:%{__make} test}
57
58 %install
59 rm -rf $RPM_BUILD_ROOT
60
61 %{__make} install DESTDIR=$RPM_BUILD_ROOT
62
63 %clean
64 rm -rf $RPM_BUILD_ROOT
65
66 %files
67 %defattr(644,root,root,755)
68 %doc Change* README
69 %{perl_vendorlib}/%{pdir}/*.pm
70 %{_mandir}/man3/*
This page took 0.077648 seconds and 3 git commands to generate.