perl-HTML-Parser/perl-HTML-Parser.spec
Anna Maresova db168c5f48 - update to 3.64
* Convert files to UTF-8
 * Don't allow decode_entities() to generate illegal Unicode chars
 * Copyright 2009
 * Remove rendundant (repeated) test
 * Make parse_file() method use 3-arg open [RT#49434]
 * Take more care to prepare the char range for encode_entities [RT#50170]
 * decode_entities confused by trailing incomplete entity
 * HTTP::Header doc typo fix.
 * Do not bother tracking style or script, they're ignored.
 * Bring HTML 5 head elements up to date with WD-html5-20090423.
 * Improve HeadParser performance.
 * Doc patch: Make it clearer what the return value from ->parse is
- remove last patch (fixed in upstream)

OBS-URL: https://build.opensuse.org/package/show/devel:languages:perl/perl-HTML-Parser?expand=0&rev=11
2010-01-13 16:41:26 +00:00

90 lines
2.9 KiB
RPMSpec

#
# spec file for package perl-HTML-Parser (Version 3.61)
#
# Copyright (c) 2010 SUSE LINUX Products GmbH, Nuernberg, Germany.
#
# 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.
# Please submit bugfixes or comments via http://bugs.opensuse.org/
#
# norootforbuild
Name: perl-HTML-Parser
%define cpan_name %( echo %{name} | %{__sed} -e 's,perl-,,' )
Summary: HTML parser class
Version: 3.64
Release: 3
License: Artistic License ..
Group: Development/Libraries/Perl
Url: http://search.org/dist/HTML-Parser
Source: %{cpan_name}-%{version}.tar.bz2
BuildRoot: %{_tmppath}/%{name}-%{version}-build
BuildRequires: perl
BuildRequires: perl-macros
BuildRequires: perl(Test::More)
BuildRequires: perl(Test::Pod) >= 1.00
BuildRequires: perl(HTML::Tagset) >= 3
BuildRequires: perl(XSLoader)
Requires: perl = %{perl_version}
Requires: perl(HTML::Tagset) >= 3
Requires: perl(XSLoader)
Requires: perl(HTTP::Headers)
%description
Objects of the HTML::Parser class will recognize markup and separate it from
plain text (alias data content) in HTML documents. As different kinds of
markup and text are recognized, the corresponding event handlers are invoked.
HTML::Parser is not a generic SGML parser. We have tried to make it able to
deal with the HTML that is actually "out there", and it normally parses as
closely as possible to the way the popular web browsers do it instead of
strictly following one of the many HTML specifications from W3C. Where
there is disagreement, there is often an option that you can enable to
get the official behaviour.
The document to be parsed may be supplied in arbitrary chunks. This makes
on-the-fly parsing as documents are received from the network possible.
If event driven parsing does not feel right for your application, you might
want to use HTML::PullParser. This is an HTML::Parser subclass that allows
a more conventional program structure.
Authors: libwww@perl.org
COPYRIGHT
© 1995-2008 Gisle Aas. All rights reserved.
© 1999-2000 Michael A. Chase. All rights reserved.
%prep
%setup -q -n %{cpan_name}-%{version}
%build
CFLAGS="$RPM_OPT_FLAGS" perl Makefile.PL
%{__make} %{?_smp_mflags}
%check
%{__make} test
%install
%perl_make_install
%perl_process_packlist
%perl_gen_filelist
%clean
%{__rm} -rf $RPM_BUILD_ROOT
%files -f %{name}.files
%defattr(0644,root,root,0755)
%doc Changes README TODO eg
%changelog