From 9c5f7dfcfc8a30941f340381aeae80ce7c1b8356ef4cdb1ddfc7d417cf61957d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tina=20M=C3=BCller?= Date: Sun, 4 Aug 2024 18:30:53 +0000 Subject: [PATCH] Normalize CPAN version See https://github.com/openSUSE/cpanspec/issues/47 for details OBS-URL: https://build.opensuse.org/package/show/devel:languages:perl/perl-Unicode-MapUTF8?expand=0&rev=10 --- perl-Unicode-MapUTF8.spec | 29 +++++++++++++++-------------- 1 file changed, 15 insertions(+), 14 deletions(-) diff --git a/perl-Unicode-MapUTF8.spec b/perl-Unicode-MapUTF8.spec index 10d7973..cfd5d8d 100644 --- a/perl-Unicode-MapUTF8.spec +++ b/perl-Unicode-MapUTF8.spec @@ -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