47d4d3
Name:           perl-Module-Load-Conditional
47d4d3
Version:        0.54
75822f
Release:        3%{?dist}
47d4d3
Summary:        Looking up module information and loading at run-time
47d4d3
License:        GPL+ or Artistic
47d4d3
Group:          Development/Libraries
47d4d3
URL:            http://search.cpan.org/dist/Module-Load-Conditional/
47d4d3
Source0:        http://www.cpan.org/authors/id/B/BI/BINGOS/Module-Load-Conditional-%{version}.tar.gz
75822f
# Fix tests to pass with version-0.9907 on perl-5.16.3, in upstream 0.62,
75822f
# bug #1093387, <https://github.com/jib/module-load-conditional/issues/6>
75822f
Patch0:         Module-Load-Conditional-0.60-Resolve-test-failures-on-v5.16.x.patch
47d4d3
BuildArch:      noarch
47d4d3
BuildRequires:  perl
47d4d3
BuildRequires:  perl(ExtUtils::MakeMaker)
47d4d3
BuildRequires:  perl(strict)
47d4d3
# Run-time:
47d4d3
BuildRequires:  perl(Carp)
47d4d3
BuildRequires:  perl(Config)
47d4d3
BuildRequires:  perl(constant)
47d4d3
BuildRequires:  perl(Exporter)
47d4d3
BuildRequires:  perl(FileHandle)
47d4d3
BuildRequires:  perl(File::Spec)
47d4d3
BuildRequires:  perl(Locale::Maketext::Simple)
47d4d3
# Module::CoreList 2.22 not needed when running tests
47d4d3
BuildRequires:  perl(Module::Load) >= 0.11
47d4d3
BuildRequires:  perl(Module::Metadata) >= 1.000005
47d4d3
BuildRequires:  perl(Params::Check)
47d4d3
BuildRequires:  perl(vars)
47d4d3
BuildRequires:  perl(version) >= 0.69
47d4d3
# Tests:
47d4d3
BuildRequires:  perl(FindBin)
47d4d3
BuildRequires:  perl(lib)
47d4d3
BuildRequires:  perl(Test::More)
47d4d3
Requires:       perl(:MODULE_COMPAT_%(eval "`perl -V:version`"; echo $version))
47d4d3
Requires:       perl(Config)
47d4d3
Requires:       perl(Module::CoreList) >= 2.22
47d4d3
Requires:       perl(Module::Load) >= 0.11
47d4d3
Requires:       perl(Module::Metadata) >= 1.000005
47d4d3
Requires:       perl(version) >= 0.69
47d4d3
47d4d3
# Filter under-specified dependencies
47d4d3
%global __requires_exclude %{?__requires_exclude:%__requires_exclude|}^perl\\((Module::Load|Module::Metadata|version)\\)$
47d4d3
47d4d3
%description
47d4d3
This module provides simple ways to query and possibly load any of the modules
47d4d3
you have installed on your system during run-time.
47d4d3
47d4d3
%prep
47d4d3
%setup -q -n Module-Load-Conditional-%{version}
75822f
%patch0 -p1
47d4d3
47d4d3
%build
47d4d3
perl Makefile.PL INSTALLDIRS=vendor
47d4d3
make %{?_smp_mflags}
47d4d3
47d4d3
%install
47d4d3
make pure_install DESTDIR=$RPM_BUILD_ROOT
47d4d3
find $RPM_BUILD_ROOT -type f -name .packlist -exec rm -f {} \;
47d4d3
%{_fixperms} $RPM_BUILD_ROOT/*
47d4d3
47d4d3
%check
47d4d3
make test
47d4d3
47d4d3
%files
47d4d3
%doc CHANGES README
47d4d3
%{perl_vendorlib}/*
47d4d3
%{_mandir}/man3/*
47d4d3
47d4d3
%changelog
75822f
* Fri May 02 2014 Petr Pisar <ppisar@redhat.com> - 0.54-3
75822f
- Fix tests to pass with version-0.9907 on perl-5.16.3 (bug #1093387)
75822f
7d3037
* Fri Dec 27 2013 Daniel Mach <dmach@redhat.com> - 0.54-2
7d3037
- Mass rebuild 2013-12-27
7d3037
47d4d3
* Fri Jan 25 2013 Petr Pisar <ppisar@redhat.com> 0.54-1
47d4d3
- Specfile autogenerated by cpanspec 1.78.