%define upstream_name Scope-Guard %define upstream_version 0.20 Name: perl-%{upstream_name} Version: %perl_convert_version %{upstream_version} Release: %mkrel 3 Summary: Lexically scoped resource management License: GPL Group: Development/Perl URL: http://search.cpan.org/dist/%{upstream_name} Source0: http://www.cpan.org/modules/by-module/Scope/%{upstream_name}-%{upstream_version}.tar.gz BuildArch: noarch %description This module provides a convenient way to perform cleanup or other forms of resource management at the end of a scope. It is particularly useful when dealing with exceptions: the Scope::Guard constructor takes a reference to a subroutine that is guaranteed to be called even if the thread of execution is aborted prematurely. This effectively allows lexically-scoped "promises" to be made that are automatically honoured by perl's garbage collector. %prep %setup -q -n %{upstream_name}-%{upstream_version} %build %{__perl} Makefile.PL INSTALLDIRS=vendor %make %check %make test %install %{__rm} -rf %{buildroot} %makeinstall_std %clean %{__rm} -rf %{buildroot} %files %defattr(-,root,root) %doc Changes README META.yml %{perl_vendorlib}/Scope %{_mandir}/*/* %changelog * Sun Jan 13 2013 umeabot <umeabot> 0.200.0-3.mga3 + Revision: 372550 - Mass Rebuild - https://wiki.mageia.org/en/Feature:Mageia3MassRebuild * Wed Jan 19 2011 jquelin <jquelin> 0.200.0-2.mga1 + Revision: 24455 - fix specs - imported package perl-Scope-Guard