596ff5d
Name:           perl-autovivification
596ff5d
Version:        0.09
596ff5d
Release:        1%{?dist}
596ff5d
Summary:        Lexically disable autovivification
596ff5d
License:        GPL+ or Artistic
596ff5d
Group:          Development/Libraries
596ff5d
URL:            http://search.cpan.org/dist/autovivification/
596ff5d
Source0:        http://search.cpan.org/CPAN/authors/id/V/VP/VPIT/autovivification-%{version}.tar.gz
596ff5d
BuildRequires:  perl >= 0:5.008003
596ff5d
BuildRequires:  perl(ExtUtils::MakeMaker)
596ff5d
BuildRequires:  perl(Test::Kwalitee)
596ff5d
BuildRequires:  perl(Test::More)
596ff5d
BuildRequires:  perl(Test::Pod)
596ff5d
BuildRequires:  perl(Test::Pod::Coverage)
596ff5d
BuildRequires:  perl(Test::Portability::Files)
596ff5d
BuildRequires:  perl(XSLoader)
596ff5d
Requires:       perl(XSLoader)
596ff5d
Requires:       perl(:MODULE_COMPAT_%(eval "`%{__perl} -V:version`"; echo $version))
596ff5d
596ff5d
%{?perl_default_filter}
596ff5d
596ff5d
%description
596ff5d
When an undefined variable is dereferenced, it gets silently upgraded to an
596ff5d
array or hash reference (depending of the type of the dereferencing). This
596ff5d
behavior is called autovivification and usually does what you mean (e.g.
596ff5d
when you store a value) but it's sometimes unnatural or surprising because
596ff5d
your variables gets populated behind your back. This is especially true
596ff5d
when several levels of dereferencing are involved, in which case all levels
596ff5d
are vivified up to the last, or when it happens in intuitively read-only
596ff5d
constructs like exists.
596ff5d
596ff5d
%prep
596ff5d
%setup -q -n autovivification-%{version}
596ff5d
596ff5d
%build
596ff5d
%{__perl} Makefile.PL INSTALLDIRS=vendor OPTIMIZE="%{optflags}"
596ff5d
make %{?_smp_mflags}
596ff5d
596ff5d
%install
596ff5d
make pure_install DESTDIR=%{buildroot}
596ff5d
596ff5d
find %{buildroot} -type f -name .packlist -exec rm -f {} \;
596ff5d
find %{buildroot} -type f -name '*.bs' -size 0 -exec rm -f {} \;
596ff5d
find %{buildroot} -depth -type d -exec rmdir {} 2>/dev/null \;
596ff5d
596ff5d
%{_fixperms} %{buildroot}/*
596ff5d
596ff5d
%check
596ff5d
make test
596ff5d
596ff5d
%files
596ff5d
%doc Changes README
596ff5d
%{perl_vendorarch}/auto/*
596ff5d
%{perl_vendorarch}/autovivification*
596ff5d
%{_mandir}/man3/*
596ff5d
596ff5d
%changelog
596ff5d
* Thu Aug 11 2011 Iain Arnell <iarnell@gmail.com> 0.09-1
596ff5d
- Specfile autogenerated by cpanspec 1.78.