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
This commit is contained in:
@@ -1,7 +1,7 @@
|
|||||||
#
|
#
|
||||||
# spec file for package perl-Unicode-MapUTF8
|
# 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
|
# All modifications and additions to the file contributed by third parties
|
||||||
# remain the property of their copyright owners, unless otherwise agreed
|
# 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
|
%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
|
License: MIT
|
||||||
Group: Development/Libraries/Perl
|
Summary: Conversions to and from arbitrary character sets and UTF8
|
||||||
URL: https://metacpan.org/release/%{cpan_name}
|
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
|
Source1: cpanspec.yml
|
||||||
BuildArch: noarch
|
BuildArch: noarch
|
||||||
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
|
||||||
BuildRequires: perl
|
BuildRequires: perl
|
||||||
BuildRequires: perl-macros
|
BuildRequires: perl-macros
|
||||||
BuildRequires: perl(Jcode)
|
BuildRequires: perl(Jcode)
|
||||||
BuildRequires: perl(Module::Build) >= 0.420000
|
BuildRequires: perl(Module::Build) >= 0.42
|
||||||
BuildRequires: perl(Unicode::Map)
|
BuildRequires: perl(Unicode::Map)
|
||||||
BuildRequires: perl(Unicode::Map8)
|
BuildRequires: perl(Unicode::Map8)
|
||||||
BuildRequires: perl(Unicode::String)
|
BuildRequires: perl(Unicode::String)
|
||||||
@@ -39,6 +39,8 @@ Requires: perl(Jcode)
|
|||||||
Requires: perl(Unicode::Map)
|
Requires: perl(Unicode::Map)
|
||||||
Requires: perl(Unicode::Map8)
|
Requires: perl(Unicode::Map8)
|
||||||
Requires: perl(Unicode::String)
|
Requires: perl(Unicode::String)
|
||||||
|
Provides: perl(Unicode::MapUTF8) = %{version}
|
||||||
|
%undefine __perllib_provides
|
||||||
%{perl_requires}
|
%{perl_requires}
|
||||||
|
|
||||||
%description
|
%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.
|
Encode is the preferred method in that environment.
|
||||||
|
|
||||||
%prep
|
%prep
|
||||||
%setup -q -n %{cpan_name}-%{version}
|
%autosetup -n %{cpan_name}-%{cpan_version}
|
||||||
|
|
||||||
%build
|
%build
|
||||||
perl Build.PL installdirs=vendor
|
perl Build.PL --installdirs=vendor
|
||||||
./Build build flags=%{?_smp_mflags}
|
./Build build --flags=%{?_smp_mflags}
|
||||||
|
|
||||||
%check
|
%check
|
||||||
./Build test
|
./Build test
|
||||||
|
|
||||||
%install
|
%install
|
||||||
./Build install destdir=%{buildroot} create_packlist=0
|
./Build install --destdir=%{buildroot} --create_packlist=0
|
||||||
%perl_gen_filelist
|
%perl_gen_filelist
|
||||||
|
|
||||||
%files -f %{name}.files
|
%files -f %{name}.files
|
||||||
%defattr(-,root,root,755)
|
|
||||||
%doc Changes README
|
%doc Changes README
|
||||||
%license LICENSE
|
%license LICENSE
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user