File perl-Unicode-Map8.spec of Package perl-Unicode-Map8

#
# spec file for package perl-Unicode-Map8
#
# Copyright (c) 2011 SUSE LINUX Products GmbH, Nuernberg, Germany.
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
# upon. The license for this file, and modifications and additions to the
# file, is the same license as for the pristine package itself (unless the
# license for the pristine package is not an Open Source License, in which
# case the license is the MIT License). An "Open Source License" is a
# license that conforms to the Open Source Definition (Version 1.9)
# published by the Open Source Initiative.

# Please submit bugfixes or comments via http://bugs.opensuse.org/
#

# norootforbuild


Name:           perl-Unicode-Map8
BuildRequires:  perl-Unicode-String
BuildRequires:  perl-macros
Version:        0.13
Release:        6
Requires:       perl-Unicode-String
AutoReqProv:    on
Group:          Development/Libraries/Perl
License:        Artistic-1.0
Url:            http://cpan.org/modules/by-module/Unicode/
Summary:        Mapping table between 8-bit chars and Unicode
Source:         Unicode-Map8-%{version}.tar.gz
Patch0:         Unicode-Map8-%{version}-type.diff
Patch1:         Unicode-Map8-%{version}-declaration.diff
BuildRoot:      %{_tmppath}/%{name}-%{version}-build
%{perl_requires}

%description
The Unicode::Map8 class implements efficient mapping tables between
8-bit character sets and 16-bit character sets like Unicode. The tables
are efficient both in terms of space allocated and translation speed.
The 16-bit strings are assumed to use network byte order.



Authors:
--------
    Gisle Aas <gisle@aas.no>

%prep
%setup -n Unicode-Map8-%{version}
%patch0
%patch1

%build
perl Makefile.PL OPTIMIZE="$RPM_OPT_FLAGS -Wall"
make %{?_smp_mflags}
make test

%install
rm -rf $RPM_BUILD_ROOT
make DESTDIR=$RPM_BUILD_ROOT install_vendor
%perl_process_packlist

%clean
rm -rf $RPM_BUILD_ROOT

%files
%defattr(-,root,root)
%doc %{_mandir}/man?/*
%doc README Changes rfc1345.txt
%{perl_vendorarch}/Unicode/Map8.pm
%{perl_vendorarch}/Unicode/Map8
%{perl_vendorarch}/auto/Unicode/Map8
%{_bindir}/*

%changelog