90 lines
3.1 KiB
RPMSpec
90 lines
3.1 KiB
RPMSpec
#
|
|
# spec file for package perl-Unicode-MapUTF8
|
|
#
|
|
# Copyright (c) 2024 SUSE LLC
|
|
#
|
|
# 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 https://bugs.opensuse.org/
|
|
#
|
|
|
|
|
|
%define cpan_name Unicode-MapUTF8
|
|
Name: perl-Unicode-MapUTF8
|
|
Version: 1.140.0
|
|
Release: 0
|
|
# 1.14 -> normalize -> 1.140.0
|
|
%define cpan_version 1.14
|
|
License: MIT
|
|
Summary: Conversions to and from arbitrary character sets and UTF8
|
|
URL: https://metacpan.org/release/%{cpan_name}
|
|
Source0: https://cpan.metacpan.org/authors/id/S/SN/SNOWHARE/%{cpan_name}-%{cpan_version}.tar.gz
|
|
Source1: cpanspec.yml
|
|
Source100: README.md
|
|
BuildArch: noarch
|
|
BuildRequires: perl
|
|
BuildRequires: perl-macros
|
|
BuildRequires: perl(Jcode)
|
|
BuildRequires: perl(Module::Build) >= 0.42
|
|
BuildRequires: perl(Unicode::Map)
|
|
BuildRequires: perl(Unicode::Map8)
|
|
BuildRequires: perl(Unicode::String)
|
|
Requires: perl(Jcode)
|
|
Requires: perl(Unicode::Map)
|
|
Requires: perl(Unicode::Map8)
|
|
Requires: perl(Unicode::String)
|
|
Provides: perl(Unicode::MapUTF8) = %{version}
|
|
%undefine __perllib_provides
|
|
%{perl_requires}
|
|
|
|
%description
|
|
Provides an adapter layer between core routines for converting to and from
|
|
UTF8 and other encodings. In essence, a way to give multiple existing
|
|
Unicode modules a single common interface so you don't have to know the
|
|
underlaying implementations to do simple UTF8 to-from other character set
|
|
encoding conversions. As such, it wraps the Unicode::String, Unicode::Map8,
|
|
Unicode::Map and Jcode modules in a standardized and simple API.
|
|
|
|
This also provides general character set conversion operation based on UTF8
|
|
- it is possible to convert between any two compatible and supported
|
|
character sets via a simple two step chaining of conversions.
|
|
|
|
As with most things Perlish - if you give it a few big chunks of text to
|
|
chew on instead of lots of small ones it will handle many more characters
|
|
per second.
|
|
|
|
By design, it can be easily extended to encompass any new charset encoding
|
|
conversion modules that arrive on the scene.
|
|
|
|
This module is intended to provide good Unicode support to versions of Perl
|
|
prior to 5.8. If you are using Perl 5.8.0 or later, you probably want to be
|
|
using the Encode module instead. This module *does* work with Perl 5.8, but
|
|
Encode is the preferred method in that environment.
|
|
|
|
%prep
|
|
%autosetup -n %{cpan_name}-%{cpan_version}
|
|
|
|
%build
|
|
perl Build.PL --installdirs=vendor
|
|
./Build build --flags=%{?_smp_mflags}
|
|
|
|
%check
|
|
./Build test
|
|
|
|
%install
|
|
./Build install --destdir=%{buildroot} --create_packlist=0
|
|
%perl_gen_filelist
|
|
|
|
%files -f %{name}.files
|
|
%doc Changes README
|
|
%license LICENSE
|
|
|
|
%changelog
|