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-Tree-Simple?expand=0&rev=11
This commit is contained in:
@@ -1,7 +1,7 @@
|
|||||||
#
|
#
|
||||||
# spec file for package perl-Tree-Simple
|
# spec file for package perl-Tree-Simple
|
||||||
#
|
#
|
||||||
# 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,18 +18,23 @@
|
|||||||
|
|
||||||
%define cpan_name Tree-Simple
|
%define cpan_name Tree-Simple
|
||||||
Name: perl-Tree-Simple
|
Name: perl-Tree-Simple
|
||||||
Version: 1.34
|
Version: 1.340.0
|
||||||
Release: 0
|
Release: 0
|
||||||
Summary: Simple tree object
|
# 1.34 -> normalize -> 1.340.0
|
||||||
|
%define cpan_version 1.34
|
||||||
License: Artistic-1.0 OR GPL-1.0-or-later
|
License: Artistic-1.0 OR GPL-1.0-or-later
|
||||||
|
Summary: Simple tree object
|
||||||
URL: https://metacpan.org/release/%{cpan_name}
|
URL: https://metacpan.org/release/%{cpan_name}
|
||||||
Source0: https://cpan.metacpan.org/authors/id/R/RS/RSAVAGE/%{cpan_name}-%{version}.tgz
|
Source0: https://cpan.metacpan.org/authors/id/R/RS/RSAVAGE/%{cpan_name}-%{cpan_version}.tgz
|
||||||
Source1: cpanspec.yml
|
Source1: cpanspec.yml
|
||||||
BuildArch: noarch
|
BuildArch: noarch
|
||||||
BuildRequires: perl
|
BuildRequires: perl
|
||||||
BuildRequires: perl-macros
|
BuildRequires: perl-macros
|
||||||
BuildRequires: perl(Test::Exception) >= 0.150000
|
BuildRequires: perl(Test::Exception) >= 0.15
|
||||||
BuildRequires: perl(Test::More) >= 1.001002
|
BuildRequires: perl(Test::More) >= 1.001002
|
||||||
|
Provides: perl(Tree::Simple) = %{version}
|
||||||
|
Provides: perl(Tree::Simple::Visitor) = %{version}
|
||||||
|
%undefine __perllib_provides
|
||||||
%{perl_requires}
|
%{perl_requires}
|
||||||
|
|
||||||
%description
|
%description
|
||||||
@@ -70,7 +75,7 @@ module cannot keep up with your Tree needs, i suggest switching to one of
|
|||||||
the modules listed in the OTHER TREE MODULES section below.
|
the modules listed in the OTHER TREE MODULES section below.
|
||||||
|
|
||||||
%prep
|
%prep
|
||||||
%autosetup -n %{cpan_name}-%{version}
|
%autosetup -n %{cpan_name}-%{cpan_version}
|
||||||
|
|
||||||
%build
|
%build
|
||||||
perl Makefile.PL INSTALLDIRS=vendor
|
perl Makefile.PL INSTALLDIRS=vendor
|
||||||
|
Reference in New Issue
Block a user