Name: perl-constant-defer Version: 5 Release: 1%{?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 BuildRequires: perl(Devel::FindRef) BuildRequires: perl(Exporter) BuildRequires: perl(ExtUtils::MakeMaker) BuildRequires: perl(lib) BuildRequires: perl(Scalar::Util) BuildRequires: perl(strict) BuildRequires: perl(Test) BuildRequires: perl(vars) Requires: perl(:MODULE_COMPAT_%(eval "`%{__perl} -V:version`"; echo $version)) %{?perl_default_filter} %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 0644 examples/* %build %{__perl} Makefile.PL INSTALLDIRS=vendor make %{?_smp_mflags} %install make pure_install DESTDIR=%{buildroot} find %{buildroot} -type f -name .packlist -exec rm -f {} \; find %{buildroot} -depth -type d -exec rmdir {} 2>/dev/null \; %{_fixperms} %{buildroot}/* %check make test %files %doc Changes COPYING README examples %{perl_vendorlib}/* %{_mandir}/man3/* %changelog * Sat Nov 05 2011 Iain Arnell 5-1 - Specfile autogenerated by cpanspec 1.79.