3 %bcond_without tests # do not perform "make test"
7 Summary: Pod::Tests - Extracts embedded tests and code examples from POD
8 Summary(pl.UTF-8): Pod::Tests - wydobywanie osadzonych testów i przykładowego kodu z POD
13 License: GPL v1+ or Artistic
14 Group: Development/Languages/Perl
15 Source0: http://www.cpan.org/modules/by-module/Pod/%{pdir}-%{pnam}-%{version}.tar.gz
16 # Source0-md5: 5f1c6b7423f660869323396176619fd8
17 URL: https://metacpan.org/release/Pod-Tests
18 BuildRequires: perl-ExtUtils-MakeMaker
20 BuildRequires: perl-Test-Harness >= 1.22
21 BuildRequires: perl-Test-Simple
23 BuildRequires: perl-devel >= 1:5.8.0
24 BuildRequires: rpm-perlprov >= 3.0.3-16
25 BuildRequires: rpmbuild(macros) >= 1.745
27 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
30 This is a specialized POD viewer to extract embedded tests and code
31 examples from POD. It doesn't do much more than that. pod2test does
34 %description -l pl.UTF-8
35 Ten pakiet jest specjalizowaną przeglądarką POD służącą do wyciągania
36 osadzonych testów i przykładowego kodu z dokumentacji w formacie POD.
37 Robi niewiele więcej. pod2test wykonuje przydatną czynność.
40 %setup -q -n %{pdir}-%{pnam}-%{version}
43 %{__perl} Makefile.PL \
47 %{?with_tests:%{__make} test}
50 rm -rf $RPM_BUILD_ROOT
53 DESTDIR=$RPM_BUILD_ROOT
56 rm -rf $RPM_BUILD_ROOT
59 %defattr(644,root,root,755)
61 %attr(755,root,root) %{_bindir}/pod2test
62 %{perl_vendorlib}/Pod/Tests.pm
63 %{_mandir}/man1/pod2test.1p*
64 %{_mandir}/man3/Pod::Tests.3pm*