forked from pool/perl-Class-Load
Compare commits
2 Commits
Author | SHA256 | Date | |
---|---|---|---|
f94524c98f | |||
2ebfb71206 |
@@ -1,3 +1,9 @@
|
||||
-------------------------------------------------------------------
|
||||
Mon Jun 23 21:44:53 UTC 2025 - Tina Müller <tina.mueller@suse.com>
|
||||
|
||||
- Normalize CPAN version
|
||||
See https://github.com/openSUSE/cpanspec/issues/47 for details
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Mon Jun 11 05:08:47 UTC 2018 - coolo@suse.com
|
||||
|
||||
|
@@ -1,7 +1,7 @@
|
||||
#
|
||||
# spec file for package perl-Class-Load
|
||||
#
|
||||
# Copyright (c) 2018 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,38 +12,41 @@
|
||||
# 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-Class-Load
|
||||
Version: 0.25
|
||||
Release: 0
|
||||
%define cpan_name Class-Load
|
||||
Summary: Working (Require "Class::Name") and More
|
||||
Name: perl-Class-Load
|
||||
Version: 0.250.0
|
||||
Release: 0
|
||||
# 0.25 -> normalize -> 0.250.0
|
||||
%define cpan_version 0.25
|
||||
License: Artistic-1.0 OR GPL-1.0-or-later
|
||||
Group: Development/Libraries/Perl
|
||||
Url: http://search.cpan.org/dist/Class-Load/
|
||||
Source0: https://cpan.metacpan.org/authors/id/E/ET/ETHER/%{cpan_name}-%{version}.tar.gz
|
||||
Summary: Working (require "Class::Name") and more
|
||||
URL: https://metacpan.org/release/%{cpan_name}
|
||||
Source0: https://cpan.metacpan.org/authors/id/E/ET/ETHER/%{cpan_name}-%{cpan_version}.tar.gz
|
||||
Source1: cpanspec.yml
|
||||
BuildArch: noarch
|
||||
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
||||
BuildRequires: perl
|
||||
BuildRequires: perl-macros
|
||||
BuildRequires: perl(Data::OptList) >= 0.110
|
||||
BuildRequires: perl(Module::Implementation) >= 0.04
|
||||
BuildRequires: perl(Module::Runtime) >= 0.012
|
||||
BuildRequires: perl(Package::Stash) >= 0.14
|
||||
BuildRequires: perl(Module::Implementation) >= 0.40
|
||||
BuildRequires: perl(Module::Runtime) >= 0.12
|
||||
BuildRequires: perl(Package::Stash) >= 0.140
|
||||
BuildRequires: perl(Test::Fatal)
|
||||
BuildRequires: perl(Test::More) >= 0.88
|
||||
BuildRequires: perl(Test::Needs)
|
||||
BuildRequires: perl(Try::Tiny)
|
||||
BuildRequires: perl(version)
|
||||
Requires: perl(Data::OptList) >= 0.110
|
||||
Requires: perl(Module::Implementation) >= 0.04
|
||||
Requires: perl(Module::Runtime) >= 0.012
|
||||
Requires: perl(Package::Stash) >= 0.14
|
||||
Requires: perl(Module::Implementation) >= 0.40
|
||||
Requires: perl(Module::Runtime) >= 0.12
|
||||
Requires: perl(Package::Stash) >= 0.140
|
||||
Requires: perl(Try::Tiny)
|
||||
Provides: perl(Class::Load) = %{version}
|
||||
Provides: perl(Class::Load::PP) = %{version}
|
||||
%undefine __perllib_provides
|
||||
%{perl_requires}
|
||||
|
||||
%description
|
||||
@@ -61,14 +64,14 @@ any class for which the filename does not correspond to the package name.
|
||||
For that, we provide 'is_class_loaded 'Class::Name''.
|
||||
|
||||
%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
|
||||
@@ -76,7 +79,6 @@ For that, we provide 'is_class_loaded 'Class::Name''.
|
||||
%perl_gen_filelist
|
||||
|
||||
%files -f %{name}.files
|
||||
%defattr(-,root,root,755)
|
||||
%doc Changes CONTRIBUTING README
|
||||
%license LICENSE
|
||||
|
||||
|
Reference in New Issue
Block a user