Name: perl-Mock-Sub Version: 1.08 Release: 1%{?dist} Summary: Mock package, object and standard subroutines, with unit testing in mind License: GPL+ or Artistic Group: Development/Libraries URL: http://search.cpan.org/dist/Mock-Sub/ Source0: http://search.cpan.org/CPAN/authors/id/S/ST/STEVEB/Mock-Sub-%{version}.tar.gz BuildArch: noarch BuildRequires: coreutils BuildRequires: findutils BuildRequires: make BuildRequires: perl-interpreter BuildRequires: perl-generators BuildRequires: perl(ExtUtils::MakeMaker) BuildRequires: perl(strict) BuildRequires: perl(warnings) # Run-time BuildRequires: perl(Carp) BuildRequires: perl(Scalar::Util) # Testing BuildRequires: perl(Data::Dumper) BuildRequires: perl(Pod::Coverage) >= 0.18 BuildRequires: perl(Test::CheckManifest) >= 0.9 BuildRequires: perl(Test::More) BuildRequires: perl(Test::Pod) >= 1.22 BuildRequires: perl(Test::Pod::Coverage) >= 1.08 BuildRequires: perl(lib) Requires: perl(:MODULE_COMPAT_%(eval "`%{__perl} -V:version`"; echo $version)) %description Easy to use and very lightweight module for mocking out sub calls. Very useful for testing areas of your own modules where getting coverage may be difficult due to nothing to test against, and/or to reduce test run time by eliminating the need to call subs that you really don't want or need to test. %prep %setup -q -n Mock-Sub-%{version} %build perl Makefile.PL INSTALLDIRS=vendor make %{?_smp_mflags} %install make pure_install DESTDIR=$RPM_BUILD_ROOT find $RPM_BUILD_ROOT -type f -name .packlist -exec rm -f {} \; %{_fixperms} $RPM_BUILD_ROOT/* %check make test RELEASE_TESTING=1 %files %doc Changes README %{perl_vendorlib}/* %{_mandir}/man3/* %changelog * Mon Dec 25 2017 Denis Fateyev - 1.08-1 - Update to 1.08 release * Thu Jul 27 2017 Fedora Release Engineering - 1.07-4 - Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild * Mon Jun 05 2017 Jitka Plesnikova - 1.07-3 - Perl 5.26 rebuild * Sat Feb 11 2017 Fedora Release Engineering - 1.07-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild * Fri Oct 07 2016 Denis Fateyev - 1.07-1 - Update to 1.07 release * Sun May 15 2016 Jitka Plesnikova - 1.06-3 - Perl 5.24 rebuild * Thu Feb 04 2016 Fedora Release Engineering - 1.06-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild * Sun Jan 24 2016 Denis Fateyev - 1.06-1 - Initial release