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