]>
Commit | Line | Data |
---|---|---|
bc712cc3 | 1 | # |
2 | # Conditional build: | |
3 | %bcond_without tests # do not perform "make test" | |
4 | # | |
5 | %include /usr/lib/rpm/macros.perl | |
6 | %define pdir Pod | |
7 | %define pnam Tests | |
8 | Summary: Pod::Tests - Extracts embedded tests and code examples from POD | |
30163917 | 9 | Summary(pl.UTF-8): Pod::Tests - wydobywanie osadzonych testów i przykładowego kodu z POD |
fc4b3c35 | 10 | Name: perl-Pod-Tests |
bc712cc3 | 11 | Version: 0.18 |
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/Pod/%{pdir}-%{pnam}-%{version}.tar.gz | |
17 | # Source0-md5: dab7e41c23a1c01fa3e96f6237781dda | |
18 | URL: http://search.cpan.org/dist/Pod-Simple/ | |
19 | BuildRequires: perl-devel >= 1:5.8.0 | |
20 | BuildRequires: rpm-perlprov >= 3.0.3-16 | |
21 | BuildArch: noarch | |
22 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) | |
23 | ||
24 | %define _noautoreq 'perl(overload()' | |
25 | ||
26 | %description | |
27 | This is a specialized POD viewer to extract embedded tests and code | |
28 | examples from POD. It doesn't do much more than that. pod2test does | |
29 | the useful work. | |
30 | ||
30163917 JB |
31 | %description -l pl.UTF-8 |
32 | Ten pakiet jest specjalizowaną przeglądarką POD służącą do wyciągania | |
33 | osadzonych testów i przykładowego kodu z dokumentacji w formacie POD. | |
34 | Robi niewiele więcej. pod2test wykonuje przydatną czynność. | |
35 | ||
bc712cc3 | 36 | %prep |
37 | %setup -q -n %{pdir}-%{pnam}-%{version} | |
38 | ||
39 | %build | |
40 | %{__perl} Makefile.PL \ | |
41 | INSTALLDIRS=vendor | |
42 | %{__make} | |
43 | ||
44 | %{?with_tests:%{__make} test} | |
45 | ||
46 | %install | |
47 | rm -rf $RPM_BUILD_ROOT | |
48 | ||
49 | %{__make} install \ | |
50 | DESTDIR=$RPM_BUILD_ROOT | |
51 | ||
52 | %clean | |
53 | rm -rf $RPM_BUILD_ROOT | |
54 | ||
55 | %files | |
56 | %defattr(644,root,root,755) | |
57 | %doc README | |
58 | %attr(755,root,root) %{_bindir}/pod2test | |
59 | %{perl_vendorlib}/Pod/Tests.pm | |
60 | %{_mandir}/man[13]/* |