Compare commits

..

No commits in common. 'i8c-stream-5.26' and 'epel9' have entirely different histories.

16
.gitignore vendored

@ -1 +1,15 @@
SOURCES/Test-MockModule-0.13.tar.gz
/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

@ -1 +0,0 @@
ca5537d8e225df312d01e3201fce8025c25e575d SOURCES/Test-MockModule-0.13.tar.gz

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

@ -6,61 +6,134 @@
%endif
Name: perl-Test-MockModule
Version: 0.13
Release: 3%{?dist}
Version: 0.177.0
Release: 1%{?dist}
Summary: Override subroutines in a module for unit testing
Group: Development/Libraries
License: GPL+ or Artistic
URL: http://search.cpan.org/dist/Test-MockModule/
Source0: http://search.cpan.org/CPAN/authors/id/G/GF/GFRANKS/Test-MockModule-%{version}.tar.gz
URL: https://metacpan.org/release/Test-MockModule
Source0: https://cpan.metacpan.org/modules/by-module/Test/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)
# Run-time:
# Runtime
BuildRequires: perl(Carp)
BuildRequires: perl(Scalar::Util)
BuildRequires: perl(SUPER)
BuildRequires: perl(SUPER) >= 1.20
BuildRequires: perl(vars)
# Tests:
# Test Suite
BuildRequires: perl(lib)
BuildRequires: perl(Test::More)
BuildRequires: perl(parent)
BuildRequires: perl(Test::More) >= 0.88
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
Requires: perl(:MODULE_COMPAT_%(eval "`%{__perl} -V:version`"; echo $version))
# Dependencies
Requires: perl(:MODULE_COMPAT_%(eval "`perl -V:version`"; echo $version))
%description
%{summary}.
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.
%prep
%setup -q -n Test-MockModule-%{version}
%setup -q -n Test-MockModule-v%{version}
%build
%{__perl} Build.PL installdirs=vendor
perl Build.PL --installdirs=vendor
./Build
%install
./Build install destdir=$RPM_BUILD_ROOT create_packlist=0
chmod -R u+w $RPM_BUILD_ROOT/*
./Build install --destdir=%{buildroot} --create_packlist=0
%{_fixperms} -c %{buildroot}
%check
./Build test
%files
%doc Changes README.md
%license LICENSE
%{perl_vendorlib}/Test
%{_mandir}/man3/*.3*
%doc Changes README.md
%{perl_vendorlib}/Test/
%{_mandir}/man3/Test::MockModule.3*
%changelog
* Thu Apr 25 2024 MSVSphere Packaging Team <packager@msvsphere-os.ru> - 0.13-3
- Rebuilt for MSVSphere 8.9
* 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
* Fri May 31 2019 Jitka Plesnikova <jplesnik@redhat.com> - 0.170.0-3
- Perl 5.30 rebuild
* Sat Feb 02 2019 Fedora Release Engineering <releng@fedoraproject.org> - 0.170.0-2
- Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild
* Wed Sep 5 2018 Tom Callaway <spot@fedoraproject.org> - 0.170.0-1
- update to 0.170.0
* Fri Jul 13 2018 Fedora Release Engineering <releng@fedoraproject.org> - 0.15-3
- Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild
* Thu Jun 28 2018 Jitka Plesnikova <jplesnik@redhat.com> - 0.15-2
- Perl 5.28 rebuild
* Mon May 14 2018 Tom Callaway <spot@fedoraproject.org> - 0.15-1
- update to 0.15
* Fri Feb 09 2018 Fedora Release Engineering <releng@fedoraproject.org> - 0.13-3
- Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild

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