2020-07-03 16:50:02 +08:00
|
|
|
%bcond_with perl_Test_MockModule_enables_optional_test
|
|
|
|
|
Name: perl-Test-MockModule
|
2022-06-15 15:44:56 +08:00
|
|
|
Version: 0.177.0
|
|
|
|
|
Release: 1
|
2020-07-03 16:50:02 +08:00
|
|
|
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/authors/id/G/GF/GFRANKS/Test-MockModule-v%{version}.tar.gz
|
|
|
|
|
BuildArch: noarch
|
|
|
|
|
BuildRequires: coreutils perl-generators perl-interpreter perl(Module::Build) perl(strict)
|
|
|
|
|
BuildRequires: perl(warnings) perl(Carp) perl(Scalar::Util) perl(SUPER) perl(vars) perl(lib)
|
|
|
|
|
BuildRequires: perl(Test::More) perl(Test::Warnings)
|
|
|
|
|
%if %{with perl_Test_MockModule_enables_optional_test}
|
|
|
|
|
BuildRequires: perl(Test::Pod) >= 1.00 perl(Test::Pod::Coverage) >= 1.00
|
|
|
|
|
%endif
|
|
|
|
|
Requires: perl(:MODULE_COMPAT_%(eval "`%{__perl} -V:version`"; echo $version))
|
|
|
|
|
|
|
|
|
|
%description
|
|
|
|
|
%{summary}.
|
|
|
|
|
|
|
|
|
|
%prep
|
|
|
|
|
%autosetup -n Test-MockModule-v%{version} -p1
|
|
|
|
|
|
|
|
|
|
%build
|
|
|
|
|
%{__perl} Build.PL installdirs=vendor
|
|
|
|
|
./Build
|
|
|
|
|
|
|
|
|
|
%install
|
|
|
|
|
./Build install destdir=$RPM_BUILD_ROOT create_packlist=0
|
|
|
|
|
chmod -R u+w $RPM_BUILD_ROOT/*
|
|
|
|
|
|
|
|
|
|
%check
|
|
|
|
|
./Build test
|
|
|
|
|
|
|
|
|
|
%files
|
|
|
|
|
%doc Changes README.md
|
|
|
|
|
%license LICENSE
|
|
|
|
|
%{perl_vendorlib}/Test
|
|
|
|
|
%{_mandir}/man3/*.3*
|
|
|
|
|
|
|
|
|
|
%changelog
|
2022-06-15 15:44:56 +08:00
|
|
|
* Tue Jun 14 2022 SimpleUpdate Robot <tc@openeuler.org> - 0.177.0-1
|
|
|
|
|
- Upgrade to version 0.177.0
|
|
|
|
|
|
2020-07-03 16:50:02 +08:00
|
|
|
* Thu Jul 2 2020 huanghaitao <huanghaitao8@huawei.com> - 0.170.0-2
|
|
|
|
|
- package init
|