%{?scl:%scl_package perl-Module-Pluggable} # Run optional test %if ! (0%{?rhel}) && ! (0%{?scl:1}) %bcond_without perl_Module_Pluggable_enables_optional_test %else %bcond_with perl_Module_Pluggable_enables_optional_test %endif Name: %{?scl_prefix}perl-Module-Pluggable Epoch: 2 Version: 5.2 Release: 13%{?dist} Summary: Automatically give your module the ability to have plugins License: GPL+ or Artistic URL: https://metacpan.org/release/Module-Pluggable Source0: https://cpan.metacpan.org/authors/id/S/SI/SIMONW/Module-Pluggable-%{version}.tar.gz BuildArch: noarch BuildRequires: coreutils BuildRequires: findutils BuildRequires: make BuildRequires: %{?scl_prefix}perl-interpreter BuildRequires: %{?scl_prefix}perl-generators BuildRequires: %{?scl_prefix}perl(ExtUtils::MakeMaker) BuildRequires: %{?scl_prefix}perl(File::Spec::Functions) >= 3.00 BuildRequires: %{?scl_prefix}perl(strict) BuildRequires: %{?scl_prefix}perl(warnings) # Run-time: BuildRequires: %{?scl_prefix}perl(Carp) BuildRequires: %{?scl_prefix}perl(deprecate) BuildRequires: %{?scl_prefix}perl(Exporter) >= 5.57 BuildRequires: %{?scl_prefix}perl(File::Basename) BuildRequires: %{?scl_prefix}perl(File::Find) BuildRequires: %{?scl_prefix}perl(if) BuildRequires: %{?scl_prefix}perl(vars) # Recommended run-time: BuildRequires: %{?scl_prefix}perl(Module::Runtime) >= 0.012 # Tests: BuildRequires: %{?scl_prefix}perl(base) BuildRequires: %{?scl_prefix}perl(Data::Dumper) BuildRequires: %{?scl_prefix}perl(FindBin) BuildRequires: %{?scl_prefix}perl(lib) BuildRequires: %{?scl_prefix}perl(Test::More) >= 0.62 # IncTest is a locally overloaded module in t/lib/Text/Abbrev.pm %if %{with perl_Module_Pluggable_enables_optional_test} # Optional tests: BuildRequires: %{?scl_prefix}perl(App::FatPacker) >= 0.10.0 BuildRequires: %{?scl_prefix}perl(Cwd) BuildRequires: %{?scl_prefix}perl(File::Copy) BuildRequires: %{?scl_prefix}perl(File::Path) BuildRequires: %{?scl_prefix}perl(File::Temp) %endif Requires: %{?scl_prefix}perl(:MODULE_COMPAT_%(%{?scl:scl enable %{scl} '}eval "$(perl -V:version)";echo $version%{?scl:'})) Requires: %{?scl_prefix}perl(File::Spec::Functions) >= 3.00 Requires: %{?scl_prefix}perl(deprecate) # Recommended run-time: Requires: %{?scl_prefix}perl(Module::Runtime) >= 0.012 # Filter under-specified dependencies %global __requires_exclude %{?__requires_exclude:%__requires_exclude|}^%{?scl_prefix}perl\\(File::Spec::Functions\\)$ %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 %setup -q -n Module-Pluggable-%{version} find -type f -exec chmod -x {} + %build %{?scl:scl enable %{scl} '}perl Makefile.PL INSTALLDIRS=vendor && make %{?_smp_mflags}%{?scl:'} %install %{?scl:scl enable %{scl} '}make pure_install DESTDIR=%{buildroot}%{?scl:'} find %{buildroot} -type f -name .packlist -exec rm -f {} ';' %{_fixperms} %{buildroot}/* %check %{?scl:scl enable %{scl} '}make test%{?scl:'} %files %doc Changes README %{perl_vendorlib}/* %{_mandir}/man3/* %changelog * Mon Jan 06 2020 Jitka Plesnikova - 2:5.2-13 - SCL * Fri Jul 26 2019 Fedora Release Engineering - 2:5.2-12 - Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild * Fri May 31 2019 Jitka Plesnikova - 2:5.2-11 - Perl 5.30 rebuild * Fri Feb 01 2019 Fedora Release Engineering - 2:5.2-10 - Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild * Fri Jul 13 2018 Fedora Release Engineering - 2:5.2-9 - Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild * Thu Jun 28 2018 Jitka Plesnikova - 2:5.2-8 - Perl 5.28 rebuild * Thu Feb 08 2018 Fedora Release Engineering - 2:5.2-7 - Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild * Thu Jul 27 2017 Fedora Release Engineering - 2:5.2-6 - Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild * Mon Jun 05 2017 Jitka Plesnikova - 2:5.2-5 - Perl 5.26 rebuild * Sat Feb 11 2017 Fedora Release Engineering - 2:5.2-4 - Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild * Sun May 15 2016 Jitka Plesnikova - 2:5.2-3 - Perl 5.24 rebuild * Thu Feb 04 2016 Fedora Release Engineering - 2:5.2-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild * Mon Aug 31 2015 Petr Pisar - 2:5.2-1 - 5.2 bump * Thu Jun 18 2015 Fedora Release Engineering - 1:5.10-6 - Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild * Wed Jun 10 2015 Jitka Plesnikova - 1:5.10-5 - Perl 5.22 re-rebuild of bootstrapped packages * Fri Jun 05 2015 Jitka Plesnikova - 1:5.10-4 - Perl 5.22 rebuild * Wed Aug 27 2014 Jitka Plesnikova - 1:5.10-3 - Perl 5.20 rebuild * Sat Jun 07 2014 Fedora Release Engineering - 1:5.10-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild * Mon Jan 06 2014 Petr Pisar - 1:5.10-1 - 5.1 bump * Mon Jan 06 2014 Petr Pisar - 1:5.00-1 - 5.0 bump * Sat Aug 03 2013 Fedora Release Engineering - 1:4.80-291 - Rebuilt for https://fedoraproject.org/wiki/Fedora_20_Mass_Rebuild * Mon Jul 15 2013 Petr Pisar - 1:4.80-290 - Increase release to favour standalone package * Fri Jul 12 2013 Petr Pisar - 1:4.8-2 - Perl 5.18 rebuild * Tue May 28 2013 Petr Pisar - 1:4.8-1 - 4.8 bump * Thu Feb 28 2013 Petr Pisar - 1:4.7-1 - 4.7 bump * Thu Jan 24 2013 Petr Pisar 1:4.6-1 - Specfile autogenerated by cpanspec 1.78.