]> git.pld-linux.org Git - packages/perl-Test-Output.git/blame - perl-Test-Output.spec
- updated to 1.031 (as 1.03_1 to avoid future epoch bump)
[packages/perl-Test-Output.git] / perl-Test-Output.spec
CommitLineData
5c31f2d5
MP
1#
2# Conditional build:
3%bcond_without tests # do not perform "make test"
4#
5c31f2d5
MP
5%define pdir Test
6%define pnam Output
5d4a3a06
JB
7Summary: Test::Output - Utilities to test STDOUT and STDERR messages
8Summary(pl.UTF-8): Test::Output - narzędzia do terowania komunikatów STDOUT i STDERR
5c31f2d5 9Name: perl-Test-Output
652afb45
JB
10# main versions have two decimal digits; separate further digits with _ to avoid epoch bumps on future updates
11Version: 1.03_1
12%define fver %(echo %{version} | tr -d _)
5c31f2d5
MP
13Release: 1
14# same as perl
15License: GPL v1+ or Artistic
16Group: Development/Languages/Perl
652afb45
JB
17Source0: http://www.cpan.org/modules/by-module/Test/%{pdir}-%{pnam}-%{fver}.tar.gz
18# Source0-md5: 5384ea67483c98290c1e51b3b2aee84d
19URL: https://metacpan.org/release/Test-Output
20BuildRequires: perl-ExtUtils-MakeMaker >= 6.64
5c31f2d5
MP
21BuildRequires: perl-devel >= 1:5.8.0
22BuildRequires: rpm-perlprov >= 4.1-13
652afb45 23BuildRequires: rpmbuild(macros) >= 1.745
5c31f2d5 24%if %{with tests}
d878139f 25BuildRequires: perl-Capture-Tiny >= 0.17
132d2e65 26BuildRequires: perl-File-Temp >= 0.21
652afb45 27BuildRequires: perl-Test-Simple >= 0.94
132d2e65 28BuildRequires: perl-Test-Tester >= 0.107
5c31f2d5
MP
29%endif
30BuildArch: noarch
31BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
32
33%description
5d4a3a06
JB
34Test::Output provides a simple interface for testing output sent to
35STDOUT or STDERR. A number of different utilies are included to try
36and be as flexible as possible to the tester.
37
38%description -l pl.UTF-8
39Test::Output udostępnia prosty interfejs do testowania komunikatów
40wysyłanych na STDOUT lub STDERR. Załączonych jest wiele różnych
41narzędzi do wypróbowania, mających być jak najbardziej elastycznymi
42dla testera.
5c31f2d5
MP
43
44%prep
652afb45 45%setup -q -n %{pdir}-%{pnam}-%{fver}
5c31f2d5
MP
46
47%build
48%{__perl} Makefile.PL \
49 INSTALLDIRS=vendor
50%{__make}
51
52%{?with_tests:%{__make} test}
53
54%install
55rm -rf $RPM_BUILD_ROOT
56
57%{__make} install \
58 DESTDIR=$RPM_BUILD_ROOT
59
60%clean
61rm -rf $RPM_BUILD_ROOT
62
63%files
64%defattr(644,root,root,755)
652afb45 65%doc Changes
18a1e052 66%{perl_vendorlib}/Test/Output.pm
d878139f 67%{_mandir}/man3/Test::Output.3pm*
This page took 0.078583 seconds and 4 git commands to generate.