Accepting request 297374 from devel:languages:perl:autoupdate

automatic update

OBS-URL: https://build.opensuse.org/request/show/297374
OBS-URL: https://build.opensuse.org/package/show/devel:languages:perl/perl-HTML-TagParser?expand=0&rev=10
This commit is contained in:
Stephan Kulow
2015-04-17 04:48:54 +00:00
committed by Git OBS Bridge
parent 9a75a70943
commit cdf3ee917b
5 changed files with 85 additions and 51 deletions

View File

@@ -1,7 +1,7 @@
#
# spec file for package perl-HTML-TagParser
#
# Copyright (c) 2011 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
# remain the property of their copyright owners, unless otherwise agreed
@@ -15,68 +15,50 @@
# 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
AutoReqProv: on
Version: 0.20
Release: 0
%define cpan_name HTML-TagParser
Summary: Yet another HTML document parser with DOM-like methods
Version: 0.16.1
Release: 1
Source: HTML-TagParser-%{oversion}.tar.gz
Patch: HTML-TagParser-%{oversion}-subtree.diff
License: Artistic-1.0 or GPL-1.0+
Group: Development/Libraries/Perl
Url: http://search.cpan.org/dist/HTML-TagParser/
Source0: http://www.cpan.org/authors/id/K/KA/KAWASAKI/%{cpan_name}-%{version}.tar.gz
Source1: cpanspec.yml
BuildArch: noarch
BuildRoot: %{_tmppath}/%{name}-%{version}-build
%{perl_requires}
BuildRequires: perl
BuildRequires: perl-macros
BuildRequires: perl(Encode) >= 2.13
Requires: perl(Encode) >= 2.13
%{perl_requires}
%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>
HTML::TagParser is a pure Perl module which parses HTML/XHTML files. This
module provides some methods like DOM interface. This module is not strict
about XHTML format because many of HTML pages are not strict. You know,
many pages use <br> elemtents instead of <br/> and have <p> elements which
are not closed.
%prep
%setup -n HTML-TagParser-%{oversion}
%patch -p1
%setup -q -n %{cpan_name}-%{version}
find . -type f -print0 | xargs -0 chmod 644
%build
perl Makefile.PL
make
make test
%{__perl} Makefile.PL INSTALLDIRS=vendor
%{__make} %{?_smp_mflags}
%check
%{__make} test
%install
chmod a-x README
make DESTDIR=$RPM_BUILD_ROOT install_vendor
%if 0%{?suse_version}
%perl_make_install
%perl_process_packlist
%else
rm -f $RPM_BUILD_ROOT/%{perl_archlib}/perllocal.pod
%endif
%perl_gen_filelist
%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
%files -f %{name}.files
%defattr(-,root,root,755)
%doc Changes make-dist.sh README
%changelog