Sisyphus repository
Last update: 1 october 2023 | SRPMs: 18631 | Visits: 37562602
en ru br
ALT Linux repos
S:0.112-alt8
5.0: 0.112-alt3.0
4.1: 0.112-alt3.0
4.0: 0.112-alt3.0
3.0: 0.112-alt3

Group :: Development/Perl
RPM: perl-Unicode-Map

 Main   Changelog   Spec   Patches   Sources   Download   Gear   Bugs and FR  Repocop 

%define dist Unicode-Map
Name: perl-%dist
Version: 0.112
Release: alt3

Summary: Maps charsets from and to utf16 unicode
License: GPL or Artistic
Group: Development/Perl

URL: %CPAN %dist
Source0: %dist-%version.tar.bz2
Source1: http://www.unicode.org/Public/MAPPINGS/VENDORS/MISC/KOI8-R.TXT

# Added by buildreq2 on Thu May 12 2005

BuildRequires: perl-devel

%description
This module converts strings from and to 2-byte Unicode UCS2 format.
All mappings happen via 2 byte UTF16 encodings, not via 1 byte UTF8
encoding. To transform these use Unicode::String.

%prep
%setup -q -n %dist-%version

%build
# bootstrap
%perl_vendor_build

# add koi8-r support

%__mkdir_p Map/VENDORS/MISC
%__perl -Mblib tools/mkmapfile -M Map/VENDORS/MISC/KOI8-R.map %SOURCE1
[ -f Map/REGISTRY ]
%__cat <<\__EOF__ >>Map/REGISTRY
##
## ALT
##
name:    KOI8-R
srcURL:  $SrcUnicode/VENDORS/MISC/KOI8-R.TXT
src:     $DestUnicode/VENDORS/MISC/KOI8-R.TXT
map:     $DestMap/VENDORS/MISC/KOI8-R.map
alias:   csKOI8R
#mib:    ????
#
__EOF__

# rebuild

%perl_vendor_build

# test koi8-r support

%__perl -Mblib -MUnicode::Map -e 'Unicode::Map->new("KOI8-R") or die "KOI8-R broken\n"'

%install
%perl_vendor_install

%files
%doc Changes README
%_bindir/map
%_bindir/mkmapfile
%perl_vendor_archlib/Unicode
%perl_vendor_autolib/Unicode

%changelog

Full changelog you can see here

 
design & coding: Vladimir Lettiev aka crux © 2004-2005, Andrew Avramenko aka liks © 2007-2008
current maintainer: Michael Shigorin