f0450c
# Run optional test
f0450c
%if ! (0%{?rhel})
f0450c
%bcond_without perl_Module_Pluggable_enables_optional_test
f0450c
%else
f0450c
%bcond_with perl_Module_Pluggable_enables_optional_test
f0450c
%endif
f0450c
f0450c
Name:           perl-Module-Pluggable
f0450c
Epoch:          2
f0450c
Version:        5.2
f0450c
Release:        7%{?dist}
f0450c
Summary:        Automatically give your module the ability to have plugins
f0450c
License:        GPL+ or Artistic
f0450c
Group:          Development/Libraries
f0450c
URL:            http://search.cpan.org/dist/Module-Pluggable/
f0450c
Source0:        http://www.cpan.org/authors/id/S/SI/SIMONW/Module-Pluggable-%{version}.tar.gz
f0450c
BuildArch:      noarch
f0450c
BuildRequires:  coreutils
f0450c
BuildRequires:  findutils
f0450c
BuildRequires:  make
f0450c
BuildRequires:  perl-interpreter
f0450c
BuildRequires:  perl-generators
f0450c
BuildRequires:  perl(ExtUtils::MakeMaker)
f0450c
BuildRequires:  perl(File::Spec::Functions) >= 3.00
f0450c
BuildRequires:  perl(strict)
f0450c
BuildRequires:  perl(warnings)
f0450c
# Run-time:
f0450c
BuildRequires:  perl(Carp)
f0450c
BuildRequires:  perl(deprecate)
f0450c
BuildRequires:  perl(Exporter) >= 5.57
f0450c
BuildRequires:  perl(File::Basename)
f0450c
BuildRequires:  perl(File::Find)
f0450c
BuildRequires:  perl(if)
f0450c
BuildRequires:  perl(vars)
f0450c
# Recommended run-time:
f0450c
BuildRequires:  perl(Module::Runtime) >= 0.012
f0450c
# Tests:
f0450c
BuildRequires:  perl(base)
f0450c
BuildRequires:  perl(Data::Dumper)
f0450c
BuildRequires:  perl(FindBin)
f0450c
BuildRequires:  perl(lib)
f0450c
BuildRequires:  perl(Test::More) >= 0.62
f0450c
# IncTest is a locally overloaded module in t/lib/Text/Abbrev.pm
f0450c
%if %{with perl_Module_Pluggable_enables_optional_test}
f0450c
# Optional tests:
f0450c
BuildRequires:  perl(App::FatPacker) >= 0.10.0
f0450c
BuildRequires:  perl(Cwd)
f0450c
BuildRequires:  perl(File::Copy)
f0450c
BuildRequires:  perl(File::Path)
f0450c
BuildRequires:  perl(File::Temp)
f0450c
%endif
f0450c
Requires:       perl(:MODULE_COMPAT_%(eval "`perl -V:version`"; echo $version))
f0450c
Requires:       perl(File::Spec::Functions) >= 3.00
f0450c
Requires:       perl(deprecate)
f0450c
# Recommended run-time:
f0450c
Recommends:     perl(Module::Runtime) >= 0.012
f0450c
f0450c
# Filter under-specified dependencies
f0450c
%global __requires_exclude %{?__requires_exclude:%__requires_exclude|}^perl\\(File::Spec::Functions\\)$
f0450c
f0450c
%description
f0450c
This package provides a simple but, hopefully, extensible way of having
f0450c
'plugins' for your module. Essentially all it does is export a method into
f0450c
your name space that looks through a search path for .pm files and turn those
f0450c
into class names. Optionally it instantiates those classes for you.
f0450c
f0450c
%prep
f0450c
%setup -q -n Module-Pluggable-%{version}
f0450c
find -type f -exec chmod -x {} +
f0450c
f0450c
%build
f0450c
perl Makefile.PL INSTALLDIRS=vendor
f0450c
make %{?_smp_mflags}
f0450c
f0450c
%install
f0450c
make pure_install DESTDIR=%{buildroot}
f0450c
find %{buildroot} -type f -name .packlist -exec rm -f {} ';'
f0450c
%{_fixperms} %{buildroot}/*
f0450c
f0450c
%check
f0450c
make test
f0450c
f0450c
%files
f0450c
%doc Changes README
f0450c
%{perl_vendorlib}/*
f0450c
%{_mandir}/man3/*
f0450c
f0450c
%changelog
f0450c
* Thu Feb 08 2018 Fedora Release Engineering <releng@fedoraproject.org> - 2:5.2-7
f0450c
- Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild
f0450c
f0450c
* Thu Jul 27 2017 Fedora Release Engineering <releng@fedoraproject.org> - 2:5.2-6
f0450c
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild
f0450c
f0450c
* Mon Jun 05 2017 Jitka Plesnikova <jplesnik@redhat.com> - 2:5.2-5
f0450c
- Perl 5.26 rebuild
f0450c
f0450c
* Sat Feb 11 2017 Fedora Release Engineering <releng@fedoraproject.org> - 2:5.2-4
f0450c
- Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild
f0450c
f0450c
* Sun May 15 2016 Jitka Plesnikova <jplesnik@redhat.com> - 2:5.2-3
f0450c
- Perl 5.24 rebuild
f0450c
f0450c
* Thu Feb 04 2016 Fedora Release Engineering <releng@fedoraproject.org> - 2:5.2-2
f0450c
- Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild
f0450c
f0450c
* Mon Aug 31 2015 Petr Pisar <ppisar@redhat.com> - 2:5.2-1
f0450c
- 5.2 bump
f0450c
f0450c
* Thu Jun 18 2015 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1:5.10-6
f0450c
- Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild
f0450c
f0450c
* Wed Jun 10 2015 Jitka Plesnikova <jplesnik@redhat.com> - 1:5.10-5
f0450c
- Perl 5.22 re-rebuild of bootstrapped packages
f0450c
f0450c
* Fri Jun 05 2015 Jitka Plesnikova <jplesnik@redhat.com> - 1:5.10-4
f0450c
- Perl 5.22 rebuild
f0450c
f0450c
* Wed Aug 27 2014 Jitka Plesnikova <jplesnik@redhat.com> - 1:5.10-3
f0450c
- Perl 5.20 rebuild
f0450c
f0450c
* Sat Jun 07 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1:5.10-2
f0450c
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild
f0450c
f0450c
* Mon Jan 06 2014 Petr Pisar <ppisar@redhat.com> - 1:5.10-1
f0450c
- 5.1 bump
f0450c
f0450c
* Mon Jan 06 2014 Petr Pisar <ppisar@redhat.com> - 1:5.00-1
f0450c
- 5.0 bump
f0450c
f0450c
* Sat Aug 03 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1:4.80-291
f0450c
- Rebuilt for https://fedoraproject.org/wiki/Fedora_20_Mass_Rebuild
f0450c
f0450c
* Mon Jul 15 2013 Petr Pisar <ppisar@redhat.com> - 1:4.80-290
f0450c
- Increase release to favour standalone package
f0450c
f0450c
* Fri Jul 12 2013 Petr Pisar <ppisar@redhat.com> - 1:4.8-2
f0450c
- Perl 5.18 rebuild
f0450c
f0450c
* Tue May 28 2013 Petr Pisar <ppisar@redhat.com> - 1:4.8-1
f0450c
- 4.8 bump
f0450c
f0450c
* Thu Feb 28 2013 Petr Pisar <ppisar@redhat.com> - 1:4.7-1
f0450c
- 4.7 bump
f0450c
f0450c
* Thu Jan 24 2013 Petr Pisar <ppisar@redhat.com> 1:4.6-1
f0450c
- Specfile autogenerated by cpanspec 1.78.