11
0

2 Commits

2 changed files with 27 additions and 19 deletions

View File

@@ -1,3 +1,9 @@
-------------------------------------------------------------------
Tue May 20 11:17:22 UTC 2025 - Tina Müller <tina.mueller@suse.com>
- Normalize CPAN version
See https://github.com/openSUSE/cpanspec/issues/47 for details
------------------------------------------------------------------- -------------------------------------------------------------------
Mon Apr 13 16:52:38 UTC 2015 - coolo@suse.com Mon Apr 13 16:52:38 UTC 2015 - coolo@suse.com

View File

@@ -1,7 +1,7 @@
# #
# spec file for package perl-Module-Implementation # 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 # All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed # 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) # license that conforms to the Open Source Definition (Version 1.9)
# published by the Open Source Initiative. # 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 %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 License: Artistic-2.0
Group: Development/Libraries/Perl Summary: Loads one of several alternate underlying implementations for a module
Url: http://search.cpan.org/dist/Module-Implementation/ URL: https://metacpan.org/release/%{cpan_name}
Source: http://www.cpan.org/authors/id/D/DR/DROLSKY/%{cpan_name}-%{version}.tar.gz Source0: https://cpan.metacpan.org/authors/id/D/DR/DROLSKY/%{cpan_name}-%{cpan_version}.tar.gz
BuildArch: noarch BuildArch: noarch
BuildRoot: %{_tmppath}/%{name}-%{version}-build
BuildRequires: perl BuildRequires: perl
BuildRequires: perl-macros BuildRequires: perl-macros
BuildRequires: perl(Module::Runtime) >= 0.012 BuildRequires: perl(Module::Runtime) >= 0.12
BuildRequires: perl(Test::Fatal) >= 0.006 BuildRequires: perl(Test::Fatal) >= 0.6
BuildRequires: perl(Test::More) >= 0.88 BuildRequires: perl(Test::More) >= 0.88
BuildRequires: perl(Test::Requires) BuildRequires: perl(Test::Requires)
BuildRequires: perl(Try::Tiny) BuildRequires: perl(Try::Tiny)
Requires: perl(Module::Runtime) >= 0.012 Requires: perl(Module::Runtime) >= 0.12
Requires: perl(Try::Tiny) Requires: perl(Try::Tiny)
Provides: perl(Module::Implementation) = %{version}
%undefine __perllib_provides
%{perl_requires} %{perl_requires}
%description %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. something like a plugin system, not this module.
%prep %prep
%setup -q -n %{cpan_name}-%{version} %autosetup -n %{cpan_name}-%{cpan_version} -p1
%build %build
%{__perl} Makefile.PL INSTALLDIRS=vendor perl Makefile.PL INSTALLDIRS=vendor
%{__make} %{?_smp_mflags} %make_build
%check %check
%{__make} test make test
%install %install
%perl_make_install %perl_make_install
@@ -65,7 +67,7 @@ something like a plugin system, not this module.
%perl_gen_filelist %perl_gen_filelist
%files -f %{name}.files %files -f %{name}.files
%defattr(-,root,root,755) %doc Changes README.md
%doc Changes LICENSE README.md %license LICENSE
%changelog %changelog