%define modname Class-ErrorHandler Name: perl-%{modname} Version: 0.01 Release: 1 Summary: Base class for error handling Requires: perl = %{perl_version} BuildRequires: perl License: GPL/Artistic Group: Development/Libraries/Perl Source: %{modname}-%{version}.tar.bz2 BuildRoot: %{_tmppath}/%{name}-root %description Class::ErrorHandler provides an error-handling mechanism that's generic enough to be used as the base class for a variety of OO classes. Subclasses inherit its two error-handling methods, error and errstr, to communicate error messages back to the calling program. Authors: -------- Benjamin Trott %prep %setup -q -n %{modname}-%{version} %build perl Makefile.PL OPTIMIZE="$RPM_OPT_FLAGS -Wall" make make test %install rm -rf %{buildroot} make DESTDIR=$RPM_BUILD_ROOT install_vendor %perl_process_packlist %clean rm -rf %{buildroot} %files %defattr(-, root, root) %doc README Changes %doc %{_mandir}/man?/* %{perl_vendorlib}/Class %{perl_vendorarch}/auto/Class /var/adm/perl-modules/%{name} %changelog * Tue Sep 12 2006 - James Oakley - 0.01-1 - Initial release