]> git.pld-linux.org Git - packages/perl-I18N-Charset.git/blob - perl-I18N-Charset.spec
- drop obsolete and outdated manual inclusion of rpm macros
[packages/perl-I18N-Charset.git] / perl-I18N-Charset.spec
1 #
2 # Conditional build:
3 %bcond_without  tests   # do not perform "make test"
4 #
5 %define         pdir    I18N
6 %define         pnam    Charset
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
10 Version:        1.401
11 Release:        1
12 # same as perl
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
19 %if %{with tests}
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
27 %endif
28 BuildRequires:  rpm-perlprov >= 4.1-13
29 BuildArch:      noarch
30 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
31
32 %description
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.
37
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.
41
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.
47
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.
51
52 %prep
53 %setup -q -n %{pdir}-%{pnam}-%{version}
54
55 %build
56 %{__perl} Makefile.PL \
57         INSTALLDIRS=vendor
58 %{__make}
59
60 %{?with_tests:%{__make} test}
61
62 %install
63 rm -rf $RPM_BUILD_ROOT
64
65 %{__make} install \
66         DESTDIR=$RPM_BUILD_ROOT
67
68 %clean
69 rm -rf $RPM_BUILD_ROOT
70
71 %files
72 %defattr(644,root,root,755)
73 %doc Change* README
74 %{perl_vendorlib}/I18N/*.pm
75 %{_mandir}/man3/*
This page took 0.075103 seconds and 4 git commands to generate.