8
0

Accepting request 296840 from devel:languages:perl:autoupdate

- updated to 0.38
   see /usr/share/doc/packages/perl-Web-Scraper/Changes
  0.38  2014-10-19 17:25:53 PDT
          - Improved documentation #8 (vti)
          - Add regexp filter #10 (creaktive)
          - Fix documentation error #16
  
  0.37  Fri Oct 19 15:09:17 PDT 2012
          - Repack with the latest Module::Install
  
  0.36  Sat Nov 19 12:12:54 PST 2011
          - Support HTML5 tags by not ignoring unknonw tags (leedo)
  
  0.35  Mon Sep 26 18:40:06 PDT 2011
          - Added support for comments() XPath #3 (Perlover)
- drop scraper subpackage as the binary is no longer installed

OBS-URL: https://build.opensuse.org/request/show/296840
OBS-URL: https://build.opensuse.org/package/show/devel:languages:perl/perl-Web-Scraper?expand=0&rev=4
This commit is contained in:
Stephan Kulow
2015-04-15 14:45:46 +00:00
committed by Git OBS Bridge
parent 0a051d81a4
commit a105aa62f9
5 changed files with 49 additions and 61 deletions

View File

@@ -1,3 +0,0 @@
version https://git-lfs.github.com/spec/v1
oid sha256:d2d4ee0c787441167784bab9f49a44b27608e25ab97fd9541c2dfee24f94063f
size 32538

View File

@@ -1,3 +0,0 @@
version https://git-lfs.github.com/spec/v1
oid sha256:cca2ea04ac3b315b40fe2e591cfb060d85961012493074563b639cde7d0c2b69
size 33108

3
Web-Scraper-0.38.tar.gz Normal file
View File

@@ -0,0 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:f95b6e5f8d7feebe116d05bf59a2b7cf1a51ed9d30bca80123430ec4567543bf
size 25738

View File

@@ -1,3 +1,25 @@
-------------------------------------------------------------------
Wed Apr 15 14:10:28 UTC 2015 - coolo@suse.com
- updated to 0.38
see /usr/share/doc/packages/perl-Web-Scraper/Changes
0.38 2014-10-19 17:25:53 PDT
- Improved documentation #8 (vti)
- Add regexp filter #10 (creaktive)
- Fix documentation error #16
0.37 Fri Oct 19 15:09:17 PDT 2012
- Repack with the latest Module::Install
0.36 Sat Nov 19 12:12:54 PST 2011
- Support HTML5 tags by not ignoring unknonw tags (leedo)
0.35 Mon Sep 26 18:40:06 PDT 2011
- Added support for comments() XPath #3 (Perlover)
- drop scraper subpackage as the binary is no longer installed
------------------------------------------------------------------- -------------------------------------------------------------------
Fri Apr 22 15:10:21 UTC 2011 - coolo@opensuse.org Fri Apr 22 15:10:21 UTC 2011 - coolo@opensuse.org

View File

@@ -1,7 +1,7 @@
# #
# spec file for package perl-Web-Scraper (Version 0.34) # spec file for package perl-Web-Scraper
# #
# Copyright (c) 2010 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
@@ -15,29 +15,29 @@
# Please submit bugfixes or comments via http://bugs.opensuse.org/ # Please submit bugfixes or comments via http://bugs.opensuse.org/
# #
Name: perl-Web-Scraper Name: perl-Web-Scraper
Version: 0.34 Version: 0.38
Release: 1 Release: 0
License: GPL+ or Artistic
%define cpan_name Web-Scraper %define cpan_name Web-Scraper
Summary: Web Scraping Toolkit using HTML and CSS Selectors or XPath expressions Summary: Web Scraping Toolkit using HTML and CSS Selectors or XPath expressions
Url: http://search.cpan.org/dist/Web-Scraper/ License: Artistic-1.0 or GPL-1.0+
Group: Development/Libraries/Perl Group: Development/Libraries/Perl
Url: http://search.cpan.org/dist/Web-Scraper/
Source: http://www.cpan.org/authors/id/M/MI/MIYAGAWA/%{cpan_name}-%{version}.tar.gz Source: http://www.cpan.org/authors/id/M/MI/MIYAGAWA/%{cpan_name}-%{version}.tar.gz
BuildArch: noarch BuildArch: noarch
BuildRoot: %{_tmppath}/%{name}-%{version}-build BuildRoot: %{_tmppath}/%{name}-%{version}-build
BuildRequires: perl BuildRequires: perl
BuildRequires: perl-macros BuildRequires: perl-macros
BuildRequires: perl(ExtUtils::MakeMaker) BuildRequires: perl(ExtUtils::MakeMaker) >= 6.59
BuildRequires: perl(HTML::Entities) BuildRequires: perl(HTML::Entities)
BuildRequires: perl(HTML::Selector::XPath) >= 0.03 BuildRequires: perl(HTML::Selector::XPath) >= 0.03
BuildRequires: perl(HTML::Tagset) BuildRequires: perl(HTML::Tagset)
BuildRequires: perl(HTML::TreeBuilder) >= 3.23 BuildRequires: perl(HTML::TreeBuilder) >= 3.23
BuildRequires: perl(HTML::TreeBuilder::XPath) >= 0.08 BuildRequires: perl(HTML::TreeBuilder::XPath) >= 0.08
BuildRequires: perl(LWP) >= 5.827 BuildRequires: perl(LWP) >= 5.827
BuildRequires: perl(Scalar::Util) BuildRequires: perl(Module::Build::Tiny) >= 0.039
BuildRequires: perl(Test::Base) BuildRequires: perl(Test::Base)
BuildRequires: perl(Test::More)
BuildRequires: perl(Test::Requires) BuildRequires: perl(Test::Requires)
BuildRequires: perl(UNIVERSAL::require) BuildRequires: perl(UNIVERSAL::require)
BuildRequires: perl(URI) BuildRequires: perl(URI)
@@ -49,7 +49,6 @@ Requires: perl(HTML::Tagset)
Requires: perl(HTML::TreeBuilder) >= 3.23 Requires: perl(HTML::TreeBuilder) >= 3.23
Requires: perl(HTML::TreeBuilder::XPath) >= 0.08 Requires: perl(HTML::TreeBuilder::XPath) >= 0.08
Requires: perl(LWP) >= 5.827 Requires: perl(LWP) >= 5.827
Requires: perl(Scalar::Util)
Requires: perl(UNIVERSAL::require) Requires: perl(UNIVERSAL::require)
Requires: perl(URI) Requires: perl(URI)
Requires: perl(XML::XPathEngine) >= 0.08 Requires: perl(XML::XPathEngine) >= 0.08
@@ -59,58 +58,28 @@ Requires: perl(YAML)
%description %description
Web::Scraper is a web scraper toolkit, inspired by Ruby's equivalent Web::Scraper is a web scraper toolkit, inspired by Ruby's equivalent
Scrapi. It provides a DSL-ish interface for traversing HTML documents and Scrapi. It provides a DSL-ish interface for traversing HTML documents and
returning a neatly arranged Perl data strcuture. returning a neatly arranged Perl data structure.
The *scraper* and *process* blocks provide a method to define what
segments of a document to extract. It understands HTML and CSS Selectors
as well as XPath expressions.
%package -n scraper The _scraper_ and _process_ blocks provide a method to define what segments
Summary: Web Scraping Tool using HTML and CSS Selectors or XPath expressions of a document to extract. It understands HTML and CSS Selectors as well as
Group: Productivity/Networking/Web/Utilities XPath expressions.
Requires: %{name} = %{version}
%if 0%{?suse_version} >= 1120
BuildArch: noarch
%endif
%description -n scraper
Web::Scraper is a web scraper toolkit, inspired by Ruby's equivalent
Scrapi. It provides a command-line tool for traversing HTML documents and
returning a neatly arranged Perl data strcuture.
%prep %prep
%setup -q -n "Web-Scraper-%{version}" %setup -q -n %{cpan_name}-%{version}
%__sed -i '/^auto_install/d' Makefile.PL
%build %build
%{__perl} Makefile.PL INSTALLDIRS=vendor %{__perl} Build.PL --installdirs=vendor
%{__make} %{?_smp_mflags} ./Build build --flags=%{?_smp_mflags}
%install
%perl_make_install
%perl_process_packlist
mkdir .rpmdoc
for f in Changes README; do
%__ln_s -f "../%{name}/$f" .rpmdoc/"$f"
done
%check %check
%__make test ./Build test
%clean %install
%{?buildroot:%__rm -rf "%{buildroot}"} ./Build install --destdir=%{buildroot} --create_packlist=0
%perl_gen_filelist
%files %files -f %{name}.files
%defattr(-,root,root) %defattr(-,root,root,755)
%doc Changes README %doc Changes LICENSE README
%dir %{perl_vendorlib}/Web
%{perl_vendorlib}/Web/Scraper.pm
%{perl_vendorlib}/Web/Scraper
%doc %{perl_man3dir}/Web::Scraper.%{perl_man3ext}%{ext_man}
%doc %{perl_man3dir}/Web::Scraper::*.%{perl_man3ext}%{ext_man}
%files -n scraper
%defattr(-,root,root)
%doc .rpmdoc/*
%{_bindir}/scraper
%changelog