Search
j0ke.net Open Build Service
>
Projects
>
devel
:
perl
>
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 (Revision 6)
Currently displaying revision
6
,
show latest
# # 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.26 Release: 1 Source: %{cpan_name}-%{version}.tar.bz2 BuildRequires: perl-macros Requires: perl-parent 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 INSTALLDIRS="vendor" # PREFIX="%{buildroot}%{_prefix}" %{__make} %{?_smp_mflags} %install %{__rm} -rf %{buildroot} %__make DESTDIR=%{buildroot} install # cleanup %{__rm} -rf %{buildroot}%{perl_archlib}/perllocal.pod \ %{buildroot}%{perl_vendorarch}/auto/autodie/.packlist %clean rm -rf %{buildroot} %files %defattr(-, root, root) %doc Changes README.md MANIFEST %dir %{perl_vendorlib}/autodie %dir %{perl_vendorlib}/autodie/Scope %dir %{perl_vendorlib}/autodie/exception %{perl_vendorlib}/Fatal.pm %{perl_vendorlib}/autodie.pm %{perl_vendorlib}/autodie/Scope/Guard.pm %{perl_vendorlib}/autodie/Scope/GuardStack.pm %{perl_vendorlib}/autodie/ScopeUtil.pm %{perl_vendorlib}/autodie/exception.pm %{perl_vendorlib}/autodie/exception/system.pm %{perl_vendorlib}/autodie/hints.pm %{perl_vendorlib}/autodie/skip.pm %{_mandir}/man3/Fatal.3pm.gz %{_mandir}/man3/autodie.3pm.gz %{_mandir}/man3/autodie::Scope::Guard.3pm.gz %{_mandir}/man3/autodie::Scope::GuardStack.3pm.gz %{_mandir}/man3/autodie::ScopeUtil.3pm.gz %{_mandir}/man3/autodie::exception.3pm.gz %{_mandir}/man3/autodie::exception::system.3pm.gz %{_mandir}/man3/autodie::hints.3pm.gz %{_mandir}/man3/autodie::skip.3pm.gz %changelog