Files
perl-HTML-TagParser/perl-HTML-TagParser.spec

76 lines
1.7 KiB
RPMSpec

#
# spec file for package perl-HTML-TagParser (Version 0.16.1)
#
# 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
%define oversion 0.16
Name: perl-HTML-TagParser
URL: http://search.cpan.org/~kawasaki/HTML-TagParser-%{oversion}/
License: GPL, Artistic License
Group: Development/Languages/Perl
%{perl_requires}
Autoreqprov: on
Summary: Yet another HTML document parser with DOM-like methods
Packager: jw@suse.de
Version: 0.16.1
Release: 1
Source: HTML-TagParser-%{oversion}.tar.bz2
Patch: HTML-TagParser-%{oversion}-subtree.diff
BuildRoot: %{_tmppath}/%{name}-%{version}-build
BuildRequires: perl
%description
HTML::TagParser - Yet another HTML document parser with DOM-like methods.
Patched version with improved container detection, added subtree extraction and
DOM-like navigation methods.
Authors:
--------
Yusuke Kawasaki <u-suke@kawa.net>
Contributors
------------
Juergen Weigert <jw@suse.de>
%prep
%setup -n HTML-TagParser-%{oversion}
%patch -p1
%build
perl Makefile.PL
make
make test
%install
chmod a-x README
make DESTDIR=$RPM_BUILD_ROOT install_vendor
%if 0%{?suse_version}
%perl_process_packlist
%else
rm -f $RPM_BUILD_ROOT/%{perl_archlib}/perllocal.pod
%endif
%clean
rm -rf $RPM_BUILD_ROOT
%files
%defattr(-,root,root)
%doc MANIFEST Changes README
%{perl_vendorlib}/HTML
%dir %{perl_vendorarch}/auto/HTML-TagParser
%{_mandir}/man3/HTML::TagParser*.3pm*
%if 0%{?suse_version}
%endif
%changelog