3 %bcond_without tests # do not perform "make test"
7 Summary: Test::Output - Utilities to test STDOUT and STDERR messages
8 Summary(pl.UTF-8): Test::Output - narzędzia do terowania komunikatów STDOUT i STDERR
10 # main versions have two decimal digits; separate further digits with _ to avoid epoch bumps on future updates
12 %define fver %(echo %{version} | tr -d _)
15 License: GPL v1+ or Artistic
16 Group: Development/Languages/Perl
17 Source0: http://www.cpan.org/modules/by-module/Test/%{pdir}-%{pnam}-%{fver}.tar.gz
18 # Source0-md5: 454bac1d7423e793c820b7d70987fbc6
19 URL: https://metacpan.org/release/Test-Output
20 BuildRequires: perl-ExtUtils-MakeMaker >= 6.64
21 BuildRequires: perl-devel >= 1:5.8.0
22 BuildRequires: rpm-perlprov >= 4.1-13
23 BuildRequires: rpmbuild(macros) >= 1.745
25 BuildRequires: perl-Capture-Tiny >= 0.17
26 BuildRequires: perl-File-Temp >= 0.21
27 BuildRequires: perl-Test-Simple >= 1
28 BuildRequires: perl-Test-Tester >= 0.107
31 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
34 Test::Output provides a simple interface for testing output sent to
35 STDOUT or STDERR. A number of different utilies are included to try
36 and be as flexible as possible to the tester.
38 %description -l pl.UTF-8
39 Test::Output udostępnia prosty interfejs do testowania komunikatów
40 wysyłanych na STDOUT lub STDERR. Załączonych jest wiele różnych
41 narzędzi do wypróbowania, mających być jak najbardziej elastycznymi
45 %setup -q -n %{pdir}-%{pnam}-%{fver}
48 %{__perl} Makefile.PL \
52 %{?with_tests:%{__make} test}
55 rm -rf $RPM_BUILD_ROOT
58 DESTDIR=$RPM_BUILD_ROOT
61 rm -rf $RPM_BUILD_ROOT
64 %defattr(644,root,root,755)
66 %{perl_vendorlib}/Test/Output.pm
67 %{_mandir}/man3/Test::Output.3pm*