]>
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 |
d020fb40 | 11 | Release: 8 |
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/ |
90f55082 | 17 | BuildRequires: perl(Alien::Base) |
51d6da7d | 18 | BuildRequires: perl(Alien::LibGumbo) |
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/* |