2009-08-30 13:42:48 +00:00
|
|
|
#
|
2011-11-17 15:40:27 +00:00
|
|
|
# spec file for package perl-Module-Pluggable
|
2009-08-30 13:42:48 +00:00
|
|
|
#
|
2025-01-17 00:03:42 +00:00
|
|
|
# Copyright (c) 2025 SUSE LLC
|
2009-08-30 13:42:48 +00:00
|
|
|
#
|
|
|
|
# All modifications and additions to the file contributed by third parties
|
|
|
|
# remain the property of their copyright owners, unless otherwise agreed
|
|
|
|
# upon. The license for this file, and modifications and additions to the
|
|
|
|
# file, is the same license as for the pristine package itself (unless the
|
|
|
|
# license for the pristine package is not an Open Source License, in which
|
|
|
|
# case the license is the MIT License). An "Open Source License" is a
|
|
|
|
# license that conforms to the Open Source Definition (Version 1.9)
|
|
|
|
# published by the Open Source Initiative.
|
|
|
|
|
2025-01-09 16:25:32 +00:00
|
|
|
# Please submit bugfixes or comments via https://bugs.opensuse.org/
|
2009-08-30 13:42:48 +00:00
|
|
|
#
|
|
|
|
|
|
|
|
|
2025-01-09 16:25:32 +00:00
|
|
|
%define cpan_name Module-Pluggable
|
2009-08-30 13:42:48 +00:00
|
|
|
Name: perl-Module-Pluggable
|
2025-01-17 00:03:42 +00:00
|
|
|
Version: 6.300.0
|
2014-04-23 10:07:41 +00:00
|
|
|
Release: 0
|
2025-01-17 00:03:42 +00:00
|
|
|
# 6.3 -> normalize -> 6.300.0
|
|
|
|
%define cpan_version 6.3
|
2025-01-09 16:25:32 +00:00
|
|
|
License: Artistic-1.0 OR GPL-1.0-or-later
|
|
|
|
Summary: Automatically give your module the ability to have plugins
|
|
|
|
URL: https://metacpan.org/release/%{cpan_name}
|
|
|
|
Source0: https://cpan.metacpan.org/authors/id/S/SI/SIMONW/%{cpan_name}-%{cpan_version}.tar.gz
|
2015-06-26 06:03:20 +00:00
|
|
|
Source1: cpanspec.yml
|
2025-08-12 18:15:35 +02:00
|
|
|
Source100: README.md
|
2014-04-23 10:07:41 +00:00
|
|
|
BuildArch: noarch
|
|
|
|
BuildRequires: perl
|
|
|
|
BuildRequires: perl-macros
|
2025-01-09 16:25:32 +00:00
|
|
|
Provides: perl(Devel::InnerPackage) = 0.4
|
|
|
|
Provides: perl(Module::Pluggable) = %{version}
|
|
|
|
Provides: perl(Module::Pluggable::Object) = 5.2
|
|
|
|
%undefine __perllib_provides
|
2015-08-08 13:40:20 +00:00
|
|
|
Recommends: perl(Module::Runtime) >= 0.012
|
2014-04-23 10:07:41 +00:00
|
|
|
%{perl_requires}
|
2009-08-30 13:42:48 +00:00
|
|
|
|
|
|
|
%description
|
2015-06-26 06:03:20 +00:00
|
|
|
Provides a simple but, hopefully, extensible way of having 'plugins' for
|
|
|
|
your module. Obviously this isn't going to be the be all and end all of
|
|
|
|
solutions but it works for me.
|
|
|
|
|
|
|
|
Essentially all it does is export a method into your namespace that looks
|
|
|
|
through a search path for .pm files and turn those into class names.
|
|
|
|
|
|
|
|
Optionally it instantiates those classes for you.
|
2009-08-30 13:42:48 +00:00
|
|
|
|
|
|
|
%prep
|
2025-01-09 16:25:32 +00:00
|
|
|
%autosetup -n %{cpan_name}-%{cpan_version}
|
|
|
|
|
|
|
|
find . -type f ! -path "*/t/*" ! -name "*.pl" ! -path "*/bin/*" ! -path "*/script/*" ! -path "*/scripts/*" ! -name "configure" -print0 | xargs -0 chmod 644
|
2009-08-30 13:42:48 +00:00
|
|
|
|
|
|
|
%build
|
2025-01-09 16:25:32 +00:00
|
|
|
perl Makefile.PL INSTALLDIRS=vendor
|
|
|
|
%make_build
|
2009-08-30 13:42:48 +00:00
|
|
|
|
2014-04-23 10:07:41 +00:00
|
|
|
%check
|
2025-01-09 16:25:32 +00:00
|
|
|
make test
|
2009-08-30 13:42:48 +00:00
|
|
|
|
2015-06-26 06:03:20 +00:00
|
|
|
%install
|
2015-08-08 13:40:20 +00:00
|
|
|
%perl_make_install
|
|
|
|
%perl_process_packlist
|
2015-06-26 06:03:20 +00:00
|
|
|
%perl_gen_filelist
|
|
|
|
|
2014-04-23 10:07:41 +00:00
|
|
|
%files -f %{name}.files
|
2015-06-26 06:03:20 +00:00
|
|
|
%doc Changes README
|
2009-08-30 13:42:48 +00:00
|
|
|
|
|
|
|
%changelog
|