]>
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 | |
7 | %include /usr/lib/rpm/macros.perl | |
8 | Summary: HTML::Gumbo - HTML5 parser based on gumbo C library | |
9 | Name: perl-HTML-Gumbo | |
b2924723 AM |
10 | Version: 0.13 |
11 | Release: 1 | |
ba9c8ad6 AM |
12 | License: unknown |
13 | Group: Development/Languages/Perl | |
14 | Source0: http://www.cpan.org/modules/by-module/HTML/%{pdir}-%{pnam}-%{version}.tar.gz | |
b2924723 | 15 | # Source0-md5: 189681412073f4a5d9874b0e21d592d6 |
ba9c8ad6 | 16 | URL: http://search.cpan.org/dist/HTML-Gumbo/ |
b2924723 AM |
17 | BuildRequires: perl-ExtUtils-CBuilder |
18 | BuildRequires: perl-Module-Build >= 0.4210 | |
ba9c8ad6 AM |
19 | BuildRequires: perl-devel >= 1:5.8.0 |
20 | BuildRequires: rpm-perlprov >= 4.1-13 | |
21 | %if %{with tests} | |
22 | BuildRequires: perl(Alien::LibGumbo) | |
23 | %endif | |
24 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) | |
25 | ||
26 | %description | |
27 | Gumbo is an implementation of the HTML5 parsing algorithm implemented | |
28 | as a pure C99 library with no outside dependencies. | |
29 | ||
30 | %prep | |
31 | %setup -q -n %{pdir}-%{pnam}-%{version} | |
32 | ||
33 | %build | |
34 | %{__perl} Build.PL \ | |
ba9c8ad6 AM |
35 | destdir=$RPM_BUILD_ROOT \ |
36 | installdirs=vendor | |
37 | ./Build | |
38 | ||
39 | %{?with_tests:./Build test} | |
40 | ||
41 | %install | |
42 | rm -rf $RPM_BUILD_ROOT | |
43 | ||
44 | ./Build install | |
45 | ||
46 | %clean | |
47 | rm -rf $RPM_BUILD_ROOT | |
48 | ||
49 | %files | |
50 | %defattr(644,root,root,755) | |
51 | %{perl_vendorarch}/HTML/*.pm | |
52 | %dir %{perl_vendorarch}/auto/HTML/Gumbo | |
53 | %{perl_vendorarch}/auto/HTML/Gumbo/*.bs | |
54 | %attr(755,root,root) %{perl_vendorarch}/auto/HTML/Gumbo/*.so | |
55 | %{_mandir}/man3/* |