a43f0a
# Run optional test
8b2789
%if ! (0%{?rhel})
a43f0a
%bcond_without perl_Test_MockModule_enables_optional_test
8b2789
%else
8b2789
%bcond_with perl_Test_MockModule_enables_optional_test
8b2789
%endif
a43f0a
42da69
Name:           perl-Test-MockModule
ea9719
Version:        0.170.0
4be0ec
Release:        2%{?dist}
42da69
Summary:        Override subroutines in a module for unit testing
9a0b0b
License:        GPL+ or Artistic
35c43f
URL:            https://metacpan.org/release/Test-MockModule
ea9719
Source0:        https://cpan.metacpan.org/authors/id/G/GF/GFRANKS/Test-MockModule-v%{version}.tar.gz
42da69
BuildArch:      noarch
609767
BuildRequires:  coreutils
a5cc44
BuildRequires:  perl-generators
df79a4
BuildRequires:  perl-interpreter
df79a4
BuildRequires:  perl(Module::Build)
df79a4
BuildRequires:  perl(strict)
609767
BuildRequires:  perl(warnings)
609767
# Run-time:
609767
BuildRequires:  perl(Carp)
609767
BuildRequires:  perl(Scalar::Util)
df79a4
BuildRequires:  perl(SUPER)
609767
BuildRequires:  perl(vars)
609767
# Tests:
609767
BuildRequires:  perl(lib)
df79a4
BuildRequires:  perl(Test::More)
2d830e
BuildRequires:	perl(Test::Warnings)
a43f0a
%if %{with perl_Test_MockModule_enables_optional_test}
609767
# Optional tests:
df79a4
BuildRequires:  perl(Test::Pod) >= 1.00
df79a4
BuildRequires:  perl(Test::Pod::Coverage) >= 1.00
a43f0a
%endif
df79a4
Requires:       perl(:MODULE_COMPAT_%(eval "`%{__perl} -V:version`"; echo $version))
42da69
42da69
%description
42da69
%{summary}.
42da69
42da69
%prep
ea9719
%setup -q -n Test-MockModule-v%{version}
42da69
42da69
%build
404600
%{__perl} Build.PL installdirs=vendor
404600
./Build
42da69
42da69
%install
404600
./Build install destdir=$RPM_BUILD_ROOT create_packlist=0
42da69
chmod -R u+w $RPM_BUILD_ROOT/*
42da69
42da69
%check
404600
./Build test
42da69
42da69
%files
431c20
%doc Changes README.md
404600
%license LICENSE
42da69
%{perl_vendorlib}/Test
42da69
%{_mandir}/man3/*.3*
42da69
42da69
%changelog
4be0ec
* Sat Feb 02 2019 Fedora Release Engineering <releng@fedoraproject.org> - 0.170.0-2
4be0ec
- Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild
4be0ec
ea9719
* Wed Sep  5 2018 Tom Callaway <spot@fedoraproject.org> - 0.170.0-1
ea9719
- update to 0.170.0
ea9719
29bac7
* Fri Jul 13 2018 Fedora Release Engineering <releng@fedoraproject.org> - 0.15-3
29bac7
- Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild
29bac7
d1cc49
* Thu Jun 28 2018 Jitka Plesnikova <jplesnik@redhat.com> - 0.15-2
d1cc49
- Perl 5.28 rebuild
d1cc49
86a6d8
* Mon May 14 2018 Tom Callaway <spot@fedoraproject.org> - 0.15-1
86a6d8
- update to 0.15
86a6d8
50d95b
* Fri Feb 09 2018 Fedora Release Engineering <releng@fedoraproject.org> - 0.13-3
50d95b
- Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild
50d95b
609767
* Wed Dec 13 2017 Petr Pisar <ppisar@redhat.com> - 0.13-2
609767
- Remove unused CGI dependency
609767
df79a4
* Wed Oct 25 2017 Jitka Plesnikova <jplesnik@redhat.com> - 0.13-1
df79a4
- 0.13 bump
df79a4
f35eeb
* Thu Jul 27 2017 Fedora Release Engineering <releng@fedoraproject.org> - 0.12-2
f35eeb
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild
f35eeb
51258f
* Mon Jul 17 2017 Tom Callaway <spot@fedoraproject.org> - 0.12-1
51258f
- update to 0.12
51258f
66b594
* Sun Jun 04 2017 Jitka Plesnikova <jplesnik@redhat.com> - 0.11-5
66b594
- Perl 5.26 rebuild
66b594
89e06b
* Sat Feb 11 2017 Fedora Release Engineering <releng@fedoraproject.org> - 0.11-4
89e06b
- Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild
89e06b
ee82f4
* Sun May 15 2016 Jitka Plesnikova <jplesnik@redhat.com> - 0.11-3
ee82f4
- Perl 5.24 rebuild
ee82f4
070728
* Thu Feb 04 2016 Fedora Release Engineering <releng@fedoraproject.org> - 0.11-2
070728
- Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild
070728
431c20
* Wed Oct 28 2015 Tom Callaway <spot@fedoraproject.org> - 0.11-1
431c20
- update to 0.11
431c20
356d95
* Thu Jun 18 2015 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.10-3
356d95
- Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild
356d95
b2924b
* Sat Jun 06 2015 Jitka Plesnikova <jplesnik@redhat.com> - 0.10-2
b2924b
- Perl 5.22 rebuild
b2924b
7a7666
* Tue Jun  2 2015 Tom Callaway <spot@fedoraproject.org> - 0.10-1
7a7666
- update to 0.10
7a7666
404600
* Fri Mar 27 2015 Tom Callaway <spot@fedoraproject.org> - 0.09-1
404600
- update to 0.09
404600
97bb94
* Wed Aug 27 2014 Jitka Plesnikova <jplesnik@redhat.com> - 0.05-22
97bb94
- Perl 5.20 rebuild
97bb94
f8c166
* Sat Jun 07 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.05-21
f8c166
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild
f8c166
ace414
* Sun Aug 04 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.05-20
ace414
- Rebuilt for https://fedoraproject.org/wiki/Fedora_20_Mass_Rebuild
ace414
022183
* Sat Jul 20 2013 Petr Pisar <ppisar@redhat.com> - 0.05-19
022183
- Perl 5.18 rebuild
022183
192ff5
* Sat Feb 23 2013 Ralf Corsépius <corsepiu@fedoraproject.org> - 0.05-19
192ff5
- Add BR: perl(ExtUtils::MakeMaker) (Fix FTBFS #914317).
192ff5
- Modernize spec.
192ff5
d93c7f
* Thu Feb 14 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.05-18
d93c7f
- Rebuilt for https://fedoraproject.org/wiki/Fedora_19_Mass_Rebuild
d93c7f
c1daff
* Fri Jul 20 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.05-17
c1daff
- Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild
c1daff
558af4
* Wed Jun 13 2012 Petr Pisar <ppisar@redhat.com> - 0.05-16
558af4
- Perl 5.16 rebuild
558af4
0ce01f
* Fri Jan 13 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.05-15
0ce01f
- Rebuilt for https://fedoraproject.org/wiki/Fedora_17_Mass_Rebuild
0ce01f
Marcela Mašláňová 5774dc
* Mon Jun 20 2011 Marcela Mašláňová <mmaslano@redhat.com> - 0.05-14
Marcela Mašláňová 5774dc
- Perl mass rebuild
Marcela Mašláňová 5774dc
0463a4
* Wed Feb 09 2011 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.05-13
0463a4
- Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild
0463a4
e6c664
* Wed Dec 08 2010 Ralf Corsépius <corsepiu@fedoraproject.org> - 0.05-12
e6c664
- Add BR: perl(CGI) (Fix FTBFS: BZ 661082).
e6c664
7e390a
* Thu May 06 2010 Marcela Maslanova <mmaslano@redhat.com> - 0.05-11
7e390a
- Mass rebuild with perl-5.12.0
7e390a
012db4
* Fri Dec  4 2009 Stepan Kasal <skasal@redhat.com> - 0.05-10
012db4
- rebuild against perl 5.10.1
012db4
e7932d
* Sun Jul 26 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.05-9
e7932d
- Rebuilt for https://fedoraproject.org/wiki/Fedora_12_Mass_Rebuild
e7932d
027414
* Thu Feb 26 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.05-8
027414
- Rebuilt for https://fedoraproject.org/wiki/Fedora_11_Mass_Rebuild
027414
b820de
* Wed Feb 27 2008 Tom "spot" Callaway <tcallawa@redhat.com> - 0.05-7
b820de
- Rebuild for perl 5.10 (again)
b820de
56b779
* Sun Jan 20 2008 Tom "spot" Callaway <tcallawa@redhat.com> 0.05-6
56b779
- rebuild for new perl
56b779
9a0b0b
* Sun Aug 26 2007 Tom "spot" Callaway <tcallawa@redhat.com> 0.05-5
9a0b0b
- license tag fix
9a0b0b
993571
* Fri Sep 15 2006 Tom "spot" Callaway <tcallawa@redhat.com> 0.05-4
993571
- bump for fc6
993571
42da69
* Wed Jul 27 2005 Tom "spot" Callaway <tcallawa@redhat.com> 0.05-3
42da69
- add missing BuildRequires
42da69
42da69
* Fri Jul  8 2005 Tom "spot" Callaway <tcallawa@redhat.com> 0.05-2
42da69
- cleanups
42da69
42da69
* Wed Jul  6 2005 Tom "spot" Callaway <tcallawa@redhat.com> 0.05-1
42da69
- Initial package for Fedora Extras