# Run optional test %if ! (0%{?rhel}) %bcond_without perl_Module_Pluggable_enables_optional_test %else %bcond_with perl_Module_Pluggable_enables_optional_test %endif Name: perl-Module-Pluggable Epoch: 2 Version: 5.2 Release: 7%{?dist} Summary: Automatically give your module the ability to have plugins License: GPL+ or Artistic Group: Development/Libraries URL: http://search.cpan.org/dist/Module-Pluggable/ Source0: http://www.cpan.org/authors/id/S/SI/SIMONW/Module-Pluggable-%{version}.tar.gz BuildArch: noarch BuildRequires: coreutils BuildRequires: findutils BuildRequires: make BuildRequires: perl-interpreter BuildRequires: perl-generators BuildRequires: perl(ExtUtils::MakeMaker) BuildRequires: perl(File::Spec::Functions) >= 3.00 BuildRequires: perl(strict) BuildRequires: perl(warnings) # Run-time: BuildRequires: perl(Carp) BuildRequires: perl(deprecate) BuildRequires: perl(Exporter) >= 5.57 BuildRequires: perl(File::Basename) BuildRequires: perl(File::Find) BuildRequires: perl(if) BuildRequires: perl(vars) # Recommended run-time: BuildRequires: perl(Module::Runtime) >= 0.012 # Tests: BuildRequires: perl(base) BuildRequires: perl(Data::Dumper) BuildRequires: perl(FindBin) BuildRequires: perl(lib) BuildRequires: 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: perl(App::FatPacker) >= 0.10.0 BuildRequires: perl(Cwd) BuildRequires: perl(File::Copy) BuildRequires: perl(File::Path) BuildRequires: perl(File::Temp) %endif Requires: perl(:MODULE_COMPAT_%(eval "`perl -V:version`"; echo $version)) Requires: perl(File::Spec::Functions) >= 3.00 Requires: perl(deprecate) # Recommended run-time: Recommends: perl(Module::Runtime) >= 0.012 # Filter under-specified dependencies %global __requires_exclude %{?__requires_exclude:%__requires_exclude|}^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 perl Makefile.PL INSTALLDIRS=vendor make %{?_smp_mflags} %install make pure_install DESTDIR=%{buildroot} find %{buildroot} -type f -name .packlist -exec rm -f {} ';' %{_fixperms} %{buildroot}/* %check make test %files %doc Changes README %{perl_vendorlib}/* %{_mandir}/man3/* %changelog * 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.