Name: perl-Class-ErrorHandler
Version: 0.01
Release: 2%{?dist}
Summary: Class::ErrorHandler Perl module
License: GPL or Artistic
Group: Development/Libraries
URL: http://search.cpan.org/dist/Class-ErrorHandler/
Source0: http://www.cpan.org/modules/by-module/Class/Class-ErrorHandler-%{version}.tar.gz
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
BuildArch: noarch
Requires: perl(:MODULE_COMPAT_%(eval "`%{__perl} -V:version`"; echo $version))
%description
This is Class::ErrorHandler, a base class for classes that need to do
error handling (which is, probably, most of them).
%prep
%setup -q -n Class-ErrorHandler-%{version}
%build
%{__perl} Makefile.PL INSTALLDIRS=vendor
make %{?_smp_mflags}
%install
rm -rf $RPM_BUILD_ROOT
make pure_install PERL_INSTALL_ROOT=$RPM_BUILD_ROOT
find $RPM_BUILD_ROOT -type f -name .packlist -exec rm -f {} \;
find $RPM_BUILD_ROOT -type d -depth -exec rmdir {} 2>/dev/null \;
chmod -R u+rwX,go+rX,go-w $RPM_BUILD_ROOT/*
perldoc -t perlgpl > COPYING
perldoc -t perlartistic > Artistic
%check
make test
%clean
rm -rf $RPM_BUILD_ROOT
%files
%defattr(-,root,root,-)
%doc Changes README COPYING Artistic
%{perl_vendorlib}/*
%{_mandir}/man3/*
%changelog
* Sat Sep 17 2005 Steven Pritchard <steve@kspei.com> 0.01-2
- Include license files.
* Fri Aug 26 2005 Steven Pritchard <steve@kspei.com> 0.01-1
- Specfile autogenerated.