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-Module-cpmfile?expand=0&rev=5
This commit is contained in:
@@ -1,7 +1,7 @@
|
|||||||
#
|
#
|
||||||
# spec file for package perl-Module-cpmfile
|
# spec file for package perl-Module-cpmfile
|
||||||
#
|
#
|
||||||
# Copyright (c) 2022 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,25 +18,32 @@
|
|||||||
|
|
||||||
%define cpan_name Module-cpmfile
|
%define cpan_name Module-cpmfile
|
||||||
Name: perl-Module-cpmfile
|
Name: perl-Module-cpmfile
|
||||||
Version: 0.006
|
Version: 0.6.0
|
||||||
Release: 0
|
Release: 0
|
||||||
|
# 0.006 -> normalize -> 0.6.0
|
||||||
|
%define cpan_version 0.006
|
||||||
License: Artistic-1.0 OR GPL-1.0-or-later
|
License: Artistic-1.0 OR GPL-1.0-or-later
|
||||||
Summary: Parse cpmfile
|
Summary: Parse cpmfile
|
||||||
URL: https://metacpan.org/release/%{cpan_name}
|
URL: https://metacpan.org/release/%{cpan_name}
|
||||||
Source0: https://cpan.metacpan.org/authors/id/S/SK/SKAJI/%{cpan_name}-%{version}.tar.gz
|
Source0: https://cpan.metacpan.org/authors/id/S/SK/SKAJI/%{cpan_name}-%{cpan_version}.tar.gz
|
||||||
Source1: cpanspec.yml
|
Source1: cpanspec.yml
|
||||||
BuildArch: noarch
|
BuildArch: noarch
|
||||||
BuildRequires: perl
|
BuildRequires: perl
|
||||||
BuildRequires: perl-macros
|
BuildRequires: perl-macros
|
||||||
BuildRequires: perl(CPAN::Meta::Prereqs)
|
BuildRequires: perl(CPAN::Meta::Prereqs)
|
||||||
BuildRequires: perl(CPAN::Meta::Requirements) >= 2.130000
|
BuildRequires: perl(CPAN::Meta::Requirements) >= 2.130
|
||||||
|
BuildRequires: perl(Module::Build)
|
||||||
BuildRequires: perl(Module::Build::Tiny) >= 0.034
|
BuildRequires: perl(Module::Build::Tiny) >= 0.034
|
||||||
BuildRequires: perl(Module::CPANfile) >= 1.1004
|
BuildRequires: perl(Module::CPANfile) >= 1.1004
|
||||||
BuildRequires: perl(Test2::V0)
|
BuildRequires: perl(Test2::V0)
|
||||||
BuildRequires: perl(YAML::PP) >= 0.027
|
BuildRequires: perl(YAML::PP) >= 0.027
|
||||||
Requires: perl(CPAN::Meta::Prereqs)
|
Requires: perl(CPAN::Meta::Prereqs)
|
||||||
Requires: perl(CPAN::Meta::Requirements) >= 2.130000
|
Requires: perl(CPAN::Meta::Requirements) >= 2.130
|
||||||
Requires: perl(YAML::PP) >= 0.027
|
Requires: perl(YAML::PP) >= 0.027
|
||||||
|
Provides: perl(Module::cpmfile) = %{version}
|
||||||
|
Provides: perl(Module::cpmfile::Prereqs)
|
||||||
|
Provides: perl(Module::cpmfile::Util)
|
||||||
|
%undefine __perllib_provides
|
||||||
%{perl_requires}
|
%{perl_requires}
|
||||||
|
|
||||||
%description
|
%description
|
||||||
@@ -51,7 +58,7 @@ https://github.com/skaji/cpmfile/blob/main/jsonschema.json.
|
|||||||
cpmfile will be used mainly by App::cpm.
|
cpmfile will be used mainly by App::cpm.
|
||||||
|
|
||||||
%prep
|
%prep
|
||||||
%autosetup -n %{cpan_name}-%{version}
|
%autosetup -n %{cpan_name}-%{cpan_version}
|
||||||
|
|
||||||
%build
|
%build
|
||||||
perl Build.PL --installdirs=vendor
|
perl Build.PL --installdirs=vendor
|
||||||
|
Reference in New Issue
Block a user