File perl-HTML-Tidy.spec of Package perl-HTML-Tidy

#
# 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
Requires:       perl = %{perl_version}
BuildRequires:  perl
BuildRequires:  libtidy-devel
BuildRoot:      %{_tmppath}/%{name}-%{version}-build

%description
HTML::Tidy is an HTML checker in a handy dandy Perl object.  Its meant
as a replacement for HTML::Lint.



Authors:
--------
    Andy Lester, <andy at petdance.com>

%prep
%setup -q -n HTML-Tidy-%{version}

%build
%{__perl} Makefile.PL INSTALLDIRS=vendor OPTIMIZE="$RPM_OPT_FLAGS"

%__make %{?_smp_mflags}

%__make test || : # http://rt.cpan.org/Ticket/Display.html?id=26875

%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

%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
%{perl_vendorarch}/auto/HTML/Tidy/.packlist
%dir %{perl_vendorarch}/auto/HTML/Tidy
%{perl_vendorarch}/auto/HTML/Tidy/Tidy*
%{_mandir}/man3/HTML::Tidy*.gz
%{_var}/adm/perl-modules/perl-HTML-Tidy

%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
openSUSE Build Service is sponsored by