Blame SPECS/perl-Module-Load.spec

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