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-Class-Refresh?expand=0&rev=2
This commit is contained in:
@@ -1,7 +1,7 @@
|
||||
#
|
||||
# spec file for package perl-Class-Refresh
|
||||
#
|
||||
# Copyright (c) 2020 SUSE LLC
|
||||
# Copyright (c) 2024 SUSE LLC
|
||||
#
|
||||
# All modifications and additions to the file contributed by third parties
|
||||
# remain the property of their copyright owners, unless otherwise agreed
|
||||
@@ -18,12 +18,14 @@
|
||||
|
||||
%define cpan_name Class-Refresh
|
||||
Name: perl-Class-Refresh
|
||||
Version: 0.07
|
||||
Version: 0.70.0
|
||||
Release: 0
|
||||
Summary: Refresh your classes during runtime
|
||||
# 0.07 -> normalize -> 0.70.0
|
||||
%define cpan_version 0.07
|
||||
License: Artistic-1.0 OR GPL-1.0-or-later
|
||||
Summary: Refresh your classes during runtime
|
||||
URL: https://metacpan.org/release/%{cpan_name}
|
||||
Source0: https://cpan.metacpan.org/authors/id/D/DO/DOY/%{cpan_name}-%{version}.tar.gz
|
||||
Source0: https://cpan.metacpan.org/authors/id/D/DO/DOY/%{cpan_name}-%{cpan_version}.tar.gz
|
||||
Source1: cpanspec.yml
|
||||
BuildArch: noarch
|
||||
BuildRequires: perl
|
||||
@@ -39,8 +41,11 @@ Requires: perl(Class::Load)
|
||||
Requires: perl(Class::Unload)
|
||||
Requires: perl(Devel::OverrideGlobalRequire)
|
||||
Requires: perl(Try::Tiny)
|
||||
Provides: perl(Class::Refresh) = %{version}
|
||||
%undefine __perllib_provides
|
||||
%{perl_requires}
|
||||
# MANUAL BEGIN
|
||||
# dependency for tests
|
||||
BuildRequires: perl(Moose)
|
||||
# MANUAL END
|
||||
|
||||
@@ -85,7 +90,7 @@ namespace, or defines multiple classes in a single file, this will likely
|
||||
not work.
|
||||
|
||||
%prep
|
||||
%autosetup -n %{cpan_name}-%{version}
|
||||
%autosetup -n %{cpan_name}-%{cpan_version}
|
||||
|
||||
%build
|
||||
perl Makefile.PL INSTALLDIRS=vendor
|
||||
|
||||
Reference in New Issue
Block a user