2015-04-20 07:06:46 +00:00
|
|
|
#
|
|
|
|
# spec file for package perl-Scrappy
|
|
|
|
#
|
2024-03-08 10:06:56 +00:00
|
|
|
# Copyright (c) 2024 SUSE LLC
|
2015-04-20 07:06:46 +00:00
|
|
|
#
|
|
|
|
# All modifications and additions to the file contributed by third parties
|
|
|
|
# remain the property of their copyright owners, unless otherwise agreed
|
|
|
|
# upon. The license for this file, and modifications and additions to the
|
|
|
|
# file, is the same license as for the pristine package itself (unless the
|
|
|
|
# license for the pristine package is not an Open Source License, in which
|
|
|
|
# case the license is the MIT License). An "Open Source License" is a
|
|
|
|
# license that conforms to the Open Source Definition (Version 1.9)
|
|
|
|
# published by the Open Source Initiative.
|
|
|
|
|
2018-10-07 19:23:51 +00:00
|
|
|
# Please submit bugfixes or comments via https://bugs.opensuse.org/
|
2015-04-20 07:06:46 +00:00
|
|
|
#
|
|
|
|
|
2011-04-22 21:09:30 +00:00
|
|
|
|
2024-08-25 18:22:06 +00:00
|
|
|
%define cpan_name Scrappy
|
2011-04-22 21:09:30 +00:00
|
|
|
Name: perl-Scrappy
|
2024-08-25 18:22:06 +00:00
|
|
|
Version: 0.941.120.900
|
2011-04-22 21:09:30 +00:00
|
|
|
Release: 0
|
2024-08-25 18:22:06 +00:00
|
|
|
# 0.94112090 -> normalize -> 0.941.120.900
|
|
|
|
%define cpan_version 0.94112090
|
2018-10-07 19:23:51 +00:00
|
|
|
License: Artistic-1.0 OR GPL-1.0-or-later
|
2024-08-25 18:22:06 +00:00
|
|
|
Summary: The All Powerful Web Spidering, Scraping, Creeping Crawling Framework
|
|
|
|
URL: https://metacpan.org/release/%{cpan_name}
|
|
|
|
Source0: https://cpan.metacpan.org/authors/id/A/AW/AWNCORP/%{cpan_name}-%{cpan_version}.tar.gz
|
2018-10-07 19:23:51 +00:00
|
|
|
Source1: cpanspec.yml
|
2025-08-12 18:17:00 +02:00
|
|
|
Source100: README.md
|
2024-08-25 18:25:20 +00:00
|
|
|
# PATCH-FIX-UPSTREAM https://rt.cpan.org/Public/Bug/Display.html?id=82142
|
|
|
|
Patch0: 0001-Plugins-Call-initializers-in-correct-order.patch
|
2018-10-07 19:23:51 +00:00
|
|
|
BuildArch: noarch
|
|
|
|
BuildRequires: perl
|
2015-04-20 07:06:46 +00:00
|
|
|
BuildRequires: perl-macros
|
|
|
|
BuildRequires: perl(Array::Unique)
|
2011-04-22 21:09:30 +00:00
|
|
|
BuildRequires: perl(DateTime)
|
2015-04-20 07:06:46 +00:00
|
|
|
BuildRequires: perl(DateTime::Format::SQLite)
|
|
|
|
BuildRequires: perl(File::Find::Rule)
|
2011-04-22 21:09:30 +00:00
|
|
|
BuildRequires: perl(File::ShareDir)
|
2015-04-20 07:06:46 +00:00
|
|
|
BuildRequires: perl(File::ShareDir::Install) >= 0.03
|
2011-04-22 21:09:30 +00:00
|
|
|
BuildRequires: perl(File::Slurp)
|
2015-04-20 07:06:46 +00:00
|
|
|
BuildRequires: perl(File::Util)
|
|
|
|
BuildRequires: perl(HTML::TreeBuilder)
|
|
|
|
BuildRequires: perl(Moose)
|
|
|
|
BuildRequires: perl(Parallel::ForkManager)
|
|
|
|
BuildRequires: perl(String::TT)
|
|
|
|
BuildRequires: perl(Template)
|
2011-04-22 21:09:30 +00:00
|
|
|
BuildRequires: perl(Try::Tiny)
|
|
|
|
BuildRequires: perl(URI)
|
|
|
|
BuildRequires: perl(WWW::Mechanize)
|
2015-04-20 07:06:46 +00:00
|
|
|
BuildRequires: perl(Web::Scraper)
|
2011-04-22 21:09:30 +00:00
|
|
|
BuildRequires: perl(YAML::Syck)
|
2015-04-20 07:06:46 +00:00
|
|
|
Requires: perl(Array::Unique)
|
2011-04-22 21:09:30 +00:00
|
|
|
Requires: perl(DateTime)
|
2015-04-20 07:06:46 +00:00
|
|
|
Requires: perl(DateTime::Format::SQLite)
|
|
|
|
Requires: perl(File::Find::Rule)
|
2011-04-22 21:09:30 +00:00
|
|
|
Requires: perl(File::ShareDir)
|
|
|
|
Requires: perl(File::Slurp)
|
2015-04-20 07:06:46 +00:00
|
|
|
Requires: perl(File::Util)
|
|
|
|
Requires: perl(HTML::TreeBuilder)
|
|
|
|
Requires: perl(Moose)
|
|
|
|
Requires: perl(Parallel::ForkManager)
|
|
|
|
Requires: perl(String::TT)
|
|
|
|
Requires: perl(Template)
|
2011-04-22 21:09:30 +00:00
|
|
|
Requires: perl(Try::Tiny)
|
|
|
|
Requires: perl(URI)
|
|
|
|
Requires: perl(WWW::Mechanize)
|
2015-04-20 07:06:46 +00:00
|
|
|
Requires: perl(Web::Scraper)
|
2011-04-22 21:09:30 +00:00
|
|
|
Requires: perl(YAML::Syck)
|
2024-08-25 18:22:06 +00:00
|
|
|
Provides: perl(Scrappy) = %{version}
|
|
|
|
Provides: perl(Scrappy::Action) = %{version}
|
|
|
|
Provides: perl(Scrappy::Action::Download) = %{version}
|
|
|
|
Provides: perl(Scrappy::Action::Generate) = %{version}
|
|
|
|
Provides: perl(Scrappy::Action::Help) = %{version}
|
|
|
|
Provides: perl(Scrappy::Logger) = %{version}
|
|
|
|
Provides: perl(Scrappy::Plugin) = %{version}
|
|
|
|
Provides: perl(Scrappy::Plugin::RandomProxy) = %{version}
|
|
|
|
Provides: perl(Scrappy::Project) = %{version}
|
|
|
|
Provides: perl(Scrappy::Project::Document) = %{version}
|
|
|
|
Provides: perl(Scrappy::Queue) = %{version}
|
|
|
|
Provides: perl(Scrappy::Scraper) = %{version}
|
|
|
|
Provides: perl(Scrappy::Scraper::Control) = %{version}
|
|
|
|
Provides: perl(Scrappy::Scraper::Parser) = %{version}
|
|
|
|
Provides: perl(Scrappy::Scraper::UserAgent) = %{version}
|
|
|
|
Provides: perl(Scrappy::Session) = %{version}
|
|
|
|
%undefine __perllib_provides
|
2018-10-07 19:23:51 +00:00
|
|
|
%{perl_requires}
|
2011-04-22 21:09:30 +00:00
|
|
|
|
|
|
|
%description
|
|
|
|
Scrappy is an easy (and hopefully fun) way of scraping, spidering, and/or
|
2018-10-07 19:23:51 +00:00
|
|
|
harvesting information from web pages, web services, and more. Scrappy is a
|
|
|
|
feature rich, flexible, intelligent web automation tool.
|
2011-04-22 21:09:30 +00:00
|
|
|
|
|
|
|
Scrappy (pronounced Scrap+Pee) == 'Scraper Happy' or 'Happy Scraper'; If
|
2018-10-07 19:23:51 +00:00
|
|
|
you like you may call it Scrapy (pronounced Scrape+Pee) although Python has
|
|
|
|
a web scraping framework by that name and this module is not a port of that
|
|
|
|
one.
|
2011-04-25 08:25:00 +00:00
|
|
|
|
2011-04-22 21:09:30 +00:00
|
|
|
%prep
|
2024-08-25 18:25:20 +00:00
|
|
|
%autosetup -n %{cpan_name}-%{cpan_version} -p1
|
2011-04-22 21:09:30 +00:00
|
|
|
|
2024-08-25 18:44:22 +00:00
|
|
|
# MANUAL BEGIN
|
|
|
|
find . -name "*.bak" -exec %{__rm} {} \;
|
|
|
|
# MANUAL END
|
|
|
|
|
2011-04-22 21:09:30 +00:00
|
|
|
%build
|
2024-08-25 18:22:06 +00:00
|
|
|
perl Makefile.PL INSTALLDIRS=vendor
|
|
|
|
%make_build
|
2018-10-07 19:23:51 +00:00
|
|
|
|
|
|
|
%check
|
2024-08-25 18:22:06 +00:00
|
|
|
make test
|
2011-04-22 21:09:30 +00:00
|
|
|
|
|
|
|
%install
|
|
|
|
%perl_make_install
|
|
|
|
%perl_process_packlist
|
2018-10-07 19:23:51 +00:00
|
|
|
%perl_gen_filelist
|
2011-04-22 21:09:30 +00:00
|
|
|
|
2018-10-07 19:23:51 +00:00
|
|
|
%files -f %{name}.files
|
|
|
|
%doc Changes README README.mkdn
|
|
|
|
%license LICENSE
|
2011-04-25 08:25:00 +00:00
|
|
|
|
2015-04-20 07:06:46 +00:00
|
|
|
%changelog
|