8
0

Accepting request 45997 from devel:languages:perl

checked in (request 45997)

OBS-URL: https://build.opensuse.org/request/show/45997
OBS-URL: https://build.opensuse.org/package/show/devel:languages:perl/perl-HTML-Parser?expand=0&rev=19
This commit is contained in:
OBS User autobuild
2010-08-24 16:04:25 +00:00
committed by Git OBS Bridge
parent ee923a797b
commit 43c37c4f72
4 changed files with 20 additions and 49 deletions

View File

@@ -1,5 +1,5 @@
#
# spec file for package perl-HTML-Parser (Version 3.67)
# spec file for package perl-HTML-Parser (Version 3.66)
#
# Copyright (c) 2010 SUSE LINUX Products GmbH, Nuernberg, Germany.
#
@@ -17,42 +17,32 @@
# norootforbuild
%bcond_with opt
Name: perl-HTML-Parser
%define cpan_name HTML-Parser
%define cpan_name %( echo %{name} | %{__sed} -e 's,perl-,,' )
Summary: HTML parser class
Version: 3.67
Version: 3.66
Release: 1
License: GPL+ or Artistic
License: Artistic License ..
Group: Development/Libraries/Perl
Url: http://search.cpan.org/dist/HTML-Parser/
#Source: http://www.cpan.org/modules/by-module/HTML/HTML-Parser-%{version}.tar.gz
Url: http://search.org/dist/HTML-Parser
Source: %{cpan_name}-%{version}.tar.bz2
BuildRoot: %{_tmppath}/%{name}-%{version}-build
BuildRequires: perl
%if 0%{?suse_version} < 1120
BuildRequires: perl-macros
%endif
%if %{with opt}
BuildRequires: perl(HTTP::Headers)
BuildRequires: perl(Test::Pod) >= 1.00
%endif
BuildRequires: perl(HTML::Tagset) >= 3
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)
#
Recommends: perl(HTTP::Headers)
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.
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
@@ -68,23 +58,17 @@ 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
Authors: libwww@perl.org
COPYRIGHT
© 1995-2008 Gisle Aas. All rights reserved.
© 1999-2000 Michael A. Chase. All rights reserved.
© 1995-2008 Gisle Aas. All rights reserved.
© 1999-2000 Michael A. Chase. All rights reserved.
%prep
%setup -q -n %{cpan_name}-%{version}
# rpmlint: spurious-executable-perm
find ./eg -type f -exec %{__chmod} 0644 {} \;
%{__chmod} 0644 mkpfunc mkhctype
%build
%{__perl} Makefile.PL INSTALLDIRS=vendor OPTIMIZE="$RPM_OPT_FLAGS"
CFLAGS="$RPM_OPT_FLAGS" perl Makefile.PL
%{__make} %{?_smp_mflags}
%check
@@ -99,7 +83,7 @@ find ./eg -type f -exec %{__chmod} 0644 {} \;
%{__rm} -rf $RPM_BUILD_ROOT
%files -f %{name}.files
%defattr(-,root,root,-)
%doc Changes mkhctype mkpfunc README TODO eg
%defattr(0644,root,root,0755)
%doc Changes README TODO eg
%changelog