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