2008-09-16 15:46:25 +00:00
|
|
|
#
|
2011-11-17 15:34:34 +00:00
|
|
|
# spec file for package perl-HTML-TagParser
|
2008-09-16 15:46:25 +00:00
|
|
|
#
|
2011-11-17 15:34:34 +00:00
|
|
|
# Copyright (c) 2011 SUSE LINUX Products GmbH, Nuernberg, Germany.
|
2008-09-16 15:46:25 +00:00
|
|
|
#
|
2011-11-17 15:34:34 +00:00
|
|
|
# All modifications and additions to the file contributed by third parties
|
|
|
|
# remain the property of their copyright owners, unless otherwise agreed
|
|
|
|
# upon. The license for this file, and modifications and additions to the
|
|
|
|
# file, is the same license as for the pristine package itself (unless the
|
|
|
|
# license for the pristine package is not an Open Source License, in which
|
|
|
|
# case the license is the MIT License). An "Open Source License" is a
|
|
|
|
# license that conforms to the Open Source Definition (Version 1.9)
|
|
|
|
# published by the Open Source Initiative.
|
|
|
|
|
2008-09-16 15:46:25 +00:00
|
|
|
# Please submit bugfixes or comments via http://bugs.opensuse.org/
|
|
|
|
#
|
|
|
|
|
|
|
|
# norootforbuild
|
|
|
|
|
|
|
|
%define oversion 0.16
|
|
|
|
|
|
|
|
Name: perl-HTML-TagParser
|
2011-11-17 15:34:34 +00:00
|
|
|
Url: http://search.cpan.org/~kawasaki/HTML-TagParser-%{oversion}/
|
2008-09-16 15:46:25 +00:00
|
|
|
License: GPL, Artistic License
|
|
|
|
Group: Development/Languages/Perl
|
2011-11-17 15:34:34 +00:00
|
|
|
AutoReqProv: on
|
2008-09-16 15:46:25 +00:00
|
|
|
Summary: Yet another HTML document parser with DOM-like methods
|
|
|
|
|
|
|
|
Version: 0.16.1
|
|
|
|
Release: 1
|
2011-11-17 15:34:34 +00:00
|
|
|
Source: HTML-TagParser-%{oversion}.tar.gz
|
|
|
|
Patch: HTML-TagParser-%{oversion}-subtree.diff
|
2008-09-16 15:46:25 +00:00
|
|
|
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
2010-12-03 14:37:42 +00:00
|
|
|
%{perl_requires}
|
2010-10-19 08:46:14 +00:00
|
|
|
BuildRequires: perl
|
2010-12-03 14:37:42 +00:00
|
|
|
BuildRequires: perl-macros
|
2008-09-16 15:46:25 +00:00
|
|
|
|
|
|
|
%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
|