summaryrefslogtreecommitdiff
path: root/perl-POE-Test-Loops.spec
blob: 599723a593c9583f52b56c7111145d8ba1dee254 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
# Enable curses on PTY
%bcond_without perl_POE_Test_Loops_enables_curses

Name:           perl-POE-Test-Loops
Summary:        Reusable tests for POE::Loop authors
Version:        1.360
Release:        1
License:        GPL-1.0-or-later OR Artistic-1.0-Perl
Source0:        https://cpan.metacpan.org/authors/id/R/RC/RCAPUTO/POE-Test-Loops-%{version}.tar.gz 
URL:            https://metacpan.org/release/POE-Test-Loops
BuildArch:      noarch
BuildRequires:  coreutils
BuildRequires:  findutils
BuildRequires:  make
BuildRequires:  perl-generators
BuildRequires:  perl-interpreter
BuildRequires:  perl(ExtUtils::MakeMaker) >= 6.76
BuildRequires:  perl(strict)
BuildRequires:  perl(warnings)
# Run-time:
BuildRequires:  perl(Carp)
BuildRequires:  perl(constant)
BuildRequires:  perl(File::Find)
BuildRequires:  perl(File::Path)
BuildRequires:  perl(File::Spec)
# File::Temp not used at tests
# Getopt::Long not used at tests
# IO::File not used at tests
# IO::Handle not used at tests
# IO::Pipely not used at tests
# IO::Socket not used at tests
# IO::Socket::INET not used at tests
BuildRequires:  perl(lib)
# POE not used at tests
# POE::Component::Client::TCP not used at tests
# POE::Component::Server::TCP not used at tests
# POE::Driver::SysRW not used at tests
# POE::Filter::Block not used at tests
# POE::Filter::Line not used at tests
# POE::Filter::Map not used at tests
# POE::Filter::Stream not used
# POE::NFA not used at tests
# POE::Pipe::OneWay not used at tests
# POE::Pipe::TwoWay not used at tests
# POE::Session not used at tests
# POE::Wheel::Curses not used at all
# POE::Wheel::FollowTail no used at tests
# POE::Wheel::ListenAccept not used at tests
# POE::Wheel::ReadWrite not used at tests
# POE::Wheel::Run not used at tests
# POE::Wheel::SocketFactory not used at tests
# POSIX not used at tests
# Socket not used at tests
# Symbol not used at tests
BuildRequires:  perl(Test::More) >= 1.001002
# Time::HiRes not used at tests
BuildRequires:  perl(vars)
%if %{with perl_POE_Test_Loops_enables_curses}
# Optional run-time:
# Curses not used at tests
# IO::Pty not used at tests
%endif
# Socket6 not used at all
# Optional tests:
BuildRequires:  perl(Scalar::Util)
Requires:       perl(Carp)
Requires:       perl(POE::Component::Client::TCP)
Requires:       perl(POE::Component::Server::TCP)
Requires:       perl(POE::Driver::SysRW)
Requires:       perl(POE::Filter::Block)
Requires:       perl(POE::Filter::Line)
Requires:       perl(POE::Filter::Map)
Requires:       perl(POE::Pipe::TwoWay)
Requires:       perl(POE::Wheel::FollowTail)
Requires:       perl(POE::Wheel::ListenAccept)
Requires:       perl(POE::Wheel::SocketFactory)
Requires:       perl(Test::More) >= 1.001002
%if %{with perl_POE_Test_Loops_enables_curses}
Suggests:       perl(Curses)
Suggests:       perl(IO::Pty)
%endif

# Remove under-specified dependencies
%global __requires_exclude %{?__requires_exclude:%{__requires_exclude}|}^perl\\(Test::More\\)$

# Hide private modules
%global __provides_exclude %{?__provides_exclude:__provides_exclude|}^perl\\(POE::MySession\\)
%global __provides_exclude %__provides_exclude|perl\\(POE::Kernel\\)
%global __provides_exclude %__provides_exclude|perl\\(PoeTestWorker\\)
%global __provides_exclude %__provides_exclude|perl\\([DIFMOSU].*\\)
%global __provides_exclude %__provides_exclude|perl\\(Switch\\)

%description
POE::Test::Loops contains one function, generate(), which will generate all
the loop tests for one or more POE::Loop subclasses.  The poe-gen-tests manual
page also documents the POE::Test::Loops system in more detail.

%prep
%setup -q -n POE-Test-Loops-%{version}
find . -type f -exec chmod -c -x {} +

%build
perl Makefile.PL INSTALLDIRS=vendor NO_PACKLIST=1 NO_PERLLOCAL=1
%{make_build}

%install
%{make_install}
%{_fixperms} %{buildroot}/*

%check
make test

%files
%license LICENSE
%doc CHANGES README
%{perl_vendorlib}/*
%{_mandir}/man3/*.3*
%{_bindir}/poe-gen-tests
%{_mandir}/man1/poe-gen-tests.1.gz

%changelog                                                                                                                                                                                                                                  
* Fri Feb 10 2023 lichaoran <pkwarcraft@hotmail> - 1.360-1 
- Init package