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