parent
02fd12daed
commit
c45f4485d9
@ -0,0 +1 @@
|
|||||||
|
/Test-Needs-0.002002.tar.gz
|
@ -0,0 +1,56 @@
|
|||||||
|
Name: perl-Test-Needs
|
||||||
|
Version: 0.002002
|
||||||
|
Release: 1%{?dist}
|
||||||
|
Summary: Skip tests when modules not available
|
||||||
|
License: GPL+ or Artistic
|
||||||
|
|
||||||
|
URL: http://search.cpan.org/dist/Test-Needs/
|
||||||
|
Source0: http://www.cpan.org/authors/id/H/HA/HAARG/Test-Needs-%{version}.tar.gz
|
||||||
|
|
||||||
|
BuildArch: noarch
|
||||||
|
BuildRequires: make
|
||||||
|
BuildRequires: perl
|
||||||
|
BuildRequires: perl-generators
|
||||||
|
BuildRequires: perl(ExtUtils::MakeMaker) >= 6.76
|
||||||
|
BuildRequires: perl(IPC::Open3)
|
||||||
|
BuildRequires: perl(Test::Builder)
|
||||||
|
BuildRequires: perl(Test::More) >= 0.45
|
||||||
|
BuildRequires: perl(Test2::API)
|
||||||
|
BuildRequires: perl(Test2::Event)
|
||||||
|
BuildRequires: perl(lib)
|
||||||
|
BuildRequires: perl(strict)
|
||||||
|
BuildRequires: perl(version)
|
||||||
|
BuildRequires: perl(warnings)
|
||||||
|
|
||||||
|
Requires: perl(:MODULE_COMPAT_%(eval "`%{__perl} -V:version`"; echo $version))
|
||||||
|
|
||||||
|
%{?perl_default_filter}
|
||||||
|
|
||||||
|
%description
|
||||||
|
Skip test scripts if modules are not available. The requested modules will
|
||||||
|
be loaded, and optionally have their versions checked. If the module is
|
||||||
|
missing, the test script will be skipped. Modules that are found but fail
|
||||||
|
to compile will exit with an error rather than skip.
|
||||||
|
|
||||||
|
%prep
|
||||||
|
%setup -q -n Test-Needs-%{version}
|
||||||
|
|
||||||
|
%build
|
||||||
|
%{__perl} Makefile.PL INSTALLDIRS=vendor NO_PACKLIST=1
|
||||||
|
make %{?_smp_mflags}
|
||||||
|
|
||||||
|
%install
|
||||||
|
make pure_install DESTDIR=$RPM_BUILD_ROOT
|
||||||
|
%{_fixperms} $RPM_BUILD_ROOT/*
|
||||||
|
|
||||||
|
%check
|
||||||
|
make test
|
||||||
|
|
||||||
|
%files
|
||||||
|
%doc Changes README
|
||||||
|
%{perl_vendorlib}/Test*
|
||||||
|
%{_mandir}/man3/Test*
|
||||||
|
|
||||||
|
%changelog
|
||||||
|
* Fri Jun 10 2016 Emmanuel Seyman <emmanuel@seyman.fr> 0.002002-1
|
||||||
|
- Specfile autogenerated by cpanspec 1.78.
|
Loading…
Reference in new issue