]> git.pld-linux.org Git - SPECS.git/blob - perl-HTML-Highlight.spec
SPECS updated Wed 28 Jul 14:48:01 CEST 2021
[SPECS.git] / perl-HTML-Highlight.spec
1 #
2 # Conditional build:
3 %bcond_without  tests   # do not perform "make test"
4 #
5 %define         pdir    HTML
6 %define         pnam    Highlight
7 Summary:        HTML::Highlight - highlight words or patterns in HTML documents
8 Name:           perl-HTML-Highlight
9 Version:        0.20
10 Release:        1
11 # same as perl
12 License:        GPL v1+ or Artistic
13 Group:          Development/Languages/Perl
14 Source0:        http://www.cpan.org/modules/by-module/%{pdir}/%{pdir}-%{pnam}-%{version}.tar.gz
15 # Source0-md5:  85cfcff2d5880bdbe126a9a4fdc7b155
16 URL:            http://search.cpan.org/dist/HTML-Highlight/
17 BuildRequires:  perl-devel >= 1:5.8.0
18 BuildRequires:  rpm-perlprov >= 4.1-13
19 BuildArch:      noarch
20 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
21
22 %description
23 This module provides Google-like highlighting of words or patterns in
24 HTML documents. This feature is typically used to highlight search
25 results.
26
27 %prep
28 %setup -q -n %{pdir}-%{pnam}-%{version}
29
30 %build
31 %{__perl} Makefile.PL \
32         INSTALLDIRS=vendor
33 %{__make}
34
35 %{?with_tests:%{__make} test}
36
37 %install
38 rm -rf $RPM_BUILD_ROOT
39
40 %{__make} install \
41         DESTDIR=$RPM_BUILD_ROOT
42
43 %clean
44 rm -rf $RPM_BUILD_ROOT
45
46 %files
47 %defattr(644,root,root,755)
48 %doc Changes
49 %{perl_vendorlib}/%{pdir}/*.pm
50 %{_mandir}/man3/*
This page took 0.055785 seconds and 3 git commands to generate.