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-Return-MultiLevel?expand=0&rev=5
This commit is contained in:
@@ -1,7 +1,7 @@
|
|||||||
#
|
#
|
||||||
# spec file for package perl-Return-MultiLevel
|
# spec file for package perl-Return-MultiLevel
|
||||||
#
|
#
|
||||||
# Copyright (c) 2021 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
|
||||||
@@ -18,12 +18,14 @@
|
|||||||
|
|
||||||
%define cpan_name Return-MultiLevel
|
%define cpan_name Return-MultiLevel
|
||||||
Name: perl-Return-MultiLevel
|
Name: perl-Return-MultiLevel
|
||||||
Version: 0.08
|
Version: 0.80.0
|
||||||
Release: 0
|
Release: 0
|
||||||
Summary: Return across multiple call levels
|
# 0.08 -> normalize -> 0.80.0
|
||||||
|
%define cpan_version 0.08
|
||||||
License: Artistic-1.0 OR GPL-1.0-or-later
|
License: Artistic-1.0 OR GPL-1.0-or-later
|
||||||
|
Summary: Return across multiple call levels
|
||||||
URL: https://metacpan.org/release/%{cpan_name}
|
URL: https://metacpan.org/release/%{cpan_name}
|
||||||
Source0: https://cpan.metacpan.org/authors/id/P/PL/PLICEASE/%{cpan_name}-%{version}.tar.gz
|
Source0: https://cpan.metacpan.org/authors/id/P/PL/PLICEASE/%{cpan_name}-%{cpan_version}.tar.gz
|
||||||
Source1: cpanspec.yml
|
Source1: cpanspec.yml
|
||||||
BuildArch: noarch
|
BuildArch: noarch
|
||||||
BuildRequires: perl
|
BuildRequires: perl
|
||||||
@@ -32,6 +34,8 @@ BuildRequires: perl(Test::Fatal)
|
|||||||
BuildRequires: perl(Test::More) >= 0.98
|
BuildRequires: perl(Test::More) >= 0.98
|
||||||
BuildRequires: perl(parent)
|
BuildRequires: perl(parent)
|
||||||
Requires: perl(parent)
|
Requires: perl(parent)
|
||||||
|
Provides: perl(Return::MultiLevel) = %{version}
|
||||||
|
%undefine __perllib_provides
|
||||||
Recommends: perl(Scope::Upper)
|
Recommends: perl(Scope::Upper)
|
||||||
%{perl_requires}
|
%{perl_requires}
|
||||||
|
|
||||||
@@ -46,8 +50,9 @@ Another way to think about it is that the "multi-level return" coderef
|
|||||||
represents a single-use/upward-only continuation.
|
represents a single-use/upward-only continuation.
|
||||||
|
|
||||||
%prep
|
%prep
|
||||||
%autosetup -n %{cpan_name}-%{version}
|
%autosetup -n %{cpan_name}-%{cpan_version}
|
||||||
find . -type f ! -path "*/t/*" ! -name "*.pl" ! -path "*/bin/*" ! -path "*/script/*" ! -name "configure" -print0 | xargs -0 chmod 644
|
|
||||||
|
find . -type f ! -path "*/t/*" ! -name "*.pl" ! -path "*/bin/*" ! -path "*/script/*" ! -path "*/scripts/*" ! -name "configure" -print0 | xargs -0 chmod 644
|
||||||
|
|
||||||
%build
|
%build
|
||||||
perl Makefile.PL INSTALLDIRS=vendor
|
perl Makefile.PL INSTALLDIRS=vendor
|
||||||
@@ -62,7 +67,7 @@ make test
|
|||||||
%perl_gen_filelist
|
%perl_gen_filelist
|
||||||
|
|
||||||
%files -f %{name}.files
|
%files -f %{name}.files
|
||||||
%doc author.yml Changes README
|
%doc Changes README
|
||||||
%license LICENSE
|
%license LICENSE
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
|
|||||||
Reference in New Issue
Block a user