]> git.pld-linux.org Git - packages/perl-PodToHTML.git/blob - perl-PodToHTML.spec
- release 3
[packages/perl-PodToHTML.git] / perl-PodToHTML.spec
1 #
2 # Conditional build:
3 %bcond_without  tests   # do not perform "make test"
4 #
5 %include        /usr/lib/rpm/macros.perl
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.05
10 Release:        3
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:  0a6a4d1887e6b95df0232b002940a5c3
16 BuildRequires:  rpm-perlprov >= 4.1-13
17 BuildRequires:  perl-devel >= 1:5.8.0
18 BuildRequires:  perl-HTML-Tree
19 BuildRequires:  perl-HTML-Parser
20 BuildRequires:  perl-HTML-Stream
21 BuildRequires:  perl-URI
22 BuildArch:      noarch
23 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
24
25 %description
26 PodToHTML Perl module converts POD to HTML or PostScript.
27
28 %description -l pl.UTF-8
29 Moduł Perla PodToHTML konwertuje pliki POD do formatu HTML lub
30 PostScript.
31
32 %prep
33 %setup -q -n PodToHTML-%{version}
34 %{__perl} -pi -e 's/^(use\s+Pod::Parser\s+1.06)1/$1_1/' Pod/HTML_Elements.pm
35 # this package requires Pod::Parser, which also contains Pod::Find
36 %{__perl} -pi -e 's/\bPod::Find\b/Pod::FindFiles/g' findpods Pod/Find.pm podtohtml
37 %{__mv} Pod/Find.pm Pod/FindFiles.pm
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.23974 seconds and 3 git commands to generate.