From f77147c47fe6277fc679c14c7483ba8b6b5d15f75df33498859d917e9061bd14 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tina=20M=C3=BCller?= Date: Tue, 20 May 2025 11:17:36 +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-Module-Implementation?expand=0&rev=14 --- perl-Module-Implementation.changes | 6 +++++ perl-Module-Implementation.spec | 40 ++++++++++++++++-------------- 2 files changed, 27 insertions(+), 19 deletions(-) diff --git a/perl-Module-Implementation.changes b/perl-Module-Implementation.changes index 11693ee..993fca1 100644 --- a/perl-Module-Implementation.changes +++ b/perl-Module-Implementation.changes @@ -1,3 +1,9 @@ +------------------------------------------------------------------- +Tue May 20 11:17:22 UTC 2025 - Tina Müller + +- Normalize CPAN version + See https://github.com/openSUSE/cpanspec/issues/47 for details + ------------------------------------------------------------------- Mon Apr 13 16:52:38 UTC 2015 - coolo@suse.com diff --git a/perl-Module-Implementation.spec b/perl-Module-Implementation.spec index 0cc2e74..b61948b 100644 --- a/perl-Module-Implementation.spec +++ b/perl-Module-Implementation.spec @@ -1,7 +1,7 @@ # # spec file for package perl-Module-Implementation # -# Copyright (c) 2015 SUSE LINUX GmbH, Nuernberg, Germany. +# Copyright (c) 2025 SUSE LLC # # All modifications and additions to the file contributed by third parties # remain the property of their copyright owners, unless otherwise agreed @@ -12,30 +12,32 @@ # license that conforms to the Open Source Definition (Version 1.9) # published by the Open Source Initiative. -# Please submit bugfixes or comments via http://bugs.opensuse.org/ +# Please submit bugfixes or comments via https://bugs.opensuse.org/ # -Name: perl-Module-Implementation -Version: 0.09 -Release: 0 %define cpan_name Module-Implementation -Summary: Loads one of several alternate underlying implementations for a module +Name: perl-Module-Implementation +Version: 0.90.0 +Release: 0 +# 0.09 -> normalize -> 0.90.0 +%define cpan_version 0.09 License: Artistic-2.0 -Group: Development/Libraries/Perl -Url: http://search.cpan.org/dist/Module-Implementation/ -Source: http://www.cpan.org/authors/id/D/DR/DROLSKY/%{cpan_name}-%{version}.tar.gz +Summary: Loads one of several alternate underlying implementations for a module +URL: https://metacpan.org/release/%{cpan_name} +Source0: https://cpan.metacpan.org/authors/id/D/DR/DROLSKY/%{cpan_name}-%{cpan_version}.tar.gz BuildArch: noarch -BuildRoot: %{_tmppath}/%{name}-%{version}-build BuildRequires: perl BuildRequires: perl-macros -BuildRequires: perl(Module::Runtime) >= 0.012 -BuildRequires: perl(Test::Fatal) >= 0.006 +BuildRequires: perl(Module::Runtime) >= 0.12 +BuildRequires: perl(Test::Fatal) >= 0.6 BuildRequires: perl(Test::More) >= 0.88 BuildRequires: perl(Test::Requires) BuildRequires: perl(Try::Tiny) -Requires: perl(Module::Runtime) >= 0.012 +Requires: perl(Module::Runtime) >= 0.12 Requires: perl(Try::Tiny) +Provides: perl(Module::Implementation) = %{version} +%undefine __perllib_provides %{perl_requires} %description @@ -50,14 +52,14 @@ time. If you want to load arbitrary implementations then you probably want something like a plugin system, not this module. %prep -%setup -q -n %{cpan_name}-%{version} +%autosetup -n %{cpan_name}-%{cpan_version} -p1 %build -%{__perl} Makefile.PL INSTALLDIRS=vendor -%{__make} %{?_smp_mflags} +perl Makefile.PL INSTALLDIRS=vendor +%make_build %check -%{__make} test +make test %install %perl_make_install @@ -65,7 +67,7 @@ something like a plugin system, not this module. %perl_gen_filelist %files -f %{name}.files -%defattr(-,root,root,755) -%doc Changes LICENSE README.md +%doc Changes README.md +%license LICENSE %changelog