Name: perl-Test-Assert
Version: 0.0501
Release: 1%{?dist}
Summary: Assertion methods for those who like JUnit
License: GPL+ or Artistic
Group: Development/Libraries
URL: http://search.cpan.org/dist/Test-Assert/
Source0: http://www.cpan.org/authors/id/D/DE/DEXTER/Test-Assert-%{version}.tar.gz
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
BuildArch: noarch
BuildRequires: perl(constant::boolean)
BuildRequires: perl(Exception::Base) >= 0.21
BuildRequires: perl(Module::Build)
BuildRequires: perl(parent)
BuildRequires: perl(Test::Unit::Lite) >= 0.11
BuildRequires: perl(Test::More)
Requires: perl(:MODULE_COMPAT_%(eval "`%{__perl} -V:version`"; echo $version))
%description
This class provides a set of assertion methods useful for writing tests.
The API is based on JUnit4 and Test::Unit and the methods die on failure.
%prep
%setup -q -n Test-Assert-%{version}
# Filter requires
cat << \EOF > %{name}-req
#!/bin/sh
%{__perl_requires} $* |\
sed -e '/perl(Exception::Base) >= 0.21/d'
EOF
%define __perl_requires %{_builddir}/Test-Assert-%{version}/%{name}-req
chmod +x %{__perl_requires}
%build
%{__perl} Build.PL installdirs=vendor
./Build
%install
rm -rf $RPM_BUILD_ROOT
./Build install destdir=$RPM_BUILD_ROOT create_packlist=0
find $RPM_BUILD_ROOT -depth -type d -exec rmdir {} 2>/dev/null \;
%{_fixperms} $RPM_BUILD_ROOT/*
%check
./Build test
%clean
rm -rf $RPM_BUILD_ROOT
%files
%defattr(-,root,root,-)
%doc Changes README
%{perl_vendorlib}/*
%{_mandir}/man3/*
%changelog
* Thu Jan 29 2009 Allisson Azevedo <allisson@gmail.com> 0.0501-1
- Initial rpm release.