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