#
# spec file for package perl-HTML-Tidy (Version 1.08)
#
# Copyright (c) 2007 SUSE LINUX Products GmbH, Nuernberg, Germany.
# This file and all modifications and additions to the pristine
# package are under the same license as the package itself.
#
# Please submit bugfixes or comments via http://bugs.opensuse.org/
#
# norootforbuild
Name: perl-HTML-Tidy
Version: 1.08
Release: 1
Summary: HTML checker module for Perl
Group: Development/Libraries/Perl
License: Artistic License, GPL v2 or later
URL: http://search.cpan.org/dist/HTML-Tidy/
Source0: HTML-Tidy-%{version}.tar.bz2
BuildRequires: perl
BuildRequires: perl-macros
BuildRequires: libtidy-devel
BuildRoot: %{_tmppath}/%{name}-%{version}-build
%{perl_requires}
%description
HTML::Tidy is an HTML checker in a handy dandy Perl object. Its meant
as a replacement for HTML::Lint.
Authors:
--------
Andy Lester,
%prep
%setup -q -n HTML-Tidy-%{version}
%build
%{__perl} Makefile.PL INSTALLDIRS=vendor OPTIMIZE="$RPM_OPT_FLAGS"
%__make %{?_smp_mflags}
%install
%perl_make_install
%perl_process_packlist
find $RPM_BUILD_ROOT -type f -name '*.bs' -a -size 0 -exec rm -f {} ';'
%clean
%__rm -rf $RPM_BUILD_ROOT
%check
%__make test || : # http://rt.cpan.org/Ticket/Display.html?id=26875
%files
%defattr(-, root, root)
%doc Changes README
%{_bindir}/webtidy
%dir %{perl_vendorarch}/HTML
%{perl_vendorarch}/HTML/Tidy.pm
%dir %{perl_vendorarch}/HTML/Tidy
%{perl_vendorarch}/HTML/Tidy/Message.pm
%dir %{perl_vendorarch}/auto/HTML
%dir %{perl_vendorarch}/auto/HTML/Tidy
%{perl_vendorarch}/auto/HTML/Tidy/Tidy*
%{_mandir}/man3/HTML::Tidy*.gz
%changelog
* Tue Jul 31 2007 - pgajdos@suse.cz
- moved from OBS, version 1.08
* Fri Jun 22 2007 - sierkb@gmx.de
- small changes to the spec file
- 1.08, don't fail on failing test suite for now, see
http://rt.cpan.org/Ticket/Display.html?id=26875
* Thu Jun 21 2007 - suse-tux@gmx.de
- initial build