Compare commits

...

No commits in common. 'epel9' and 'c8-stream-5.30' have entirely different histories.

16
.gitignore vendored

@ -1,15 +1 @@
/Test-MockModule-0.05.tar.gz
/Test-MockModule-0.09.tar.gz
/Test-MockModule-0.10.tar.gz
/Test-MockModule-0.11.tar.gz
/Test-MockModule-0.12.tar.gz
/Test-MockModule-0.13.tar.gz
/Test-MockModule-0.15.tar.gz
/Test-MockModule-v0.170.0.tar.gz
/Test-MockModule-v0.171.0.tar.gz
/Test-MockModule-v0.172.0.tar.gz
/Test-MockModule-v0.173.0.tar.gz
/Test-MockModule-v0.174.0.tar.gz
/Test-MockModule-v0.175.0.tar.gz
/Test-MockModule-v0.176.0.tar.gz
/Test-MockModule-v0.177.0.tar.gz
SOURCES/Test-MockModule-v0.170.0.tar.gz

@ -0,0 +1 @@
c25ec29e98ac88ff93554f02e6c1f67cb4876ace SOURCES/Test-MockModule-v0.170.0.tar.gz

@ -6,114 +6,59 @@
%endif
Name: perl-Test-MockModule
Version: 0.177.0
Release: 1%{?dist}
Version: 0.170.0
Release: 4%{?dist}
Summary: Override subroutines in a module for unit testing
License: GPL+ or Artistic
URL: https://metacpan.org/release/Test-MockModule
Source0: https://cpan.metacpan.org/modules/by-module/Test/Test-MockModule-v%{version}.tar.gz
Source0: https://cpan.metacpan.org/authors/id/G/GF/GFRANKS/Test-MockModule-v%{version}.tar.gz
BuildArch: noarch
# Build
BuildRequires: coreutils
BuildRequires: perl-generators
BuildRequires: perl-interpreter
BuildRequires: perl(Module::Build)
BuildRequires: perl(strict)
BuildRequires: perl(warnings)
# Runtime
# Run-time:
BuildRequires: perl(Carp)
BuildRequires: perl(Scalar::Util)
BuildRequires: perl(SUPER) >= 1.20
BuildRequires: perl(SUPER)
BuildRequires: perl(vars)
# Test Suite
# Tests:
BuildRequires: perl(lib)
BuildRequires: perl(parent)
BuildRequires: perl(Test::More) >= 0.88
BuildRequires: perl(Test::Warnings)
BuildRequires: perl(Test::More)
BuildRequires: perl(Test::Warnings)
%if %{with perl_Test_MockModule_enables_optional_test}
# Optional Tests
# Optional tests:
BuildRequires: perl(Test::Pod) >= 1.00
BuildRequires: perl(Test::Pod::Coverage) >= 1.00
%endif
# Dependencies
Requires: perl(:MODULE_COMPAT_%(eval "`perl -V:version`"; echo $version))
Requires: perl(:MODULE_COMPAT_%(eval "`%{__perl} -V:version`"; echo $version))
%description
Test::MockModule lets you temporarily redefine subroutines in other packages
for the purposes of unit testing.
A Test::MockModule object is set up to mock subroutines for a given module. The
object remembers the original subroutine so it can easily be restored. This
happens automatically when all MockModule objects for the given module go out
of scope, or when you unmock() the subroutine.
%{summary}.
%prep
%setup -q -n Test-MockModule-v%{version}
%build
perl Build.PL --installdirs=vendor
%{__perl} Build.PL installdirs=vendor
./Build
%install
./Build install --destdir=%{buildroot} --create_packlist=0
%{_fixperms} -c %{buildroot}
./Build install destdir=$RPM_BUILD_ROOT create_packlist=0
chmod -R u+w $RPM_BUILD_ROOT/*
%check
./Build test
%files
%license LICENSE
%doc Changes README.md
%{perl_vendorlib}/Test/
%{_mandir}/man3/Test::MockModule.3*
%license LICENSE
%{perl_vendorlib}/Test
%{_mandir}/man3/*.3*
%changelog
* Wed Sep 8 2021 Paul Howarth <paul@city-fan.org> - 0.177.0-1
- Update to 0.177.0
* Fri Jul 23 2021 Fedora Release Engineering <releng@fedoraproject.org> - 0.176.0-4
- Rebuilt for https://fedoraproject.org/wiki/Fedora_35_Mass_Rebuild
* Fri May 21 2021 Jitka Plesnikova <jplesnik@redhat.com> - 0.176.0-3
- Perl 5.34 rebuild
* Wed Jan 27 2021 Fedora Release Engineering <releng@fedoraproject.org> - 0.176.0-2
- Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild
* Wed Jan 6 2021 Paul Howarth <paul@city-fan.org> - 0.176.0-1
- Update to 0.176.0
* Fri Sep 18 2020 Paul Howarth <paul@city-fan.org> - 0.175.0-1
- Update to 0.175.0
* Tue Sep 15 2020 Paul Howarth <paul@city-fan.org> - 0.174.0-1
- Update to 0.174.0
* Tue Jul 28 2020 Fedora Release Engineering <releng@fedoraproject.org> - 0.173.0-3
- Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild
* Tue Jun 23 2020 Jitka Plesnikova <jplesnik@redhat.com> - 0.173.0-2
- Perl 5.32 rebuild
* Sun Jun 14 2020 Paul Howarth <paul@city-fan.org> - 0.173.0-1
- Update to 0.173.0
* Wed Feb 19 2020 Tom Callaway <spot@fedoraproject.org> - 0.172.0-1
- Update to 0.172.0
* Thu Jan 30 2020 Fedora Release Engineering <releng@fedoraproject.org> - 0.171.0-2
- Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild
* Mon Oct 21 2019 Paul Howarth <paul@city-fan.org> - 0.171.0-1
- Update to 0.171.0
* Tue Oct 8 2019 Paul Howarth <paul@city-fan.org> - 0.170.0-5
- Spec tidy-up
- Use author-independent source URL
- Enhance %%description
- Fix permissions verbosely
- Make %%files list more explicit
* Fri Jul 26 2019 Fedora Release Engineering <releng@fedoraproject.org> - 0.170.0-4
- Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild

@ -1,3 +0,0 @@
from Config import *
addFilter("spelling-error %description -l en_US unmock -> ")

@ -1 +0,0 @@
SHA512 (Test-MockModule-v0.177.0.tar.gz) = d28523202ba4dbf040e26a3cb0795297c2c4fc65598e7717a51ed8678bce308eec7eb3b5d5d35d71418b21c2c81833679cf1624e0e07c6b1e26e8f7605eb98b3
Loading…
Cancel
Save