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 |
|
---|
6 | Summary: Incredibly simple helpers for testing code with exceptions
|
---|
7 | Name: perl-Test-Fatal
|
---|
8 | Version: 0.014
|
---|
9 | Release: 1%{?dist}
|
---|
10 | License: GPL+ or Artistic
|
---|
11 | Group: Development/Libraries
|
---|
12 | Vendor: bww bitwise works GmbH
|
---|
13 | Url: http://search.cpan.org/dist/Test-Fatal/
|
---|
14 | Source0: http://search.cpan.org/CPAN/authors/id/R/RJ/RJBS/Test-Fatal-%{version}.tar.gz
|
---|
15 | BuildArch: noarch
|
---|
16 | # Module Build
|
---|
17 | #BuildRequires: perl-interpreter
|
---|
18 | BuildRequires: perl-generators
|
---|
19 | BuildRequires: perl(ExtUtils::MakeMaker)
|
---|
20 | # Module Runtime
|
---|
21 | BuildRequires: perl(Carp)
|
---|
22 | BuildRequires: perl(Exporter) >= 5.57
|
---|
23 | BuildRequires: perl(strict)
|
---|
24 | BuildRequires: perl(Test::Builder)
|
---|
25 | BuildRequires: perl(Try::Tiny) >= 0.07
|
---|
26 | BuildRequires: perl(warnings)
|
---|
27 | # Test Suite
|
---|
28 | BuildRequires: perl(File::Spec)
|
---|
29 | BuildRequires: perl(overload)
|
---|
30 | BuildRequires: perl(Test::Builder::Tester)
|
---|
31 | BuildRequires: 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
|
---|
41 | Requires: perl(:MODULE_COMPAT_%(eval "`perl -V:version`"; echo $version))
|
---|
42 | Requires: perl(Test::Builder)
|
---|
43 |
|
---|
44 | %description
|
---|
45 | Test::Fatal is an alternative to the popular Test::Exception. It does much
|
---|
46 | less, but should allow greater flexibility in testing exception-throwing code
|
---|
47 | with about the same amount of typing.
|
---|
48 |
|
---|
49 | %prep
|
---|
50 | %setup -q -n Test-Fatal-%{version}
|
---|
51 |
|
---|
52 | # Avoid doc-file dependencies
|
---|
53 | chmod -c -x examples/*
|
---|
54 |
|
---|
55 | %build
|
---|
56 | perl Makefile.PL INSTALLDIRS=vendor
|
---|
57 | make %{?_smp_mflags}
|
---|
58 | make manifypods
|
---|
59 |
|
---|
60 | %install
|
---|
61 | make pure_install DESTDIR=%{buildroot}
|
---|
62 | find %{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 |
|
---|