%define perl_major_ver %(eval `perl -V:version`; echo ${version%*.[0-9]*}.0) Name: perl-Exception-Class Version: 1.32 Release: 1mamba Summary: Exception::Class - A module that allows you to declare real exception classes in Perl Group: System/Libraries/Perl Vendor: openmamba Distribution: openmamba Packager: gil URL: http://www.cpan.org Source: http://search.cpan.org/CPAN/authors/id/D/DR/DROLSKY/Exception-Class-%{version}.tar.gz License: GPL, Artistic BuildRequires: perl(Class::Data::Inheritable) BuildRequires: perl(Devel::StackTrace) BuildRequires: perl(ExtUtils::MakeMaker) BuildRequires: perl(Test::More) BuildRequires: perl(Test::Pod) BuildRequires: perl(Test::Pod::Coverage) BuildRequires: perl-devel Requires: perl >= %perl_major_ver BuildRoot: %{_tmppath}/%{name}-%{version}-root %description Exception::Class allows you to declare exception hierarchies in your modules in a "Java-esque" manner. %prep %setup -q -n Exception-Class-%{version} %build perl Makefile.PL PREFIX=%{_prefix} INSTALLDIRS=vendor %make export IS_MAINTAINER=1 %make test %install [ "%{buildroot}" != / ] && rm -rf "%{buildroot}" %makeinstall_perl find %{buildroot} -type f -name .packlist -exec rm -f {} ';' find %{buildroot} -depth -type d -exec rmdir {} 2>/dev/null ';' chmod -R u+w %{buildroot}/* %clean [ "%{buildroot}" != / ] && rm -rf "%{buildroot}" %files %defattr(-,root,root) %{perl_vendorlib}/ %{_mandir}/man3/*.3pm.gz %doc Changes LICENSE README %changelog * Fri Feb 18 2011 gil 1.32-1mamba - package created by autospec