]> git.pld-linux.org Git - packages/perl-HTML-Tidy.git/blame - perl-HTML-Tidy.spec
- release 2
[packages/perl-HTML-Tidy.git] / perl-HTML-Tidy.spec
CommitLineData
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
8Summary: HTML::Tidy - (X)HTML validation in a Perl object
9Name: perl-HTML-Tidy
10Version: 1.54
b5d5eae5 11Release: 2
0818029a
ER
12License: Artistic v2
13Group: Development/Languages/Perl
14Source0: http://www.cpan.org/modules/by-authors/id/P/PE/PETDANCE/HTML-Tidy-%{version}.tar.gz
15# Source0-md5: 3025e63d5a85d2abfa793dc1353f8752
16URL: http://search.cpan.org/dist/HTML-Tidy/
17BuildRequires: libtidyp-devel
18BuildRequires: perl(ExtUtils::MakeMaker)
19BuildRequires: perl(Test::Builder)
20BuildRequires: perl(Test::More)
21BuildRequires: perl-devel >= 1:5.8.0
22BuildRequires: rpm-perlprov >= 4.1-13
23%if %{with tests}
24BuildRequires: perl(Test::Pod)
25BuildRequires: perl(Test::Pod::Coverage)
26%endif
27BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
28
29%description
30HTML::Tidy is an HTML checker in a handy dandy object. It's meant as a
31replacement for HTML::Lint. If you're currently an HTML::Lint user
32looking 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
47rm -rf $RPM_BUILD_ROOT
48%{__make} pure_install \
49 DESTDIR=$RPM_BUILD_ROOT
50
51%clean
52rm -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*
This page took 0.312186 seconds and 4 git commands to generate.