diff --git a/README.md b/README.md index 487d815..f8a3bf2 100644 --- a/README.md +++ b/README.md @@ -1,2 +1,5 @@ # perl-Test-Exception +This module provides a few convenience methods for testing exception based code. +It is built with Test::Builder and plays happily with Test::More and friends. + diff --git a/perl-Test-Exception.spec b/perl-Test-Exception.spec new file mode 100644 index 0000000..451abb4 --- /dev/null +++ b/perl-Test-Exception.spec @@ -0,0 +1,75 @@ +%define perl_major_ver %(eval `perl -V:version`; echo ${version%*.[0-9]*}.0) + +Name: perl-Test-Exception +Version: 0.32 +Release: 1mamba +Summary: Test::Exception - Test exception based code +Group: Development/Libraries/Perl +Vendor: openmamba +Distribution: openmamba +Packager: Aleph0 +URL: http://www.cpan.org +Source: http://www.cpan.org/modules/by-module/Test/Test-Exception-%{version}.tar.gz +License: GPL +BuildRequires: perl-devel >= %perl_major_ver +BuildRequires: perl-Sub-Uplevel +BuildRequires: perl-Test-Builder-Tester +BuildRequires: perl-Pod-Coverage +BuildRequires: perl-Test-Pod +Requires: perl >= %perl_major_ver +BuildRoot: %{_tmppath}/%{name}-%{version}-root + +# FIXME: +# Warning: prerequisite Test::Builder 0.33 not found. We have 0.32. +# Warning: prerequisite Test::Builder::Tester 1.04 not found. We have 1.02. + +%description +This module provides a few convenience methods for testing exception based code. +It is built with Test::Builder and plays happily with Test::More and friends. + +%prep +%setup -q -n Test-Exception-%{version} + +%build +perl Makefile.PL PREFIX=%{_prefix} INSTALLDIRS=vendor +%make +%make test + +%install +[ "%{buildroot}" != / ] && rm -rf "%{buildroot}" +%makeinstall_perl +packlist=`find %{buildroot} -name .packlist` +[ -z "$packlist" ] && exit 1 || cat $packlist | \ + sed "s,%buildroot,,g;s,.*/man/.*,&.gz,g" | \ + sort -u > .packlist && rm $packlist + +strid=`echo $packlist | sed 's,.*auto\(.*\)/.packlist,\1,'` +for dir in `find %{buildroot} -type d | grep $strid`; do + echo "%dir ${dir#%buildroot}" >> .packlist +done + +%clean +[ "%{buildroot}" != / ] && rm -rf "%{buildroot}" +rm -f .packlist + +%files -f .packlist +%defattr(-,root,root) + +%changelog +* Wed May 01 2013 Automatic Build System 0.32-1mamba +- automatic version update by autodist + +* Mon Nov 12 2012 Silvan Calarco 0.31-2mamba +- perl 5.16 mass rebuild + +* Wed Mar 16 2011 Automatic Build System 0.31-1mamba +- automatic update by autodist + +* Wed Nov 05 2008 Silvan Calarco 0.27-1mamba +- update to 0.27 + +* Fri Nov 09 2007 Aleph0 0.25-1mamba +- update to 0.25 + +* Mon Jan 24 2005 Davide Madrisan 0.20-1qilnx +- package created by autospec