]> git.pld-linux.org Git - packages/perl-HTML-Gumbo.git/blob - perl-HTML-Gumbo.spec
- perl req/prov fix
[packages/perl-HTML-Gumbo.git] / perl-HTML-Gumbo.spec
1 #
2 # Conditional build:
3 %bcond_without  tests           # do not perform "make test"
4 #
5 %define         pdir    HTML
6 %define         pnam    Gumbo
7 %include        /usr/lib/rpm/macros.perl
8 Summary:        HTML::Gumbo - HTML5 parser based on gumbo C library
9 Name:           perl-HTML-Gumbo
10 Version:        0.13
11 Release:        11
12 License:        unknown
13 Group:          Development/Languages/Perl
14 Source0:        http://www.cpan.org/modules/by-module/HTML/%{pdir}-%{pnam}-%{version}.tar.gz
15 # Source0-md5:  189681412073f4a5d9874b0e21d592d6
16 URL:            http://search.cpan.org/dist/HTML-Gumbo/
17 BuildRequires:  perl(Alien::Base)
18 BuildRequires:  perl(Alien::LibGumbo)
19 BuildRequires:  perl-ExtUtils-CBuilder
20 BuildRequires:  perl-Module-Build
21 BuildRequires:  perl-devel >= 1:5.8.0
22 BuildRequires:  rpm-perlprov >= 4.1-13
23 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
24
25 %description
26 Gumbo is an implementation of the HTML5 parsing algorithm implemented
27 as a pure C99 library with no outside dependencies.
28
29 %prep
30 %setup -q -n %{pdir}-%{pnam}-%{version}
31
32 %build
33 %{__perl} Build.PL \
34         destdir=$RPM_BUILD_ROOT \
35         installdirs=vendor
36 ./Build
37
38 %{?with_tests:./Build test}
39
40 %install
41 rm -rf $RPM_BUILD_ROOT
42
43 ./Build install
44
45 %clean
46 rm -rf $RPM_BUILD_ROOT
47
48 %files
49 %defattr(644,root,root,755)
50 %{perl_vendorarch}/HTML/*.pm
51 %dir %{perl_vendorarch}/auto/HTML/Gumbo
52 %attr(755,root,root) %{perl_vendorarch}/auto/HTML/Gumbo/*.so
53 %{_mandir}/man3/*
This page took 0.024659 seconds and 3 git commands to generate.