Name: perl-constant-defer
Version: 5
Release: 3%{?dist}
Summary: Constant subs with deferred value calculation
License: GPLv3+
Group: Development/Libraries
URL: http://search.cpan.org/dist/constant-defer/
Source0: http://www.cpan.org/authors/id/K/KR/KRYDE/constant-defer-%{version}.tar.gz
BuildArch: noarch
# The inc/my_pod2html is not called
BuildRequires: perl(ExtUtils::MakeMaker)
BuildRequires: perl(lib)
# Run-Time:
BuildRequires: perl(Carp)
# Tests:
BuildRequires: perl(Devel::FindRef)
BuildRequires: perl(Exporter)
BuildRequires: perl(Scalar::Util)
BuildRequires: perl(Test)
BuildRequires: perl(Test::More)
# Optionals tests:
BuildRequires: perl(Data::Dumper)
BuildRequires: perl(Devel::StackTrace)
Requires: perl(:MODULE_COMPAT_%(eval "`%{__perl} -V:version`"; echo $version))
Requires: perl(Carp)
%description
constant::defer creates a subroutine which on the first call runs given
code to calculate its value, and on the second and subsequent calls just
returns that value, like a constant. The value code is discarded once run,
allowing it to be garbage collected.
%prep
%setup -q -n constant-defer-%{version}
chmod -x examples/*
%build
%{__perl} Makefile.PL INSTALLDIRS=vendor
make %{?_smp_mflags}
%install
make pure_install PERL_INSTALL_ROOT=$RPM_BUILD_ROOT
find $RPM_BUILD_ROOT -type f -name .packlist -exec rm -f {} \;
find $RPM_BUILD_ROOT -depth -type d -exec rmdir {} 2>/dev/null \;
%{_fixperms} $RPM_BUILD_ROOT/*
%check
make test
%files
%doc Changes COPYING examples README
%{perl_vendorlib}/*
%{_mandir}/man3/*
%changelog
* Fri Jul 20 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 5-3
- Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild
* Tue Jun 12 2012 Petr Pisar <ppisar@redhat.com> - 5-2
- Perl 5.16 rebuild
* Wed Apr 25 2012 Petr Pisar <ppisar@redhat.com> 5-1
- Specfile autogenerated by cpanspec 1.78.