File perl-Scrappy.spec of Package perl-Scrappy

# spec file for package perl-Scrappy
# Copyright (c) 2024 SUSE LLC
# 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.

# Please submit bugfixes or comments via

Name:           perl-Scrappy
Version:        0.94112090
Release:        0
%define cpan_name Scrappy
Summary:        The All Powerful Web Spidering, Scraping, Creeping Crawling Framework
License:        Artistic-1.0 OR GPL-1.0-or-later
Group:          Development/Libraries/Perl
Source1:        cpanspec.yml
Patch1:         0001-Plugins-Call-initializers-in-correct-order.patch
BuildArch:      noarch
BuildRoot:      %{_tmppath}/%{name}-%{version}-build
BuildRequires:  perl
BuildRequires:  perl-macros
BuildRequires:  perl(Array::Unique)
BuildRequires:  perl(DateTime)
BuildRequires:  perl(DateTime::Format::SQLite)
BuildRequires:  perl(File::Find::Rule)
BuildRequires:  perl(File::ShareDir)
BuildRequires:  perl(File::ShareDir::Install) >= 0.03
BuildRequires:  perl(File::Slurp)
BuildRequires:  perl(File::Util)
BuildRequires:  perl(HTML::TreeBuilder)
BuildRequires:  perl(Moose)
BuildRequires:  perl(Parallel::ForkManager)
BuildRequires:  perl(String::TT)
BuildRequires:  perl(Template)
BuildRequires:  perl(Try::Tiny)
BuildRequires:  perl(URI)
BuildRequires:  perl(WWW::Mechanize)
BuildRequires:  perl(Web::Scraper)
BuildRequires:  perl(YAML::Syck)
Requires:       perl(Array::Unique)
Requires:       perl(DateTime)
Requires:       perl(DateTime::Format::SQLite)
Requires:       perl(File::Find::Rule)
Requires:       perl(File::ShareDir)
Requires:       perl(File::Slurp)
Requires:       perl(File::Util)
Requires:       perl(HTML::TreeBuilder)
Requires:       perl(Moose)
Requires:       perl(Parallel::ForkManager)
Requires:       perl(String::TT)
Requires:       perl(Template)
Requires:       perl(Try::Tiny)
Requires:       perl(URI)
Requires:       perl(WWW::Mechanize)
Requires:       perl(Web::Scraper)
Requires:       perl(YAML::Syck)

Scrappy is an easy (and hopefully fun) way of scraping, spidering, and/or
harvesting information from web pages, web services, and more. Scrappy is a
feature rich, flexible, intelligent web automation tool.

Scrappy (pronounced Scrap+Pee) == 'Scraper Happy' or 'Happy Scraper'; If
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

%autosetup  -n %{cpan_name}-%{version} -p1

find . -name "*.bak" -exec %{__rm} {} \;

%{__perl} Makefile.PL INSTALLDIRS=vendor
%{__make} %{?_smp_mflags}

%{__make} test


%files -f %{name}.files
%doc Changes README README.mkdn
%license LICENSE

openSUSE Build Service is sponsored by