From 1ececaa7cc1ac3e82e24fd9629dbecfd90a6674f3f974dd21ae9cea956428823 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tina=20M=C3=BCller?= Date: Fri, 19 Jul 2024 22:27:08 +0000 Subject: [PATCH] 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 --- perl-Class-Refresh.spec | 15 ++++++++++----- 1 file changed, 10 insertions(+), 5 deletions(-) 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