Search
j0ke.net Open Build Service
>
Projects
>
server:monitoring
:
icinga
:
production
>
perl-autodie
> perl-autodie.spec
Sign Up
|
Log In
Username
Password
Cancel
Overview
Repositories
Revisions
Requests
Users
Advanced
Attributes
Meta
File perl-autodie.spec of Package perl-autodie
# # spec file for package perl-autodie # # norootforbuild Name: perl-autodie %define cpan_name %( %{__sed} -e 's,perl-,,' <<< %{name} ) Summary: Replace functions with ones that succeed or die with lexical scope Url: http://search.cpan.org/perldoc?autodie Group: Development/Libraries/Perl License: Artistic License Version: 2.10 Release: 1 Source: %{cpan_name}-%{version}.tar.bz2 BuildRequires: perl-macros BuildRoot: %{_tmppath}/%{name}-%{version}-build %{perl_requires} %description The autodie pragma provides a convenient way to replace functions that normally return false on failure with equivalents that throw an exception on failure. The autodie pragma has lexical scope, meaning that functions and subroutines altered with autodie will only change their behaviour until the end of the enclosing block, file, or eval. If system is specified as an argument to autodie, then it uses IPC::System::Simple to do the heavy lifting. See the description of that module for more information. Author: ------- Paul Fenwick <pjf@perltraining.com.au> %prep %setup -n %{cpan_name}-%{version} find . -type f -exec chmod -x {} \; %build perl Makefile.PL make %{?jobs:-j%jobs} %check make test %install %perl_make_install %perl_process_packlist %perl_gen_filelist %clean rm -rf %{buildroot} %files -f %{name}.files %defattr(-, root, root) %doc Changes README MANIFEST %changelog