perl-Test-Exception/perl-Test-Exception.spec

88 lines
2.7 KiB
RPMSpec
Raw Permalink Normal View History

%define perl_major_ver %(eval `perl -V:version`; echo ${version%*.[0-9]*}.0)
Name: perl-Test-Exception
Version: 0.43
Release: 1mamba
Summary: Test::Exception - Test exception based code
Group: Development/Libraries/Perl
Vendor: openmamba
Distribution: openmamba
Packager: Aleph0 <aleph0@openmamba.org>
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
* Mon Aug 29 2016 Automatic Build System <autodist@mambasoft.it> 0.43-1mamba
- automatic update by autodist
* Tue Mar 17 2015 Automatic Build System <autodist@mambasoft.it> 0.38-1mamba
- automatic update by autodist
* Tue Jan 13 2015 Automatic Build System <autodist@mambasoft.it> 0.36-1mamba
- automatic update by autodist
* Wed Oct 01 2014 Automatic Build System <autodist@mambasoft.it> 0.35-1mamba
- automatic update by autodist
* Wed May 01 2013 Automatic Build System <autodist@mambasoft.it> 0.32-1mamba
- automatic version update by autodist
* Mon Nov 12 2012 Silvan Calarco <silvan.calarco@mambasoft.it> 0.31-2mamba
- perl 5.16 mass rebuild
* Wed Mar 16 2011 Automatic Build System <autodist@mambasoft.it> 0.31-1mamba
- automatic update by autodist
* Wed Nov 05 2008 Silvan Calarco <silvan.calarco@mambasoft.it> 0.27-1mamba
- update to 0.27
* Fri Nov 09 2007 Aleph0 <aleph0@openmamba.org> 0.25-1mamba
- update to 0.25
* Mon Jan 24 2005 Davide Madrisan <davide.madrisan@qilinux.it> 0.20-1qilnx
- package created by autospec