Name: perl-autodie Version: 1.999 Release: 1%{?dist} # lib/Fatal.pm -> GPL+ or Artistic # lib/autodie.pm -> GPL+ or Artistic # lib/autodie/exception.pm -> GPL+ or Artistic # lib/autodie/exception/system.pm -> GPL+ or Artistic License: GPL+ or Artistic Group: Development/Libraries Summary: Replace functions with equivalents which succeed or die Source: http://search.cpan.org/CPAN/authors/id/P/PJ/PJF/autodie-%{version}.tar.gz Url: http://search.cpan.org/dist/autodie BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) Requires: perl(:MODULE_COMPAT_%(eval "`%{__perl} -V:version`"; echo $version)) BuildArch: noarch BuildRequires: perl(ExtUtils::MakeMaker) >= 6.42 BuildRequires: perl(IPC::System::Simple) BuildRequires: perl(Test::More) # not pulled in automatically... Requires: perl(IPC::System::Simple) %description bIlujDI' yIchegh()Qo'; yIHegh()! It is better to die() than to return() in failure. -- Klingon programming proverb. The autodie pragma provides a convenient way to replace functions that normally return false on failure with equivalents that throw an exception on failure. %prep %setup -q -n autodie-%{version} find . -type f -exec chmod -x {} ';' %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}/* # move this so we can put it in %doc, but not conflict with core's manpage cp %{buildroot}%{_mandir}/man3/Fatal.3* . %check make test %clean rm -rf %{buildroot} %files %defattr(-,root,root,-) %doc Changes README Fatal.3* %{perl_vendorlib}/* %{_mandir}/man3/*.3* %exclude %{_mandir}/man3/Fatal*.3* %changelog * Thu Mar 19 2009 Chris Weyl 1.999-1 - submission - due to @INC ordering currently in F10 and F9, this will only build and work properly on F11+ (at the moment) * Thu Mar 05 2009 Chris Weyl 1.999-0 - initial RPM packaging - generated with cpan2dist (CPANPLUS::Dist::RPM version 0.0.8)