forked from pool/perl-Web-Scraper
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:
committed by
Git OBS Bridge
parent
0a051d81a4
commit
a105aa62f9
@@ -1,3 +0,0 @@
|
||||
version https://git-lfs.github.com/spec/v1
|
||||
oid sha256:d2d4ee0c787441167784bab9f49a44b27608e25ab97fd9541c2dfee24f94063f
|
||||
size 32538
|
@@ -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
3
Web-Scraper-0.38.tar.gz
Normal file
@@ -0,0 +1,3 @@
|
||||
version https://git-lfs.github.com/spec/v1
|
||||
oid sha256:f95b6e5f8d7feebe116d05bf59a2b7cf1a51ed9d30bca80123430ec4567543bf
|
||||
size 25738
|
@@ -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
|
||||
|
||||
|
@@ -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
|
||||
# remain the property of their copyright owners, unless otherwise agreed
|
||||
@@ -15,29 +15,29 @@
|
||||
# Please submit bugfixes or comments via http://bugs.opensuse.org/
|
||||
#
|
||||
|
||||
|
||||
Name: perl-Web-Scraper
|
||||
Version: 0.34
|
||||
Release: 1
|
||||
License: GPL+ or Artistic
|
||||
Version: 0.38
|
||||
Release: 0
|
||||
%define cpan_name Web-Scraper
|
||||
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
|
||||
Url: http://search.cpan.org/dist/Web-Scraper/
|
||||
Source: http://www.cpan.org/authors/id/M/MI/MIYAGAWA/%{cpan_name}-%{version}.tar.gz
|
||||
BuildArch: noarch
|
||||
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
||||
BuildRequires: perl
|
||||
BuildRequires: perl-macros
|
||||
BuildRequires: perl(ExtUtils::MakeMaker)
|
||||
BuildRequires: perl(ExtUtils::MakeMaker) >= 6.59
|
||||
BuildRequires: perl(HTML::Entities)
|
||||
BuildRequires: perl(HTML::Selector::XPath) >= 0.03
|
||||
BuildRequires: perl(HTML::Tagset)
|
||||
BuildRequires: perl(HTML::TreeBuilder) >= 3.23
|
||||
BuildRequires: perl(HTML::TreeBuilder::XPath) >= 0.08
|
||||
BuildRequires: perl(LWP) >= 5.827
|
||||
BuildRequires: perl(Scalar::Util)
|
||||
BuildRequires: perl(Module::Build::Tiny) >= 0.039
|
||||
BuildRequires: perl(Test::Base)
|
||||
BuildRequires: perl(Test::More)
|
||||
BuildRequires: perl(Test::Requires)
|
||||
BuildRequires: perl(UNIVERSAL::require)
|
||||
BuildRequires: perl(URI)
|
||||
@@ -49,7 +49,6 @@ Requires: perl(HTML::Tagset)
|
||||
Requires: perl(HTML::TreeBuilder) >= 3.23
|
||||
Requires: perl(HTML::TreeBuilder::XPath) >= 0.08
|
||||
Requires: perl(LWP) >= 5.827
|
||||
Requires: perl(Scalar::Util)
|
||||
Requires: perl(UNIVERSAL::require)
|
||||
Requires: perl(URI)
|
||||
Requires: perl(XML::XPathEngine) >= 0.08
|
||||
@@ -59,58 +58,28 @@ Requires: perl(YAML)
|
||||
%description
|
||||
Web::Scraper is a web scraper toolkit, inspired by Ruby's equivalent
|
||||
Scrapi. It provides a DSL-ish interface for traversing HTML documents and
|
||||
returning a neatly arranged Perl data strcuture.
|
||||
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.
|
||||
returning a neatly arranged Perl data structure.
|
||||
|
||||
%package -n scraper
|
||||
Summary: Web Scraping Tool using HTML and CSS Selectors or XPath expressions
|
||||
Group: Productivity/Networking/Web/Utilities
|
||||
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.
|
||||
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.
|
||||
|
||||
%prep
|
||||
%setup -q -n "Web-Scraper-%{version}"
|
||||
%__sed -i '/^auto_install/d' Makefile.PL
|
||||
%setup -q -n %{cpan_name}-%{version}
|
||||
|
||||
%build
|
||||
%{__perl} Makefile.PL INSTALLDIRS=vendor
|
||||
%{__make} %{?_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
|
||||
%{__perl} Build.PL --installdirs=vendor
|
||||
./Build build --flags=%{?_smp_mflags}
|
||||
|
||||
%check
|
||||
%__make test
|
||||
./Build test
|
||||
|
||||
%clean
|
||||
%{?buildroot:%__rm -rf "%{buildroot}"}
|
||||
%install
|
||||
./Build install --destdir=%{buildroot} --create_packlist=0
|
||||
%perl_gen_filelist
|
||||
|
||||
%files
|
||||
%defattr(-,root,root)
|
||||
%doc Changes 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
|
||||
%files -f %{name}.files
|
||||
%defattr(-,root,root,755)
|
||||
%doc Changes LICENSE README
|
||||
|
||||
%changelog
|
||||
|
Reference in New Issue
Block a user