Files
perl-Unicode-UTF8simple/perl-Unicode-UTF8simple.spec
2025-08-12 18:18:20 +02:00

66 lines
2.1 KiB
RPMSpec

#
# spec file for package perl-Unicode-UTF8simple
#
# Copyright (c) 2025 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-UTF8simple
Name: perl-Unicode-UTF8simple
Version: 1.60.0
Release: 0
# 1.06 -> normalize -> 1.60.0
%define cpan_version 1.06
License: CHECK(Artistic-1.0 or GPL-1.0-or-later)
Summary: Conversions to/from UTF8 from/to charactersets
URL: https://metacpan.org/release/%{cpan_name}
Source0: https://cpan.metacpan.org/authors/id/G/GU/GUS/%{cpan_name}-%{cpan_version}.tar.gz
Source100: README.md
BuildArch: noarch
BuildRequires: perl
BuildRequires: perl-macros
Provides: perl(Unicode::UTF8simple) = %{version}
%undefine __perllib_provides
%{perl_requires}
%description
Provides UTF-8 conversion for perl versions from 5.00 and up. It was mainly
written for use with perl 5.00 to 5.6.0 because those perl versions do not
support Unicode::MapUTF8 or Encode.
Unicode::UTF8simple is written in plain perl (no C code) and will work with
any Perl 5 version. It is just slightly slower than Encode.
%prep
%autosetup -n %{cpan_name}-%{cpan_version} -p1
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 gb2312.txt README
%changelog