package created by autospec [release 1.09-1mamba;Fri Feb 18 2011]
This commit is contained in:
parent
e544117ed4
commit
440ee1b624
@ -1,2 +1,8 @@
|
||||
# perl-Test-SubCalls
|
||||
|
||||
There are a number of different situations (like testing caching code) where you want to want to do a number of tests, and
|
||||
then verify that some underlying subroutine deep within the code was called a specific number of times.
|
||||
|
||||
This module provides a number of functions for doing testing in this way in association with your normal Test::More (or
|
||||
similar) test scripts.
|
||||
|
||||
|
62
perl-Test-SubCalls.spec
Normal file
62
perl-Test-SubCalls.spec
Normal file
@ -0,0 +1,62 @@
|
||||
%define perl_major_ver %(eval `perl -V:version`; echo ${version%*.[0-9]*}.0)
|
||||
|
||||
Name: perl-Test-SubCalls
|
||||
Version: 1.09
|
||||
Release: 1mamba
|
||||
Summary: Test::SubCalls - Track the number of times subs are called
|
||||
Group: System/Libraries/Perl
|
||||
Vendor: openmamba
|
||||
Distribution: openmamba
|
||||
Packager: gil <puntogil@libero.it>
|
||||
URL: http://www.cpan.org
|
||||
Source: http://search.cpan.org/CPAN/authors/id/A/AD/ADAMK/Test-SubCalls-%{version}.tar.gz
|
||||
|
||||
License: GPL, Artistic
|
||||
BuildRequires: perl(Hook::LexWrap)
|
||||
BuildRequires: perl(Pod::Simple)
|
||||
BuildRequires: perl(Test::Builder::Tester)
|
||||
BuildRequires: perl(Test::CPAN::Meta)
|
||||
BuildRequires: perl(Test::More)
|
||||
BuildRequires: perl(Test::Pod)
|
||||
#BuildRequires: perl(Test::MinimumVersion)
|
||||
BuildRequires: perl-devel
|
||||
Requires: perl >= %perl_major_ver
|
||||
BuildRoot: %{_tmppath}/%{name}-%{version}-root
|
||||
|
||||
%description
|
||||
There are a number of different situations (like testing caching code) where you want to want to do a number of tests, and
|
||||
then verify that some underlying subroutine deep within the code was called a specific number of times.
|
||||
|
||||
This module provides a number of functions for doing testing in this way in association with your normal Test::More (or
|
||||
similar) test scripts.
|
||||
|
||||
%prep
|
||||
%setup -q -n Test-SubCalls-%{version}
|
||||
|
||||
|
||||
%build
|
||||
perl Makefile.PL PREFIX=%{_prefix} INSTALLDIRS=vendor
|
||||
%make
|
||||
%make test AUTOMATED_TESTING=1
|
||||
|
||||
%install
|
||||
[ "%{buildroot}" != / ] && rm -rf "%{buildroot}"
|
||||
%makeinstall_perl
|
||||
|
||||
find %{buildroot} -type f -name .packlist -exec rm -f {} ';'
|
||||
find %{buildroot} -type f -name '*.bs' -empty -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}/Test/
|
||||
%{_mandir}/man3/*.3pm.gz
|
||||
%doc Changes LICENSE README
|
||||
|
||||
%changelog
|
||||
* Fri Feb 18 2011 gil <puntogil@libero.it> 1.09-1mamba
|
||||
- package created by autospec
|
Loading…
Reference in New Issue
Block a user