]> git.pld-linux.org Git - packages/perl-Test-Output.git/blob - perl-Test-Output.spec
- updated to 1.03[_]3
[packages/perl-Test-Output.git] / perl-Test-Output.spec
1 #
2 # Conditional build:
3 %bcond_without  tests           # do not perform "make test"
4 #
5 %define pdir    Test
6 %define pnam    Output
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
9 Name:           perl-Test-Output
10 # main versions have two decimal digits; separate further digits with _ to avoid epoch bumps on future updates
11 Version:        1.03_3
12 %define fver    %(echo %{version} | tr -d _)
13 Release:        1
14 # same as perl
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
24 %if %{with tests}
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
29 %endif
30 BuildArch:      noarch
31 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
32
33 %description
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.
37
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
42 dla testera.
43
44 %prep
45 %setup -q -n %{pdir}-%{pnam}-%{fver}
46
47 %build
48 %{__perl} Makefile.PL \
49         INSTALLDIRS=vendor
50 %{__make}
51
52 %{?with_tests:%{__make} test}
53
54 %install
55 rm -rf $RPM_BUILD_ROOT
56
57 %{__make} install \
58         DESTDIR=$RPM_BUILD_ROOT
59
60 %clean
61 rm -rf $RPM_BUILD_ROOT
62
63 %files
64 %defattr(644,root,root,755)
65 %doc Changes
66 %{perl_vendorlib}/Test/Output.pm
67 %{_mandir}/man3/Test::Output.3pm*
This page took 0.076016 seconds and 4 git commands to generate.