]>
Commit | Line | Data |
---|---|---|
ba9c8ad6 AM |
1 | # |
2 | # Conditional build: | |
3 | %bcond_without tests # do not perform "make test" | |
4 | # | |
5 | %define pdir HTML | |
6 | %define pnam Gumbo | |
ba9c8ad6 AM |
7 | Summary: HTML::Gumbo - HTML5 parser based on gumbo C library |
8 | Name: perl-HTML-Gumbo | |
3dd9972d | 9 | Version: 0.18 |
709c6ef0 | 10 | Release: 2 |
ba9c8ad6 AM |
11 | License: unknown |
12 | Group: Development/Languages/Perl | |
13 | Source0: http://www.cpan.org/modules/by-module/HTML/%{pdir}-%{pnam}-%{version}.tar.gz | |
3dd9972d | 14 | # Source0-md5: 2e6dd6060e982a7408f5b4cf7bfadd45 |
ba9c8ad6 | 15 | URL: http://search.cpan.org/dist/HTML-Gumbo/ |
5561b216 | 16 | BuildRequires: gumbo-parser-devel |
90f55082 | 17 | BuildRequires: perl(Alien::Base) |
2e24ad49 | 18 | BuildRequires: perl(Alien::LibGumbo) >= 0.03 |
b2924723 | 19 | BuildRequires: perl-ExtUtils-CBuilder |
7f62e4e1 | 20 | BuildRequires: perl-Module-Build |
ba9c8ad6 AM |
21 | BuildRequires: perl-devel >= 1:5.8.0 |
22 | BuildRequires: rpm-perlprov >= 4.1-13 | |
ba9c8ad6 AM |
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 \ | |
ba9c8ad6 AM |
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 | |
ba9c8ad6 AM |
52 | %attr(755,root,root) %{perl_vendorarch}/auto/HTML/Gumbo/*.so |
53 | %{_mandir}/man3/* |