]> git.pld-linux.org Git - packages/perl-PPI-HTML.git/blame - perl-PPI-HTML.spec
- drop obsolete and outdated manual inclusion of rpm macros
[packages/perl-PPI-HTML.git] / perl-PPI-HTML.spec
CommitLineData
a2c6edad
JB
1#
2# Conditional build:
3%bcond_without tests # do not perform "make test"
4#
5%define pdir PPI
6%define pnam HTML
a2c6edad
JB
7Summary: PPI::HTML - Generate syntax-hightlighted HTML for Perl using PPI
8Summary(pl.UTF-8): PPI::HTML - generowanie HTML-a z podświetlaniem składni dla Perla z PPI
9Name: perl-PPI-HTML
10Version: 1.08
11Release: 1
12# same as perl
13License: GPL v1+ or Artistic
14Group: Development/Languages/Perl
15Source0: http://www.cpan.org/modules/by-module/PPI/%{pdir}-%{pnam}-%{version}.tar.gz
16# Source0-md5: 7485ae90643992f410fba6ba6573872f
17URL: http://search.cpan.org/dist/PPI-HTML/
18BuildRequires: perl-devel >= 1:5.8.0
19BuildRequires: rpm-perlprov >= 4.1-13
20%if %{with tests}
21BuildRequires: perl-CSS-Tiny >= 1.10
22BuildRequires: perl-PPI >= 0.990
23BuildRequires: perl-Params-Util >= 0.05
24%endif
25Requires: perl-CSS-Tiny >= 1.10
26Requires: perl-PPI >= 0.990
27Requires: perl-Params-Util >= 0.05
28BuildArch: noarch
29BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
30
31%description
32PPI::HTML converts Perl documents into syntax highlighted HTML pages.
33
34%description -l pl.UTF-8
35PPI::HTML konwertuje dokumenty Perla do stron HTML z podświetlaniem
36składni.
37
38%prep
39%setup -q -n %{pdir}-%{pnam}-%{version}
40
41%build
42%{__perl} Makefile.PL \
43 INSTALLDIRS=vendor
44%{__make}
45
46%{?with_tests:%{__make} test}
47
48%install
49rm -rf $RPM_BUILD_ROOT
50
51%{__make} pure_install \
52 DESTDIR=$RPM_BUILD_ROOT
53
54%clean
55rm -rf $RPM_BUILD_ROOT
56
57%files
58%defattr(644,root,root,755)
59%doc Changes README
60%attr(755,root,root) %{_bindir}/ppi2html
61%{perl_vendorlib}/PPI/HTML.pm
62%{perl_vendorlib}/PPI/HTML
63%{_mandir}/man3/PPI::HTML.3pm*
This page took 0.138201 seconds and 4 git commands to generate.