e5fb2f
Name:           perl-Module-Load
e5fb2f
# Epoch to compete with perl.spec
e5fb2f
Epoch:          1
e5fb2f
Version:        0.34
e5fb2f
Release:        439%{?dist}
e5fb2f
Summary:        Run-time require of both modules and files
e5fb2f
License:        GPL+ or Artistic
e5fb2f
URL:            https://metacpan.org/release/Module-Load
e5fb2f
Source0:        https://cpan.metacpan.org/authors/id/B/BI/BINGOS/Module-Load-%{version}.tar.gz
e5fb2f
BuildArch:      noarch
e5fb2f
BuildRequires:  make
e5fb2f
BuildRequires:  perl-generators
e5fb2f
BuildRequires:  perl-interpreter
e5fb2f
BuildRequires:  perl(ExtUtils::MakeMaker) >= 6.76
e5fb2f
BuildRequires:  perl(strict)
e5fb2f
# Run-time:
e5fb2f
BuildRequires:  perl(File::Spec)
e5fb2f
BuildRequires:  perl(warnings)
e5fb2f
# Tests:
e5fb2f
BuildRequires:  perl(Config)
e5fb2f
BuildRequires:  perl(Exporter)
e5fb2f
BuildRequires:  perl(lib)
e5fb2f
BuildRequires:  perl(Test::More) >= 0.94
e5fb2f
BuildRequires:  perl(vars)
e5fb2f
Requires:       perl(:MODULE_COMPAT_%(eval "`perl -V:version`"; echo $version))
e5fb2f
e5fb2f
%description
e5fb2f
If you consult "perldoc -f require" you will see that "require" will behave
e5fb2f
differently when given a bare-word or a string. In the case of a string,
e5fb2f
"require" assumes you are wanting to load a file. But in the case of
e5fb2f
a bare-word, it assumes you mean a module.
e5fb2f
e5fb2f
This gives nasty overhead when you are trying to dynamically require modules
e5fb2f
at run-time, since you will need to change the module notation to a file
e5fb2f
notation fitting the particular platform you are on.
e5fb2f
e5fb2f
"load" eliminates the need for this overhead and will just DWYM.
e5fb2f
e5fb2f
%prep
e5fb2f
%setup -q -n Module-Load-%{version}
e5fb2f
e5fb2f
%build
e5fb2f
perl Makefile.PL INSTALLDIRS=vendor NO_PACKLIST=1 NO_PERLLOCAL=1
e5fb2f
%{make_build}
e5fb2f
e5fb2f
%install
e5fb2f
%{make_install}
e5fb2f
%{_fixperms} '%{buildroot}'/*
e5fb2f
e5fb2f
%check
e5fb2f
unset PERL_CORE
e5fb2f
make test
e5fb2f
e5fb2f
%files
e5fb2f
%doc CHANGES README
e5fb2f
%{perl_vendorlib}/*
e5fb2f
%{_mandir}/man3/*
e5fb2f
e5fb2f
%changelog
e5fb2f
* Fri Jul 26 2019 Fedora Release Engineering <releng@fedoraproject.org> - 1:0.34-439
e5fb2f
- Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild
e5fb2f
e5fb2f
* Thu May 30 2019 Jitka Plesnikova <jplesnik@redhat.com> - 1:0.34-438
e5fb2f
- Increase release to favour standalone package
e5fb2f
e5fb2f
* Mon Feb 11 2019 Petr Pisar <ppisar@redhat.com> - 1:0.34-1
e5fb2f
- 0.34 bump
e5fb2f
e5fb2f
* Fri Feb 01 2019 Fedora Release Engineering <releng@fedoraproject.org> - 1:0.32-418
e5fb2f
- Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild
e5fb2f
e5fb2f
* Fri Jul 13 2018 Fedora Release Engineering <releng@fedoraproject.org> - 1:0.32-417
e5fb2f
- Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild
e5fb2f
e5fb2f
* Wed Jun 27 2018 Jitka Plesnikova <jplesnik@redhat.com> - 1:0.32-416
e5fb2f
- Increase release to favour standalone package
e5fb2f
e5fb2f
* Thu Feb 08 2018 Fedora Release Engineering <releng@fedoraproject.org> - 1:0.32-395
e5fb2f
- Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild
e5fb2f
e5fb2f
* Thu Jul 27 2017 Fedora Release Engineering <releng@fedoraproject.org> - 1:0.32-394
e5fb2f
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild
e5fb2f
e5fb2f
* Sat Jun 03 2017 Jitka Plesnikova <jplesnik@redhat.com> - 1:0.32-393
e5fb2f
- Perl 5.26 rebuild
e5fb2f
e5fb2f
* Sat Feb 11 2017 Fedora Release Engineering <releng@fedoraproject.org> - 1:0.32-366
e5fb2f
- Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild
e5fb2f
e5fb2f
* Sat May 14 2016 Jitka Plesnikova <jplesnik@redhat.com> - 1:0.32-365
e5fb2f
- Increase release to favour standalone package
e5fb2f
e5fb2f
* Thu Feb 04 2016 Fedora Release Engineering <releng@fedoraproject.org> - 1:0.32-347
e5fb2f
- Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild
e5fb2f
e5fb2f
* Thu Jun 18 2015 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1:0.32-346
e5fb2f
- Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild
e5fb2f
e5fb2f
* Thu Jun 04 2015 Jitka Plesnikova <jplesnik@redhat.com> - 1:0.32-345
e5fb2f
- Increase release to favour standalone package
e5fb2f
e5fb2f
* Wed Jun 03 2015 Jitka Plesnikova <jplesnik@redhat.com> - 1:0.32-311
e5fb2f
- Perl 5.22 rebuild
e5fb2f
e5fb2f
* Wed Sep 03 2014 Jitka Plesnikova <jplesnik@redhat.com> - 1:0.32-310
e5fb2f
- Increase release to favour standalone package
e5fb2f
e5fb2f
* Tue Aug 26 2014 Jitka Plesnikova <jplesnik@redhat.com> - 1:0.32-3
e5fb2f
- Perl 5.20 rebuild
e5fb2f
e5fb2f
* Sat Jun 07 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1:0.32-2
e5fb2f
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild
e5fb2f
e5fb2f
* Fri Feb 21 2014 Petr Pisar <ppisar@redhat.com> - 1:0.32-1
e5fb2f
- 0.32 bump
e5fb2f
e5fb2f
* Mon Jan 27 2014 Petr Pisar <ppisar@redhat.com> - 1:0.30-1
e5fb2f
- 0.30 bump
e5fb2f
e5fb2f
* Tue Jan 07 2014 Petr Pisar <ppisar@redhat.com> - 1:0.28-1
e5fb2f
- 0.28 bump
e5fb2f
e5fb2f
* Sat Aug 03 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1:0.24-291
e5fb2f
- Rebuilt for https://fedoraproject.org/wiki/Fedora_20_Mass_Rebuild
e5fb2f
e5fb2f
* Mon Jul 15 2013 Petr Pisar <ppisar@redhat.com> - 1:0.24-290
e5fb2f
- Increase release to favour standalone package
e5fb2f
e5fb2f
* Fri Jul 12 2013 Petr Pisar <ppisar@redhat.com> - 1:0.24-3
e5fb2f
- Perl 5.18 rebuild
e5fb2f
e5fb2f
* Fri Apr 05 2013 Petr Pisar <ppisar@redhat.com> - 1:0.24-2
e5fb2f
- Set epoch to compete with perl.spec
e5fb2f
e5fb2f
* Mon Mar 18 2013 Petr Pisar <ppisar@redhat.com> 0.24-1
e5fb2f
- Specfile autogenerated by cpanspec 1.78.