diff --git a/perl-Class-Refresh.spec b/perl-Class-Refresh.spec index 437fe1c..b6670b9 100644 --- a/perl-Class-Refresh.spec +++ b/perl-Class-Refresh.spec @@ -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