perl-Test-Simple/perl-Test-Simple.spec

74 lines
1.9 KiB
RPMSpec
Raw Normal View History

2019-09-30 11:13:23 -04:00
Name: perl-Test-Simple
Summary: Basic utilities for writing tests
Epoch: 2
Version: 1.302140
Release: 2
License: (GPL+ or Artistic) and CC0 and Public Domain
URL: https://metacpan.org/release/Test-Simple
Source0: https://cpan.metacpan.org/modules/by-module/Test/Test-Simple-%{version}.tar.gz
BuildArch: noarch
BuildRequires: coreutils, make
BuildRequires: perl-generators
BuildRequires: perl-interpreter
BuildRequires: perl(ExtUtils::MakeMaker) >= 6.76
Requires: perl(:MODULE_COMPAT_%(perl -V:version | cut -d"'" -f 2))
Requires: perl(Data::Dumper)
Requires: perl(Term::ANSIColor)
Requires: perl(threads::shared)
Obsoletes: perl-Test2 < %{version}-%{release}
Provides: perl-Test2 = %{version}-%{release}
%{?perl_default_filter}
%description
This package provides the bulk of the core testing facilities. For more
information, see perldoc for Test::Simple, Test::More, etc.
This package is the CPAN component of the dual-lifed core package Test-Simple.
%prep
%setup -q -n Test-Simple-%{version}
%build
perl Makefile.PL INSTALLDIRS=vendor NO_PERLLOCAL=1 NO_PACKLIST=1
%make_build
%install
%make_install
%check
make test AUTHOR_TESTING=1
%files
%defattr(-,root,root)
%license LICENSE
%doc Changes README
%dir %{perl_vendorlib}/Test/
%{perl_vendorlib}/ok.pm
%{perl_vendorlib}/Test/Builder/
%{perl_vendorlib}/Test/*.pm
%{perl_vendorlib}/Test/Tester/
%doc %{perl_vendorlib}/Test/Tutorial.pod
%{perl_vendorlib}/Test/use/
%{perl_vendorlib}/Test2.pm
%{perl_vendorlib}/Test2/
%package_help
%files help
%doc examples/ t/
%{_mandir}/man3/ok.3*
%{_mandir}/man3/Test*
%changelog
* Mon Sep 23 2019 shenyangyang<shenyangyang4@huawei.com> - 1.302167-2
- Type:enhancement
- ID:NA
- SUG:NA
- DESC:revise requires of perl
* Thu Aug 29 2019 hexiaowen <hexiaowen@huawei.com> - 1.302167-1
- Package init