*** empty log message ***
This commit is contained in:
parent
963cb155d4
commit
5a0844c43e
@ -0,0 +1 @@
|
||||
Scope-Guard-0.03.tar.gz
|
||||
61
perl-Scope-Guard.spec
Normal file
61
perl-Scope-Guard.spec
Normal file
@ -0,0 +1,61 @@
|
||||
Name: perl-Scope-Guard
|
||||
Version: 0.03
|
||||
Release: 1%{?dist}
|
||||
Summary: Lexically scoped resource management
|
||||
License: GPL+ or Artistic
|
||||
Group: Development/Libraries
|
||||
URL: http://search.cpan.org/dist/Scope-Guard/
|
||||
Source0: http://www.cpan.org/authors/id/C/CH/CHOCOLATE/Scope-Guard-%{version}.tar.gz
|
||||
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
|
||||
BuildArch: noarch
|
||||
Requires: perl(:MODULE_COMPAT_%(eval "`%{__perl} -V:version`"; echo $version))
|
||||
|
||||
# core
|
||||
BuildRequires: perl(ExtUtils::MakeMaker)
|
||||
BuildRequires: perl(Test::More)
|
||||
# test
|
||||
BuildRequires: perl(Test::Pod)
|
||||
BuildRequires: perl(Test::Pod::Coverage)
|
||||
|
||||
|
||||
%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 Scope-Guard-%{version}
|
||||
|
||||
%build
|
||||
%{__perl} Makefile.PL INSTALLDIRS=vendor
|
||||
make %{?_smp_mflags}
|
||||
|
||||
%install
|
||||
rm -rf %{buildroot}
|
||||
|
||||
make pure_install PERL_INSTALL_ROOT=%{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
|
||||
|
||||
%clean
|
||||
rm -rf %{buildroot}
|
||||
|
||||
%files
|
||||
%defattr(-,root,root,-)
|
||||
%doc Changes README t/
|
||||
%{perl_vendorlib}/*
|
||||
%{_mandir}/man3/*
|
||||
|
||||
%changelog
|
||||
* Tue Sep 18 2007 Chris Weyl <cweyl@alumni.drew.edu> 0.03-1
|
||||
- Specfile autogenerated by cpanspec 1.71.
|
||||
Loading…
Reference in New Issue
Block a user