cpanspec, noarch pkg
OBS-URL: https://build.opensuse.org/package/show/devel:languages:perl/perl-HTML-Tree?expand=0&rev=13
This commit is contained in:
parent
52c6586430
commit
e40f219647
@ -1,3 +1,10 @@
|
|||||||
|
-------------------------------------------------------------------
|
||||||
|
Fri Feb 25 13:06:03 UTC 2011 - chris@computersalat.de
|
||||||
|
|
||||||
|
- recreated by cpanspec 1.78.03
|
||||||
|
o fix deps
|
||||||
|
- noarch pkg
|
||||||
|
|
||||||
-------------------------------------------------------------------
|
-------------------------------------------------------------------
|
||||||
Thu Jan 20 10:49:19 UTC 2011 - vcizek@novell.com
|
Thu Jan 20 10:49:19 UTC 2011 - vcizek@novell.com
|
||||||
|
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
#
|
#
|
||||||
# spec file for package perl-HTML-Tree (Version 4.0 )
|
# spec file for package perl-HTML-Tree
|
||||||
#
|
#
|
||||||
# Copyright (c) 2010 SUSE LINUX Products GmbH, Nuernberg, Germany.
|
# Copyright (c) 2010 SUSE LINUX Products GmbH, Nuernberg, Germany.
|
||||||
#
|
#
|
||||||
@ -15,60 +15,98 @@
|
|||||||
# Please submit bugfixes or comments via http://bugs.opensuse.org/
|
# Please submit bugfixes or comments via http://bugs.opensuse.org/
|
||||||
#
|
#
|
||||||
|
|
||||||
# norootforbuild
|
%bcond_with opt
|
||||||
|
|
||||||
|
|
||||||
Name: perl-HTML-Tree
|
Name: perl-HTML-Tree
|
||||||
BuildRequires: perl-HTML-Parser
|
|
||||||
BuildRequires: perl-macros
|
|
||||||
License: Artistic ; GPLv2+ ; Other uncritical OpenSource License
|
|
||||||
Group: Development/Libraries/Perl
|
|
||||||
Requires: perl-HTML-Parser perl-HTML-Tagset
|
|
||||||
AutoReqProv: on
|
|
||||||
Summary: Modules for representing, creating, and extracting information from HTML syntax trees
|
|
||||||
Version: 4.1
|
Version: 4.1
|
||||||
Release: 2
|
Release: 2
|
||||||
Source: http://search.cpan.org/CPAN/authors/id/P/PE/PETEK/HTML-Tree-%{version}.tar.bz2
|
License: GPL+ or Artistic
|
||||||
Url: http://search.cpan.org/CPAN/authors/id/P/PE/PETEK/
|
%define cpan_name HTML-Tree
|
||||||
|
Summary: Build and scan parse-trees of HTML
|
||||||
|
Url: http://search.cpan.org/dist/HTML-Tree/
|
||||||
|
Group: Development/Libraries/Perl
|
||||||
|
#Source: http://www.cpan.org/authors/id/J/JF/JFEARN/HTML-Tree-4.1.tar.gz
|
||||||
|
Source: %{cpan_name}-%{version}.tar.bz2
|
||||||
|
BuildArch: noarch
|
||||||
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
||||||
|
BuildRequires: perl
|
||||||
|
BuildRequires: perl(Module::Build)
|
||||||
|
BuildRequires: perl(Test::Exception)
|
||||||
|
BuildRequires: perl(Test::More)
|
||||||
|
BuildRequires: perl-macros
|
||||||
|
%if 0%{?with opt}
|
||||||
|
BuildRequires: perl(Test::Perl::Critic)
|
||||||
|
BuildRequires: perl(Test::Pod) >= 1.14
|
||||||
|
BuildRequires: perl(Test::Pod::Coverage) >= 1.04
|
||||||
|
%endif
|
||||||
|
BuildRequires: perl(HTML::Parser) >= 3.46
|
||||||
|
BuildRequires: perl(HTML::Tagset) >= 3.02
|
||||||
|
Requires: perl(HTML::Parser) >= 3.46
|
||||||
|
Requires: perl(HTML::Tagset) >= 3.02
|
||||||
%{perl_requires}
|
%{perl_requires}
|
||||||
|
|
||||||
%description
|
%description
|
||||||
This distribution contains a suite of modules for representing,
|
HTML-Tree is a suite of Perl modules for making parse trees out of HTML
|
||||||
creating, and extracting information from HTML syntax trees; there is
|
source. It consists of mainly two modules, whose documentation you should
|
||||||
also relevent documentation. These modules used to be part of the
|
refer to: HTML::TreeBuilder and HTML::Element.
|
||||||
libwww-perl distribution, but are now unbundled in order to facilitate
|
|
||||||
a separate development track.
|
|
||||||
|
|
||||||
|
HTML::TreeBuilder is the module that builds the parse trees. (It uses
|
||||||
|
HTML::Parser to do the work of breaking the HTML up into tokens.)
|
||||||
|
|
||||||
|
The tree that TreeBuilder builds for you is made up of objects of the class
|
||||||
|
HTML::Element.
|
||||||
|
|
||||||
Authors:
|
If you find that you do not properly understand the documentation for
|
||||||
--------
|
HTML::TreeBuilder and HTML::Element, it may be because you are unfamiliar
|
||||||
Sean M. Burke <sburke@cpan.org>
|
with tree-shaped data structures, or with object-oriented modules in
|
||||||
|
general. Sean Burke has written some articles for _The Perl Journal_
|
||||||
|
('www.tpj.com') that seek to provide that background. The full text of
|
||||||
|
those articles is contained in this distribution, as:
|
||||||
|
|
||||||
|
* HTML::Tree::AboutObjects
|
||||||
|
|
||||||
|
"User's View of Object-Oriented Modules" from TPJ17.
|
||||||
|
|
||||||
|
* HTML::Tree::AboutTrees
|
||||||
|
|
||||||
|
"Trees" from TPJ18
|
||||||
|
|
||||||
|
* HTML::Tree::Scanning
|
||||||
|
|
||||||
|
"Scanning HTML" from TPJ19
|
||||||
|
|
||||||
|
Readers already familiar with object-oriented modules and tree-shaped data
|
||||||
|
structures should read just the last article. Readers without that
|
||||||
|
background should read the first, then the second, and then the third.
|
||||||
|
|
||||||
|
new
|
||||||
|
Redirects to HTML::TreeBuilder::new
|
||||||
|
|
||||||
|
new_from_file
|
||||||
|
Redirects to HTML::TreeBuilder::new_from_file
|
||||||
|
|
||||||
|
new_from_content
|
||||||
|
Redirects to HTML::TreeBuilder::new_from_content
|
||||||
|
|
||||||
%prep
|
%prep
|
||||||
%setup -n HTML-Tree-%{version} -q
|
%setup -q -n %{cpan_name}-%{version}
|
||||||
|
|
||||||
%build
|
%build
|
||||||
perl Makefile.PL
|
%{__perl} Build.PL installdirs=vendor
|
||||||
make %{?_smp_mflags}
|
./Build build flags=%{?_smp_mflags}
|
||||||
|
|
||||||
%check
|
%check
|
||||||
make test
|
./Build test
|
||||||
|
|
||||||
%install
|
%install
|
||||||
make DESTDIR=$RPM_BUILD_ROOT install_vendor
|
./Build install destdir=%{buildroot} create_packlist=0
|
||||||
%perl_process_packlist
|
%perl_gen_filelist
|
||||||
|
|
||||||
%clean
|
%clean
|
||||||
[ "$RPM_BUILD_ROOT" != "/" ] && [ -d $RPM_BUILD_ROOT ] && rm -rf $RPM_BUILD_ROOT
|
%{__rm} -rf %{buildroot}
|
||||||
|
|
||||||
%files
|
%files -f %{name}.files
|
||||||
%defattr(-,root,root)
|
%defattr(-,root,root)
|
||||||
%{perl_vendorlib}/HTML/*
|
%doc Changes README TODO
|
||||||
%{perl_vendorarch}/auto/*
|
|
||||||
%{_bindir}/htmltree
|
|
||||||
%doc %{_mandir}/man?/*
|
|
||||||
%doc README Changes
|
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
|
Loading…
Reference in New Issue
Block a user