File perl-Module-Pluggable.spec of Package perl-Module-Pluggable
#
# spec file for package perl-Module-Pluggable
#
# Copyright (c) 2025 Andreas Vögele <andreas@andreasvoegele.com>
#
# 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.
# Please send bugfixes or comments to the author.
#
Name: perl-Module-Pluggable
Version: 6.3
Release: 0
Summary: Automatically give your module the ability to have plugins
License: GPL-1.0-or-later OR Artistic-1.0-Perl
URL: https://metacpan.org/dist/Module-Pluggable
Source: https://cpan.metacpan.org/authors/id/S/SI/SIMONW/Module-Pluggable-%{version}.tar.gz
BuildArch: noarch
AutoProv: 1
AutoReq: 0
# Build:
BuildRequires: coreutils
BuildRequires: findutils
BuildRequires: make
BuildRequires: perl
%if 0%{?fedora} > 0 || 0%{?rhel} > 0
BuildRequires: perl-generators
Requires: perl-libs
%endif
BuildRequires: perl(ExtUtils::MakeMaker)
BuildRequires: perl(strict)
BuildRequires: perl(warnings)
# Runtime:
BuildRequires: perl(Carp)
BuildRequires: perl(Exporter)
BuildRequires: perl(File::Basename)
BuildRequires: perl(File::Find)
BuildRequires: perl(File::Spec::Functions)
BuildRequires: perl(Scalar::Util)
BuildRequires: perl(deprecate)
BuildRequires: perl(if)
# Tests:
BuildRequires: perl(Data::Dumper)
BuildRequires: perl(File::Path)
BuildRequires: perl(File::Temp)
BuildRequires: perl(Test::More)
Requires: perl(Carp)
Requires: perl(Exporter)
Requires: perl(File::Basename)
Requires: perl(File::Find)
Requires: perl(File::Spec::Functions)
Requires: perl(Scalar::Util)
Requires: perl(deprecate)
Requires: perl(if)
Requires: perl(strict)
%{?perl_requires}
%{?perl_default_filter}
%description
This package provides a simple but, hopefully, extensible way of having
'plugins' for your module. Essentially all it does is export a method into
your name space that looks through a search path for .pm files and turn those
into class names. Optionally it instantiates those classes for you.
%prep
%autosetup -n Module-Pluggable-%{version}
find . -type f -print0 | xargs -0r chmod a-x
%build
perl Makefile.PL INSTALLDIRS=vendor
make
%install
%{make_install}
%{_fixperms} %{buildroot}/*
find %{buildroot} \
\( -name perllocal.pod -o -name .packlist -o -type d -empty \) \
-delete
%check
make test
%files
%defattr(-, root, root)
%doc Changes README
%{perl_vendorlib}/*
%{_mandir}/man3/*
%changelog