]>
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 | 10 | Version: 0.13 |
d6586d3d | 11 | Release: 4 |
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/ |
51d6da7d | 17 | BuildRequires: perl(Alien::LibGumbo) |
b2924723 AM |
18 | BuildRequires: perl-ExtUtils-CBuilder |
19 | BuildRequires: perl-Module-Build >= 0.4210 | |
ba9c8ad6 AM |
20 | BuildRequires: perl-devel >= 1:5.8.0 |
21 | BuildRequires: rpm-perlprov >= 4.1-13 | |
ba9c8ad6 AM |
22 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) |
23 | ||
24 | %description | |
25 | Gumbo is an implementation of the HTML5 parsing algorithm implemented | |
26 | as a pure C99 library with no outside dependencies. | |
27 | ||
28 | %prep | |
29 | %setup -q -n %{pdir}-%{pnam}-%{version} | |
30 | ||
31 | %build | |
32 | %{__perl} Build.PL \ | |
ba9c8ad6 AM |
33 | destdir=$RPM_BUILD_ROOT \ |
34 | installdirs=vendor | |
35 | ./Build | |
36 | ||
37 | %{?with_tests:./Build test} | |
38 | ||
39 | %install | |
40 | rm -rf $RPM_BUILD_ROOT | |
41 | ||
42 | ./Build install | |
43 | ||
44 | %clean | |
45 | rm -rf $RPM_BUILD_ROOT | |
46 | ||
47 | %files | |
48 | %defattr(644,root,root,755) | |
49 | %{perl_vendorarch}/HTML/*.pm | |
50 | %dir %{perl_vendorarch}/auto/HTML/Gumbo | |
ba9c8ad6 AM |
51 | %attr(755,root,root) %{perl_vendorarch}/auto/HTML/Gumbo/*.so |
52 | %{_mandir}/man3/* |