commit
2bae672565
BIN
Test-MockModule-v0.170.0.tar.gz
Normal file
BIN
Test-MockModule-v0.170.0.tar.gz
Normal file
Binary file not shown.
43
perl-Test-MockModule.spec
Normal file
43
perl-Test-MockModule.spec
Normal file
@ -0,0 +1,43 @@
|
||||
%bcond_with perl_Test_MockModule_enables_optional_test
|
||||
Name: perl-Test-MockModule
|
||||
Version: 0.170.0
|
||||
Release: 2
|
||||
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
|
||||
* Thu Jul 2 2020 huanghaitao <huanghaitao8@huawei.com> - 0.170.0-2
|
||||
- package init
|
||||
4
perl-Test-MockModule.yaml
Normal file
4
perl-Test-MockModule.yaml
Normal file
@ -0,0 +1,4 @@
|
||||
version_control: metacpan
|
||||
src_repo: Test-MockModule
|
||||
tag_prefix: "^"
|
||||
seperator: "."
|
||||
Loading…
x
Reference in New Issue
Block a user