]> git.pld-linux.org Git - packages/perl-TAP-Harness-Archive.git/blob - perl-TAP-Harness-Archive.spec
- drop obsolete and outdated manual inclusion of rpm macros
[packages/perl-TAP-Harness-Archive.git] / perl-TAP-Harness-Archive.spec
1 #
2 # Conditional build:
3 %bcond_without  tests           # do not perform "make test"
4 #
5 %define         pdir    TAP
6 %define         pnam    Harness-Archive
7 Summary:        TAP::Harness::Archive - Create an archive of TAP test results
8 Summary(pl.UTF-8):      TAP::Harness::Archive - tworzenie archiwów wyników testów TAP
9 Name:           perl-TAP-Harness-Archive
10 Version:        0.14
11 Release:        1
12 # same as perl
13 License:        GPL v1+ or Artistic
14 Group:          Development/Languages/Perl
15 Source0:        http://www.cpan.org/modules/by-module/TAP/%{pdir}-%{pnam}-%{version}.tar.gz
16 # Source0-md5:  f7417c336ebb9c28937f494f05e342bb
17 URL:            http://search.cpan.org/dist/TAP-Harness-Archive/
18 BuildRequires:  perl-Module-Build
19 BuildRequires:  perl-devel >= 1:5.8.0
20 BuildRequires:  rpm-perlprov >= 4.1-13
21 %if %{with tests}
22 BuildRequires:  perl-Archive-Tar
23 BuildRequires:  perl-Test-Harness >= 3.05
24 BuildRequires:  perl-Test-Simple
25 BuildRequires:  perl-YAML-Tiny
26 %endif
27 Requires:       perl-Test-Harness >= 3.05
28 BuildArch:      noarch
29 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
30
31 %description
32 This module is a direct subclass of TAP::Harness and behaves in
33 exactly the same way except for one detail. In addition to outputting
34 a running progress of the tests and an ending summary it can also
35 capture all of the raw TAP from the individual test files or streams
36 into an archive file (.tar or .tar.gz).
37
38 %description -l pl.UTF-8
39 Ten moduł jest bezpośrednią podklasą TAP::Harness i zachowuje się
40 dokładnie w ten sam sposób, z wyjątkiem jednego szczegółu. Poza
41 wypisywaniem postępów testów oraz końcowego podsumowania potrafi także
42 przechwycić całe surowe wyniki TAP z poszczególnych plików lub
43 strumieni testów do pliku archiwum (.tar lub .tar.gz).
44
45 %prep
46 %setup -q -n %{pdir}-%{pnam}-%{version}
47
48 %build
49 %{__perl} Build.PL \
50         destdir=$RPM_BUILD_ROOT \
51         installdirs=vendor
52 ./Build
53
54 %{?with_tests:./Build test}
55
56 %install
57 rm -rf $RPM_BUILD_ROOT
58
59 ./Build install
60
61 %clean
62 rm -rf $RPM_BUILD_ROOT
63
64 %files
65 %defattr(644,root,root,755)
66 %doc Changes TODO
67 %{perl_vendorlib}/TAP/Harness/Archive.pm
68 %{_mandir}/man3/TAP::Harness::Archive.3pm*
This page took 0.091587 seconds and 4 git commands to generate.