File perl-UTF8-R2.spec of Package perl-UTF8-R2
#
# spec file for package perl-UTF8-R2
#
# Copyright (c) 2026 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 UTF8-R2
Name: perl-UTF8-R2
Version: 0.30
Release: 0
License: Artistic-1.0 OR GPL-1.0-or-later
Summary: Makes UTF-8 scripting easy for enterprise use
URL: https://metacpan.org/release/%{cpan_name}
Source0: https://cpan.metacpan.org/authors/id/I/IN/INA/UTF8/R2/%{cpan_name}-%{version}.tar.gz
BuildArch: noarch
BuildRequires: perl
BuildRequires: perl-macros
%{perl_requires}
%description
It may sound a little ambitious, but UTF8::R2 module is aiming to replace
utf8 pragma.
Perl is said to have been able to handle Unicode since version 5.8.
However, unlike JPerl, "Easy jobs must be easy" has been lost.
This software has the following features
* supports UTF-8 literals of Perl scripts
* supports UTF-8(RFC3629), UTF-8(RFC2279), WTF8, RFC3629.ja_JP, and
WTF8.ja_JP
* does not use the UTF8 flag to avoid MOJIBAKE
* handles raw encoding to support GAIJI
* supports codepoint classes in regular expressions to work as UTF-8
codepoint
* does not change features of octet-oriented built-in functions
* You have using mb::* subroutines if you want codepoint semantics
* lc(), lcfirst(), uc(), and ucfirst() convert US-ASCII only
* codepoint range by hyphen of mb::tr() supports US-ASCII only
%prep
%autosetup -n %{cpan_name}-%{version}
find . -type f ! -path "*/t/*" ! -name "*.pl" ! -path "*/bin/*" ! -path "*/script/*" ! -path "*/scripts/*" ! -name "configure" -print0 | xargs -0 chmod 644
%build
perl Makefile.PL INSTALLDIRS=vendor
%make_build
%check
make test
%install
%perl_make_install
%perl_process_packlist
%perl_gen_filelist
%files -f %{name}.files
%doc Changes CONTRIBUTING pmake.bat README SECURITY.md
%license LICENSE
%changelog