Files
perl-Scrappy/perl-Scrappy.spec

124 lines
4.3 KiB
RPMSpec
Raw Permalink Normal View History

#
# 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 https://bugs.opensuse.org/
#
%define cpan_name Scrappy
Name: perl-Scrappy
Version: 0.941.120.900
Release: 0
# 0.94112090 -> normalize -> 0.941.120.900
%define cpan_version 0.94112090
License: Artistic-1.0 OR GPL-1.0-or-later
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
Source1: cpanspec.yml
2025-08-12 18:17:00 +02:00
Source100: README.md
# PATCH-FIX-UPSTREAM https://rt.cpan.org/Public/Bug/Display.html?id=82142
Patch0: 0001-Plugins-Call-initializers-in-correct-order.patch
BuildArch: noarch
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)
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
%{perl_requires}
%description
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
one.
%prep
%autosetup -n %{cpan_name}-%{cpan_version} -p1
# MANUAL BEGIN
find . -name "*.bak" -exec %{__rm} {} \;
# MANUAL END
%build
perl Makefile.PL INSTALLDIRS=vendor
%make_build
%check
make test
%install
%perl_make_install
%perl_process_packlist
%perl_gen_filelist
%files -f %{name}.files
%doc Changes README README.mkdn
%license LICENSE
%changelog