Accepting request 295773 from devel:languages:perl

- regnererate spec file to be in line with current template

OBS-URL: https://build.opensuse.org/request/show/295773
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/perl-HTML-Parser?expand=0&rev=32
This commit is contained in:
Dominique Leuenberger 2015-04-21 08:50:30 +00:00 committed by Git OBS Bridge
commit 6829b8692e
2 changed files with 28 additions and 40 deletions

View File

@ -1,3 +1,8 @@
-------------------------------------------------------------------
Mon Apr 13 17:15:23 UTC 2015 - coolo@suse.com
- regnererate spec file to be in line with current template
------------------------------------------------------------------- -------------------------------------------------------------------
Tue Oct 15 07:30:00 UTC 2013 - nine@detonation.org Tue Oct 15 07:30:00 UTC 2013 - nine@detonation.org

View File

@ -1,7 +1,7 @@
# #
# spec file for package perl-HTML-Parser # spec file for package perl-HTML-Parser
# #
# Copyright (c) 2013 SUSE LINUX Products GmbH, Nuernberg, Germany. # Copyright (c) 2015 SUSE LINUX GmbH, Nuernberg, Germany.
# #
# All modifications and additions to the file contributed by third parties # All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed # remain the property of their copyright owners, unless otherwise agreed
@ -16,78 +16,61 @@
# #
%bcond_with opt
Name: perl-HTML-Parser Name: perl-HTML-Parser
Version: 3.71 Version: 3.71
Release: 0 Release: 0
%define cpan_name HTML-Parser %define cpan_name HTML-Parser
Summary: HTML parser class Summary: HTML parser class
License: GPL-1.0+ or Artistic-1.0 License: Artistic-1.0 or GPL-1.0+
Group: Development/Libraries/Perl Group: Development/Libraries/Perl
Url: http://search.cpan.org/dist/HTML-Parser/ Url: http://search.cpan.org/dist/HTML-Parser/
Source: http://www.cpan.org/modules/by-module/HTML/HTML-Parser-%{version}.tar.gz Source: http://www.cpan.org/authors/id/G/GA/GAAS/%{cpan_name}-%{version}.tar.gz
BuildRoot: %{_tmppath}/%{name}-%{version}-build
BuildRequires: perl BuildRequires: perl
BuildRequires: perl-macros BuildRequires: perl-macros
BuildRoot: %{_tmppath}/%{name}-%{version}-build
%{perl_requires}
%if %{with opt}
BuildRequires: perl(HTTP::Headers)
BuildRequires: perl(Test::Pod) >= 1.00
%endif
BuildRequires: perl(HTML::Tagset) >= 3 BuildRequires: perl(HTML::Tagset) >= 3
BuildRequires: perl(Test::More)
BuildRequires: perl(XSLoader)
#
Requires: perl(HTML::Tagset) >= 3 Requires: perl(HTML::Tagset) >= 3
Requires: perl(XSLoader) Recommends: perl(HTTP::Headers)
%if 0%{?suse_version} > 1010 %{perl_requires}
Suggests: perl(HTTP::Headers)
%endif
%description %description
Objects of the HTML::Parser class will recognize markup and separate it Objects of the 'HTML::Parser' class will recognize markup and separate it
from plain text (alias data content) in HTML documents. As different from plain text (alias data content) in HTML documents. As different kinds
kinds of markup and text are recognized, the corresponding event handlers of markup and text are recognized, the corresponding event handlers are
are invoked. invoked.
HTML::Parser is not a generic SGML parser. We have tried to make it able to 'HTML::Parser' is not a generic SGML parser. We have tried to make it able
deal with the HTML that is actually "out there", and it normally parses as to deal with the HTML that is actually "out there", and it normally parses
closely as possible to the way the popular web browsers do it instead of 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 strictly following one of the many HTML specifications from W3C. Where
there is disagreement, there is often an option that you can enable to there is disagreement, there is often an option that you can enable to get
get the official behaviour. the official behaviour.
The document to be parsed may be supplied in arbitrary chunks. This makes 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. 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 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 want to use 'HTML::PullParser'. This is an 'HTML::Parser' subclass that
a more conventional program structure. allows a more conventional program structure.
%prep %prep
%setup -q -n %{cpan_name}-%{version} %setup -q -n %{cpan_name}-%{version}
# rpmlint: spurious-executable-perm find . -type f -print0 | xargs -0 chmod 644
find ./eg -type f -exec chmod 0644 {} \;
chmod 0644 mkpfunc mkhctype
%build %build
perl Makefile.PL INSTALLDIRS=vendor OPTIMIZE="%{optflags}" %{__perl} Makefile.PL INSTALLDIRS=vendor OPTIMIZE="%{optflags}"
make %{?_smp_mflags} %{__make} %{?_smp_mflags}
%check %check
make test %{__make} test
%install %install
%perl_make_install %perl_make_install
%perl_process_packlist %perl_process_packlist
%perl_gen_filelist %perl_gen_filelist
%clean
rm -rf %{buildroot}
%files -f %{name}.files %files -f %{name}.files
%defattr(-,root,root,-) %defattr(-,root,root,755)
%doc Changes mkhctype mkpfunc README TODO eg %doc Changes mkhctype mkpfunc README TODO
%changelog %changelog