]>
Commit | Line | Data |
---|---|---|
0818029a ER |
1 | # |
2 | # Conditional build: | |
3 | %bcond_without tests # do not perform "make test" | |
4 | ||
5 | %define pdir HTML | |
6 | %define pnam Tidy | |
7 | %include /usr/lib/rpm/macros.perl | |
8 | Summary: HTML::Tidy - (X)HTML validation in a Perl object | |
9 | Name: perl-HTML-Tidy | |
10 | Version: 1.54 | |
b5d5eae5 | 11 | Release: 2 |
0818029a ER |
12 | License: Artistic v2 |
13 | Group: Development/Languages/Perl | |
14 | Source0: http://www.cpan.org/modules/by-authors/id/P/PE/PETDANCE/HTML-Tidy-%{version}.tar.gz | |
15 | # Source0-md5: 3025e63d5a85d2abfa793dc1353f8752 | |
16 | URL: http://search.cpan.org/dist/HTML-Tidy/ | |
17 | BuildRequires: libtidyp-devel | |
18 | BuildRequires: perl(ExtUtils::MakeMaker) | |
19 | BuildRequires: perl(Test::Builder) | |
20 | BuildRequires: perl(Test::More) | |
21 | BuildRequires: perl-devel >= 1:5.8.0 | |
22 | BuildRequires: rpm-perlprov >= 4.1-13 | |
23 | %if %{with tests} | |
24 | BuildRequires: perl(Test::Pod) | |
25 | BuildRequires: perl(Test::Pod::Coverage) | |
26 | %endif | |
27 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) | |
28 | ||
29 | %description | |
30 | HTML::Tidy is an HTML checker in a handy dandy object. It's meant as a | |
31 | replacement for HTML::Lint. If you're currently an HTML::Lint user | |
32 | looking to migrate, see the section /Converting from HTML::Lint. | |
33 | ||
34 | %prep | |
35 | %setup -q -n %{pdir}-%{pnam}-%{version} | |
36 | ||
37 | %build | |
38 | %{__perl} Makefile.PL \ | |
39 | INSTALLDIRS=vendor | |
40 | %{__make} \ | |
41 | CC="%{__cc}" \ | |
42 | OPTIMIZE="%{rpmcflags}" | |
43 | ||
44 | %{?with_tests:%{__make} test} | |
45 | ||
46 | %install | |
47 | rm -rf $RPM_BUILD_ROOT | |
48 | %{__make} pure_install \ | |
49 | DESTDIR=$RPM_BUILD_ROOT | |
50 | ||
51 | %clean | |
52 | rm -rf $RPM_BUILD_ROOT | |
53 | ||
54 | %files | |
55 | %defattr(644,root,root,755) | |
56 | %doc Changes | |
57 | %attr(755,root,root) %{_bindir}/webtidy | |
58 | %{perl_vendorarch}/HTML/Tidy.pm | |
59 | %dir %{perl_vendorarch}/HTML/Tidy | |
60 | %{perl_vendorarch}/HTML/Tidy/Message.pm | |
61 | %dir %{perl_vendorarch}/auto/HTML/Tidy | |
62 | %{perl_vendorarch}/auto/HTML/Tidy/Tidy.bs | |
63 | %attr(755,root,root) %{perl_vendorarch}/auto/HTML/Tidy/Tidy.so | |
64 | %{_mandir}/man3/HTML::Tidy* |