]>
Commit | Line | Data |
---|---|---|
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 |
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 | |
5c31f2d5 | 9 | Name: perl-Test-Output |
652afb45 JB |
10 | # main versions have two decimal digits; separate further digits with _ to avoid epoch bumps on future updates |
11 | Version: 1.03_1 | |
12 | %define fver %(echo %{version} | tr -d _) | |
5c31f2d5 MP |
13 | Release: 1 |
14 | # same as perl | |
15 | License: GPL v1+ or Artistic | |
16 | Group: Development/Languages/Perl | |
652afb45 JB |
17 | Source0: http://www.cpan.org/modules/by-module/Test/%{pdir}-%{pnam}-%{fver}.tar.gz |
18 | # Source0-md5: 5384ea67483c98290c1e51b3b2aee84d | |
19 | URL: https://metacpan.org/release/Test-Output | |
20 | BuildRequires: perl-ExtUtils-MakeMaker >= 6.64 | |
5c31f2d5 MP |
21 | BuildRequires: perl-devel >= 1:5.8.0 |
22 | BuildRequires: rpm-perlprov >= 4.1-13 | |
652afb45 | 23 | BuildRequires: rpmbuild(macros) >= 1.745 |
5c31f2d5 | 24 | %if %{with tests} |
d878139f | 25 | BuildRequires: perl-Capture-Tiny >= 0.17 |
132d2e65 | 26 | BuildRequires: perl-File-Temp >= 0.21 |
652afb45 | 27 | BuildRequires: perl-Test-Simple >= 0.94 |
132d2e65 | 28 | BuildRequires: perl-Test-Tester >= 0.107 |
5c31f2d5 MP |
29 | %endif |
30 | BuildArch: noarch | |
31 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) | |
32 | ||
33 | %description | |
5d4a3a06 JB |
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. | |
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 | |
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) | |
652afb45 | 65 | %doc Changes |
18a1e052 | 66 | %{perl_vendorlib}/Test/Output.pm |
d878139f | 67 | %{_mandir}/man3/Test::Output.3pm* |