- drop obsolete and outdated manual inclusion of rpm macros
[packages/perl-PodToHTML.git] / perl-PodToHTML.spec
1 #
2 # Conditional build:
3 %bcond_without  tests   # do not perform "make test"
4
5 %define         pdir    PodToHTML
6 Summary:        PodToHTML Perl module - converts POD to HTML or PostScript
7 Summary(pl.UTF-8):      Moduł Perla PodToHTML - konwersja plików POD do formatu HTML lub PostScript
8 Name:           perl-PodToHTML
9 Version:        0.08
10 Release:        2
11 # same as perl
12 License:        GPL v1+ or Artistic
13 Group:          Development/Languages/Perl
14 Source0:        http://www.cpan.org/modules/by-module/Pod/PodToHTML-%{version}.tar.gz
15 # Source0-md5:  fec09c1e062ed4c670b6b982649e2f24
16 URL:            http://search.cpan.org/dist/PodToHTML/
17 BuildRequires:  perl-HTML-Parser
18 BuildRequires:  perl-HTML-Stream
19 BuildRequires:  perl-HTML-Tree
20 BuildRequires:  perl-URI
21 BuildRequires:  perl-devel >= 1:5.8.0
22 BuildRequires:  rpm-perlprov >= 4.1-13
23 Requires:       perl-Pod-Parser
24 BuildArch:      noarch
25 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
26
27 %define         _noautoreq      perl(Pod::Parser)
28
29 %description
30 PodToHTML Perl module converts POD to HTML or PostScript.
31
32 %description -l pl.UTF-8
33 Moduł Perla PodToHTML konwertuje pliki POD do formatu HTML lub
34 PostScript.
35
36 %prep
37 %setup -q -n PodToHTML-%{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}/podtohtml
59 %{perl_vendorlib}/Pod/*.pm
60 %{_mandir}/man[13]/*
This page took 0.200825 seconds and 4 git commands to generate.