|
|
599c40 |
Name: perl-Module-Pluggable
|
|
|
599c40 |
# Epoch to compete with perl.spec
|
|
|
599c40 |
Epoch: 1
|
|
|
599c40 |
Version: 4.8
|
|
|
973403 |
Release: 3%{?dist}
|
|
|
599c40 |
Summary: Automatically give your module the ability to have plugins
|
|
|
599c40 |
License: GPL+ or Artistic
|
|
|
599c40 |
Group: Development/Libraries
|
|
|
599c40 |
URL: http://search.cpan.org/dist/Module-Pluggable/
|
|
|
599c40 |
Source0: http://www.cpan.org/authors/id/S/SI/SIMONW/Module-Pluggable-%{version}.tar.gz
|
|
|
973403 |
# Do not ignore single-letter-named packages, bug #1048708, CPAN RT#89680,
|
|
|
973403 |
# fixed in 5.0.
|
|
|
973403 |
Patch0: Module-Pluggable-4.8-Allow-single-letter-package-names.patch
|
|
|
599c40 |
BuildArch: noarch
|
|
|
599c40 |
BuildRequires: perl
|
|
|
599c40 |
BuildRequires: perl(FindBin)
|
|
|
599c40 |
BuildRequires: perl(Module::Build)
|
|
|
599c40 |
BuildRequires: perl(strict)
|
|
|
599c40 |
# Run-time:
|
|
|
599c40 |
BuildRequires: perl(base)
|
|
|
599c40 |
BuildRequires: perl(Carp)
|
|
|
599c40 |
%if 0%(perl -e 'print $] > 5.017')
|
|
|
599c40 |
BuildRequires: perl(deprecate)
|
|
|
599c40 |
%endif
|
|
|
599c40 |
BuildRequires: perl(Exporter)
|
|
|
599c40 |
BuildRequires: perl(File::Basename)
|
|
|
599c40 |
BuildRequires: perl(File::Find)
|
|
|
599c40 |
BuildRequires: perl(File::Spec::Functions) >= 3.00
|
|
|
599c40 |
BuildRequires: perl(if)
|
|
|
599c40 |
BuildRequires: perl(vars)
|
|
|
599c40 |
# Tests:
|
|
|
599c40 |
BuildRequires: perl(Data::Dumper)
|
|
|
599c40 |
BuildRequires: perl(lib)
|
|
|
599c40 |
BuildRequires: perl(Test::More) >= 0.62
|
|
|
599c40 |
Requires: perl(:MODULE_COMPAT_%(eval "`perl -V:version`"; echo $version))
|
|
|
599c40 |
Requires: perl(File::Basename)
|
|
|
599c40 |
Requires: perl(File::Spec::Functions) >= 3.00
|
|
|
599c40 |
%if 0%(perl -e 'print $] > 5.017')
|
|
|
599c40 |
Requires: perl(deprecate)
|
|
|
599c40 |
%endif
|
|
|
599c40 |
|
|
|
599c40 |
# Filter under-specified dependencies
|
|
|
599c40 |
%global __requires_exclude %{?__requires_exclude:%__requires_exclude|}^perl\\(File::Spec::Functions\\)$
|
|
|
599c40 |
|
|
|
599c40 |
%description
|
|
|
599c40 |
This package provides a simple but, hopefully, extensible way of having
|
|
|
599c40 |
'plugins' for your module. Essentially all it does is export a method into
|
|
|
599c40 |
your name space that looks through a search path for .pm files and turn those
|
|
|
599c40 |
into class names. Optionally it instantiates those classes for you.
|
|
|
599c40 |
|
|
|
599c40 |
%prep
|
|
|
599c40 |
%setup -q -n Module-Pluggable-%{version}
|
|
|
973403 |
%patch0 -p1
|
|
|
599c40 |
find -type f -exec chmod -x {} +
|
|
|
599c40 |
|
|
|
599c40 |
%build
|
|
|
599c40 |
perl Build.PL installdirs=vendor
|
|
|
599c40 |
./Build
|
|
|
599c40 |
|
|
|
599c40 |
%install
|
|
|
599c40 |
./Build install destdir=$RPM_BUILD_ROOT create_packlist=0
|
|
|
599c40 |
%{_fixperms} $RPM_BUILD_ROOT/*
|
|
|
599c40 |
|
|
|
599c40 |
%check
|
|
|
599c40 |
./Build test
|
|
|
599c40 |
|
|
|
599c40 |
%files
|
|
|
599c40 |
%doc Changes README
|
|
|
599c40 |
%{perl_vendorlib}/*
|
|
|
599c40 |
%{_mandir}/man3/*
|
|
|
599c40 |
|
|
|
599c40 |
%changelog
|
|
|
973403 |
* Mon Jan 06 2014 Petr Pisar <ppisar@redhat.com> - 1:4.8-3
|
|
|
973403 |
- Do not ignore single-letter-named packages (bug #1048708)
|
|
|
973403 |
|
|
|
973403 |
* Fri Dec 27 2013 Daniel Mach <dmach@redhat.com> - 1:4.8-2
|
|
|
973403 |
- Mass rebuild 2013-12-27
|
|
|
973403 |
|
|
|
599c40 |
* Tue May 28 2013 Petr Pisar <ppisar@redhat.com> - 1:4.8-1
|
|
|
599c40 |
- 4.8 bump
|
|
|
599c40 |
|
|
|
599c40 |
* Thu Feb 28 2013 Petr Pisar <ppisar@redhat.com> - 1:4.7-1
|
|
|
599c40 |
- 4.7 bump
|
|
|
599c40 |
|
|
|
599c40 |
* Thu Jan 24 2013 Petr Pisar <ppisar@redhat.com> 1:4.6-1
|
|
|
599c40 |
- Specfile autogenerated by cpanspec 1.78.
|