!1 package init

Merge pull request !1 from small_leek/xsl
This commit is contained in:
openeuler-ci-bot 2020-07-07 16:43:09 +08:00 committed by Gitee
commit 2bae672565
3 changed files with 47 additions and 0 deletions

Binary file not shown.

43
perl-Test-MockModule.spec Normal file
View 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

View File

@ -0,0 +1,4 @@
version_control: metacpan
src_repo: Test-MockModule
tag_prefix: "^"
seperator: "."