From 440ee1b6241daa5b90a7d904ff254749de3578a9 Mon Sep 17 00:00:00 2001 From: gil Date: Sat, 6 Jan 2024 09:45:34 +0100 Subject: [PATCH] package created by autospec [release 1.09-1mamba;Fri Feb 18 2011] --- README.md | 6 ++++ perl-Test-SubCalls.spec | 62 +++++++++++++++++++++++++++++++++++++++++ 2 files changed, 68 insertions(+) create mode 100644 perl-Test-SubCalls.spec diff --git a/README.md b/README.md index 7246c07..cb7c628 100644 --- a/README.md +++ b/README.md @@ -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. + diff --git a/perl-Test-SubCalls.spec b/perl-Test-SubCalls.spec new file mode 100644 index 0000000..8aa5fb0 --- /dev/null +++ b/perl-Test-SubCalls.spec @@ -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 +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 1.09-1mamba +- package created by autospec