source: spec/trunk/SPECS/perl-Test-Fatal.spec@ 1566

Last change on this file since 1566 was 1365, checked in by tellie, 8 years ago

spec: perl-Test-Fatal: Release version 0.014-1.

File size: 2.1 KB
Line 
1# Run extra test
2#%bcond_without perl_Test_Fatal_enables_extra_test
3# Run optional test
4#%bcond_without perl_Test_Fatal_enables_optional_test
5
6Summary: Incredibly simple helpers for testing code with exceptions
7Name: perl-Test-Fatal
8Version: 0.014
9Release: 1%{?dist}
10License: GPL+ or Artistic
11Group: Development/Libraries
12Vendor: bww bitwise works GmbH
13Url: http://search.cpan.org/dist/Test-Fatal/
14Source0: http://search.cpan.org/CPAN/authors/id/R/RJ/RJBS/Test-Fatal-%{version}.tar.gz
15BuildArch: noarch
16# Module Build
17#BuildRequires: perl-interpreter
18BuildRequires: perl-generators
19BuildRequires: perl(ExtUtils::MakeMaker)
20# Module Runtime
21BuildRequires: perl(Carp)
22BuildRequires: perl(Exporter) >= 5.57
23BuildRequires: perl(strict)
24BuildRequires: perl(Test::Builder)
25BuildRequires: perl(Try::Tiny) >= 0.07
26BuildRequires: perl(warnings)
27# Test Suite
28BuildRequires: perl(File::Spec)
29BuildRequires: perl(overload)
30BuildRequires: perl(Test::Builder::Tester)
31BuildRequires: perl(Test::More) >= 0.96
32#%if %{with perl_Test_Fatal_enables_optional_test}
33# Optional Tests
34#BuildRequires: perl(CPAN::Meta) >= 2.120900
35#%endif
36#%if %{with perl_Test_Fatal_enables_extra_test}
37# Extra Tests
38#BuildRequires: perl(Test::Pod) >= 1.41
39#%endif
40# Runtime
41Requires: perl(:MODULE_COMPAT_%(eval "`perl -V:version`"; echo $version))
42Requires: perl(Test::Builder)
43
44%description
45Test::Fatal is an alternative to the popular Test::Exception. It does much
46less, but should allow greater flexibility in testing exception-throwing code
47with about the same amount of typing.
48
49%prep
50%setup -q -n Test-Fatal-%{version}
51
52# Avoid doc-file dependencies
53chmod -c -x examples/*
54
55%build
56perl Makefile.PL INSTALLDIRS=vendor
57make %{?_smp_mflags}
58make manifypods
59
60%install
61make pure_install DESTDIR=%{buildroot}
62find %{buildroot} -type f -name .packlist -exec rm -f {} ';'
63%{_fixperms} %{buildroot}
64
65%check
66#make test
67#%if %{with perl_Test_Fatal_enables_extra_test}
68#make test TEST_FILES="$(echo $(find xt/ -name '*.t'))"
69#%endif
70
71%files
72%license LICENSE
73%doc Changes README examples/
74%{perl_vendorlib}/Test/
75%{_mandir}/man3/*.3*
76
77%changelog
78* Thu Mar 13 2018 Elbert Pol <elbert.pol@gmail.com> - 0.014-1
79- initial rpm for OS2
80
Note: See TracBrowser for help on using the repository browser.