Sophie

Sophie

distrib > Mandriva > 2006.0 > x86_64 > by-pkgid > f0e6319bc8c242e949e5d63a227e162f > files > 3

perl-I18N-Charset-1.375-2mdk.src.rpm

%define real_name I18N-Charset

Summary:	I18N::Charset - IANA Character Set Registry names and Unicode::MapUTF8
Name:		perl-%{real_name}
Version:	1.375
Release:	%mkrel 2
License:	GPL or Artistic
Group:		Development/Perl
URL:		http://search.cpan.org/dist/%{real_name}
Source0:	http://search.cpan.org/CPAN/authors/id/M/MT/MTHURN/%{real_name}-%{version}.tar.bz2
Patch0:		I18N-Charset-1.375-stderr.diff
BuildRequires:	perl-devel
BuildRequires:	perl-IO-Capture >= 0.05-1mdk
BuildRequires:	perl-App-Info
BuildRequires:	perl-Unicode-Map
BuildRequires:	perl-Unicode-Map8
BuildRequires:  perl-IO-String
BuildArch:	noarch
BuildRoot:	%{_tmppath}/%{name}-%{version}-%{release}-buildroot

%description
This distribution contains a module I18N::Charset which maps Character
Set names to the names officially registered with IANA.  For example,
'Shift_JIS' is the official name of what is often referred to in HTML
headers as 'x-sjis'.

It also maps character set names to Unicode::Map, Unicode::Map8, and
Unicode::MapUTF8 conversion scheme names (if those modules are
installed).  For example, the Unicode::Map8 scheme name for
'windows-1251' is 'cp1251'.

It also maps character set names to their preferred MIME names.  For
example, the preferred MIME name for 'ISO_646.irv:1991' is 'US-ASCII'.

It also maps character set names to conversion scheme names as defined
by the iconv library.  For example, the iconv conversion scheme name
for 'Shift_JIS' is 'MS_KANJI'.

It also maps character set names to encoding names as defined
by the Encode module.  For example, the Encode encoding name
for 'Shift_JIS' is 'shiftjis'.

%prep
%setup -q -n %{real_name}-%{version} 
%patch0 -p1

%build
%{__perl} Makefile.PL INSTALLDIRS=vendor
%make
make test

%install
rm -rf %{buildroot}
%makeinstall_std

%clean 
rm -rf %{buildroot}

%files
%defattr(-,root,root)
%doc ChangeLog
%{perl_vendorlib}/I18N/Charset.pm
%{_mandir}/*/*

%changelog
* Sun Jul 31 2005 Nicolas Lécureuil <neoclust@mandriva.org> 1.375-2mdk
- Fix BuildRequires

* Thu Jul 14 2005 Oden Eriksson <oeriksson@mandriva.com> 1.375-1mdk
- initial Mandriva package