3 %bcond_without tests # do not perform "make test"
7 %include /usr/lib/rpm/macros.perl
8 Summary: PPI::HTML - Generate syntax-hightlighted HTML for Perl using PPI
9 Summary(pl.UTF-8): PPI::HTML - generowanie HTML-a z podświetlaniem składni dla Perla z PPI
14 License: GPL v1+ or Artistic
15 Group: Development/Languages/Perl
16 Source0: http://www.cpan.org/modules/by-module/PPI/%{pdir}-%{pnam}-%{version}.tar.gz
17 # Source0-md5: 7485ae90643992f410fba6ba6573872f
18 URL: http://search.cpan.org/dist/PPI-HTML/
19 BuildRequires: perl-devel >= 1:5.8.0
20 BuildRequires: rpm-perlprov >= 4.1-13
22 BuildRequires: perl-CSS-Tiny >= 1.10
23 BuildRequires: perl-PPI >= 0.990
24 BuildRequires: perl-Params-Util >= 0.05
26 Requires: perl-CSS-Tiny >= 1.10
27 Requires: perl-PPI >= 0.990
28 Requires: perl-Params-Util >= 0.05
30 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
33 PPI::HTML converts Perl documents into syntax highlighted HTML pages.
35 %description -l pl.UTF-8
36 PPI::HTML konwertuje dokumenty Perla do stron HTML z podświetlaniem
40 %setup -q -n %{pdir}-%{pnam}-%{version}
43 %{__perl} Makefile.PL \
47 %{?with_tests:%{__make} test}
50 rm -rf $RPM_BUILD_ROOT
52 %{__make} pure_install \
53 DESTDIR=$RPM_BUILD_ROOT
56 rm -rf $RPM_BUILD_ROOT
59 %defattr(644,root,root,755)
61 %attr(755,root,root) %{_bindir}/ppi2html
62 %{perl_vendorlib}/PPI/HTML.pm
63 %{perl_vendorlib}/PPI/HTML
64 %{_mandir}/man3/PPI::HTML.3pm*