Blame SPECS/perl-Module-Load.spec

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