From dd11d7afab8a5fb1bac70adb10c845fd6ce0f7f633f14e304ccf685f4518a0ed Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tina=20M=C3=BCller?= Date: Sun, 18 Aug 2024 21:57:56 +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-Test-LoadAllModules?expand=0&rev=4 --- perl-Test-LoadAllModules.spec | 26 ++++++++++++++------------ 1 file changed, 14 insertions(+), 12 deletions(-) diff --git a/perl-Test-LoadAllModules.spec b/perl-Test-LoadAllModules.spec index 9e87198..2c72aa8 100644 --- a/perl-Test-LoadAllModules.spec +++ b/perl-Test-LoadAllModules.spec @@ -1,7 +1,7 @@ # # spec file for package perl-Test-LoadAllModules # -# Copyright (c) 2019 SUSE LINUX GmbH, Nuernberg, Germany. +# 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 @@ -16,35 +16,38 @@ # -Name: perl-Test-LoadAllModules -Version: 0.022 -Release: 0 %define cpan_name Test-LoadAllModules -Summary: Do use_ok for modules in search path +Name: perl-Test-LoadAllModules +Version: 0.22.0 +Release: 0 +# 0.022 -> normalize -> 0.22.0 +%define cpan_version 0.022 License: Artistic-1.0 OR GPL-1.0-or-later -Group: Development/Libraries/Perl -Url: https://metacpan.org/release/%{cpan_name} -Source0: https://cpan.metacpan.org/authors/id/K/KI/KITANO/%{cpan_name}-%{version}.tar.gz +Summary: Do use_ok for modules in search path +URL: https://metacpan.org/release/%{cpan_name} +Source0: https://cpan.metacpan.org/authors/id/K/KI/KITANO/%{cpan_name}-%{cpan_version}.tar.gz Source1: cpanspec.yml BuildArch: noarch -BuildRoot: %{_tmppath}/%{name}-%{version}-build BuildRequires: perl BuildRequires: perl-macros +BuildRequires: perl(ExtUtils::MakeMaker) >= 6.36 BuildRequires: perl(List::MoreUtils) BuildRequires: perl(Module::Pluggable::Object) Requires: perl(List::MoreUtils) Requires: perl(Module::Pluggable::Object) +Provides: perl(Test::LoadAllModules) = %{version} +%undefine __perllib_provides %{perl_requires} %description Test::LoadAllModules do use_ok for modules in search_path. %prep -%setup -q -n %{cpan_name}-%{version} +%autosetup -n %{cpan_name}-%{cpan_version} %build PERL_USE_UNSAFE_INC=1 perl Makefile.PL INSTALLDIRS=vendor -make %{?_smp_mflags} +%make_build %check make test @@ -55,7 +58,6 @@ make test %perl_gen_filelist %files -f %{name}.files -%defattr(-,root,root,755) %doc Changes README %changelog