3 %bcond_without tests # do not perform "make test"
6 %define pnam Mock-Guard
7 Summary: Test::Mock::Guard - Simple mock test library using RAII
8 Name: perl-Test-Mock-Guard
11 License: GPL v1+ or Artistic
12 Group: Development/Languages/Perl
13 Source0: http://www.cpan.org/modules/by-module/Test/%{pdir}-%{pnam}-%{version}.tar.gz
14 # Source0-md5: b2866485cc29c787f85793279e2f2360
15 URL: https://metacpan.org/release/Test-Mock-Guard/
16 BuildRequires: perl-Module-Build
17 BuildRequires: perl-devel >= 1:5.8.0
18 BuildRequires: rpm-perlprov >= 4.1-13
20 BuildRequires: perl-Class-Load >= 0.06
23 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
26 Test::Mock::Guard is mock test library using RAII. This module is able
27 to change method behavior by each scope. See SYNOPSIS's sample code.
30 %setup -q -n %{pdir}-%{pnam}-%{version}
34 destdir=$RPM_BUILD_ROOT \
38 %{?with_tests:./Build test}
41 rm -rf $RPM_BUILD_ROOT
46 rm -rf $RPM_BUILD_ROOT
49 %defattr(644,root,root,755)
51 %{perl_vendorlib}/Test/Mock/Guard.pm