Files
perl-Exception-Handler/perl-Exception-Handler.spec

48 lines
1.2 KiB
RPMSpec
Raw Normal View History

# vim: set sw=4 ts=4 et nu:
Name: perl-Exception-Handler
Version: 1.004
Release: 0
Summary: Report exceptions with formatted text call-stack
Source: http://search.cpan.org/CPAN/authors/id/T/TO/TOMMY/Exception-Handler-%{version}.tar.gz
URL: http://search.cpan.org/dist/Exception-Handler
Group: Development/Libraries/Perl
License: Perl License
BuildRoot: %{_tmppath}/build-%{name}-%{version}
%{perl_requires}
BuildRequires: perl-macros
BuildRequires: make
BuildRequires: perl(ExtUtils::MakeMaker)
%if 0%{?suse_version} >= 1120
BuildArch: noarch
%endif
%description
Perl module to report exceptions with formatted text call-stack.
%prep
%setup -q -n "Exception-Handler-%{version}"
%__sed -i '/^auto_install/d' Makefile.PL
%build
%__perl Makefile.PL PREFIX="%{_prefix}"
%__make %{?jobs:-j%{jobs}}
%install
%perl_make_install
%perl_process_packlist
%check
%__make test
%clean
%{?buildroot:%__rm -rf "%{buildroot}"}
%files
%defattr(-,root,root)
%doc Changes README
%dir %{perl_vendorlib}/Exception
%{perl_vendorlib}/Exception/Handler.pm
%doc %{perl_man3dir}/Exception::Handler.%{perl_man3ext}%{ext_man}