8
0

2 Commits

2 changed files with 21 additions and 12 deletions

View File

@@ -1,3 +1,9 @@
-------------------------------------------------------------------
Tue May 20 11:12:11 UTC 2025 - Tina Müller <tina.mueller@suse.com>
- Normalize CPAN version
See https://github.com/openSUSE/cpanspec/issues/47 for details
------------------------------------------------------------------- -------------------------------------------------------------------
Tue Feb 22 03:07:54 UTC 2022 - Tina Müller <timueller+perl@suse.de> Tue Feb 22 03:07:54 UTC 2022 - Tina Müller <timueller+perl@suse.de>

View File

@@ -1,7 +1,7 @@
# #
# spec file for package perl-Package-Stash # spec file for package perl-Package-Stash
# #
# Copyright (c) 2022 SUSE LLC # Copyright (c) 2025 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,28 +18,31 @@
%define cpan_name Package-Stash %define cpan_name Package-Stash
Name: perl-Package-Stash Name: perl-Package-Stash
Version: 0.40 Version: 0.400.0
Release: 0 Release: 0
# 0.40 -> normalize -> 0.400.0
%define cpan_version 0.40
License: Artistic-1.0 OR GPL-1.0-or-later License: Artistic-1.0 OR GPL-1.0-or-later
Summary: Routines for manipulating stashes Summary: Routines for manipulating stashes
URL: https://metacpan.org/release/%{cpan_name} URL: https://metacpan.org/release/%{cpan_name}
Source0: https://cpan.metacpan.org/authors/id/E/ET/ETHER/%{cpan_name}-%{version}.tar.gz Source0: https://cpan.metacpan.org/authors/id/E/ET/ETHER/%{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::Check) >= 0.011 BuildRequires: perl(CPAN::Meta::Check) >= 0.11
BuildRequires: perl(CPAN::Meta::Requirements) BuildRequires: perl(CPAN::Meta::Requirements)
BuildRequires: perl(Dist::CheckConflicts) >= 0.02 BuildRequires: perl(Dist::CheckConflicts) >= 0.20
BuildRequires: perl(Module::Implementation) >= 0.06 BuildRequires: perl(Module::Implementation) >= 0.60
BuildRequires: perl(Package::Stash::XS) >= 0.26
BuildRequires: perl(Test::Fatal) BuildRequires: perl(Test::Fatal)
BuildRequires: perl(Test::More) >= 0.88 BuildRequires: perl(Test::More) >= 0.88
BuildRequires: perl(Test::Needs) BuildRequires: perl(Test::Needs)
Requires: perl(Dist::CheckConflicts) >= 0.02 Requires: perl(Dist::CheckConflicts) >= 0.20
Requires: perl(Module::Implementation) >= 0.06 Requires: perl(Module::Implementation) >= 0.60
Requires: perl(Package::Stash::XS) >= 0.26 Provides: perl(Package::Stash) = %{version}
Recommends: perl(Package::Stash::XS) >= 0.26 Provides: perl(Package::Stash::PP) = %{version}
%undefine __perllib_provides
Recommends: perl(Package::Stash::XS) >= 0.260
%{perl_requires} %{perl_requires}
%description %description
@@ -62,7 +65,7 @@ environment variable taking precedence), otherwise, it will use the XS
implementation if possible, falling back to the pure perl one. implementation if possible, falling back to the pure perl one.
%prep %prep
%autosetup -n %{cpan_name}-%{version} %autosetup -n %{cpan_name}-%{cpan_version} -p1
%build %build
perl Makefile.PL INSTALLDIRS=vendor perl Makefile.PL INSTALLDIRS=vendor