2024-08-04 18:30:53 +00:00
committed by Git OBS Bridge
parent d180a8255d
commit 9c5f7dfcfc

View File

@@ -1,7 +1,7 @@
#
# spec file for package perl-Unicode-MapUTF8
#
# Copyright (c) 2020 SUSE LLC
# 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
@@ -16,22 +16,22 @@
#
Name: perl-Unicode-MapUTF8
Version: 1.14
Release: 0
%define cpan_name Unicode-MapUTF8
Summary: Conversions to and from arbitrary character sets and UTF8
Name: perl-Unicode-MapUTF8
Version: 1.140.0
Release: 0
# 1.14 -> normalize -> 1.140.0
%define cpan_version 1.14
License: MIT
Group: Development/Libraries/Perl
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}-%{version}.tar.gz
Source0: https://cpan.metacpan.org/authors/id/S/SN/SNOWHARE/%{cpan_name}-%{cpan_version}.tar.gz
Source1: cpanspec.yml
BuildArch: noarch
BuildRoot: %{_tmppath}/%{name}-%{version}-build
BuildRequires: perl
BuildRequires: perl-macros
BuildRequires: perl(Jcode)
BuildRequires: perl(Module::Build) >= 0.420000
BuildRequires: perl(Module::Build) >= 0.42
BuildRequires: perl(Unicode::Map)
BuildRequires: perl(Unicode::Map8)
BuildRequires: perl(Unicode::String)
@@ -39,6 +39,8 @@ 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
@@ -66,21 +68,20 @@ using the Encode module instead. This module *does* work with Perl 5.8, but
Encode is the preferred method in that environment.
%prep
%setup -q -n %{cpan_name}-%{version}
%autosetup -n %{cpan_name}-%{cpan_version}
%build
perl Build.PL installdirs=vendor
./Build build flags=%{?_smp_mflags}
perl Build.PL --installdirs=vendor
./Build build --flags=%{?_smp_mflags}
%check
./Build test
%install
./Build install destdir=%{buildroot} create_packlist=0
./Build install --destdir=%{buildroot} --create_packlist=0
%perl_gen_filelist
%files -f %{name}.files
%defattr(-,root,root,755)
%doc Changes README
%license LICENSE