Package perl-Jcode: Specfile

#
#   - Jcode -
#   This spec file was automatically generated by cpan2rpm [ver: 2.027]
#   (ALT Linux revision)
#   The following arguments were used:
#       Jcode Jcode-2.06.tar.gz
#   For more information on cpan2rpm please visit: http://perl.arix.com/
#

%define module Jcode
%define m_distro Jcode
%define m_name Jcode
%define m_author_id unknown
%define _enable_test 1

Name: perl-Jcode
Version: 2.07
Release: alt1.1

Summary: Japanese Charset Handler

License: Artistic
Group: Development/Perl
Url: http://www.cpan.org

Packager: Slava Dubrovskiy <dubrsl@altlinux.ru>

Source: %m_distro-%version.tar.gz

# Automatically added by buildreq on Wed Nov 22 2006
BuildRequires: perl-devel perl-Encode-JP
BuildArch: noarch

%description
<Japanese document is now available as Jcode::Nihongo. >

Jcode.pm supports both object and traditional approach.
With object approach, you can go like;

  $iso_2022_jp = Jcode->new($str)->h2z->jis;

Which is more elegant than:

  $iso_2022_jp = $str;
  &jcode::convert(\$iso_2022_jp, 'jis', &jcode::getcode(\$str), "z");

For those unfamiliar with objects, Jcode.pm still supports "getcode()"
and "convert()."

If the perl version is 5.8.1, Jcode acts as a wrapper to Encode,
the standard charset handler module for Perl 5.8 or later.

%prep
%setup -q -n %m_distro-%version
%build
%perl_vendor_build

%install
%perl_vendor_install
install -m644 Jcode/_Classic.pm %buildroot%perl_vendor_privlib/Jcode
install -m644 Jcode/Constants.pm %buildroot%perl_vendor_privlib/Jcode
install -m644 Jcode/H2Z.pm %buildroot%perl_vendor_privlib/Jcode
install -m644 Jcode/Tr.pm %buildroot%perl_vendor_privlib/Jcode

%files
%perl_vendor_privlib/Jcode*

%changelog
* Wed Nov 24 2010 Igor Vlasenko <viy@altlinux.ru> 2.07-alt1.1
- repair after perl 5.12 upgrade using girar-nmu

* Thu Sep 11 2008 Slava Dubrovskiy <dubrsl@altlinux.org> 2.07-alt1
- New version

* Wed Nov 22 2006 Slava Dubrovskiy <dubrsl@altlinux.ru> 2.06-alt1
- first build for ALT Linux Sisyphus