# # spec file for package perl-Perlanet # # Copyright (c) 2023 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 Perlanet Name: perl-Perlanet Version: 3.0.0 Release: 0 License: Artistic-1.0 OR GPL-1.0-or-later Summary: Program for creating programs that aggregate web feeds (both URL: https://metacpan.org/release/%{cpan_name} Source0: https://cpan.metacpan.org/authors/id/D/DA/DAVECROSS/%{cpan_name}-v%{version}.tar.gz Source1: cpanspec.yml Source100: README.md BuildArch: noarch BuildRequires: perl BuildRequires: perl-macros BuildRequires: perl(Alien::Tidyp) BuildRequires: perl(DateTime) BuildRequires: perl(DateTime::Duration) BuildRequires: perl(DateTime::Format::Strptime) BuildRequires: perl(HTML::Scrubber) BuildRequires: perl(HTML::Tidy) BuildRequires: perl(Module::Build) >= 0.420000 BuildRequires: perl(Moose) BuildRequires: perl(MooseX::ConfigFromFile) BuildRequires: perl(MooseX::Traits) BuildRequires: perl(Template) BuildRequires: perl(Test::Warnings) BuildRequires: perl(Try::Tiny) BuildRequires: perl(URI::Fetch) BuildRequires: perl(XML::Feed) >= 0.22 BuildRequires: perl(XML::OPML::SimpleGen) BuildRequires: perl(YAML) BuildRequires: perl(namespace::autoclean) Requires: perl(DateTime) Requires: perl(DateTime::Duration) Requires: perl(DateTime::Format::Strptime) Requires: perl(HTML::Scrubber) Requires: perl(HTML::Tidy) Requires: perl(Moose) Requires: perl(MooseX::ConfigFromFile) Requires: perl(MooseX::Traits) Requires: perl(Template) Requires: perl(Try::Tiny) Requires: perl(URI::Fetch) Requires: perl(XML::Feed) >= 0.22 Requires: perl(YAML) Requires: perl(namespace::autoclean) Recommends: perl(CHI) Recommends: perl(Compress::Zlib) Recommends: perl(MooseX::ConfigFromFile) Recommends: perl(XML::OPML::SimpleGen) %{perl_requires} %description Perlanet is a program for creating programs that aggregate web feeds (both RSS and Atom). Web pages like this are often called "Planets" after the Python software which originally popularised them. Perlanet is a planet builder written in Perl - hence "Perlanet". You are probably interested in Perlanet::Simple to get started straight out of the box, batteries included style. Perlanet itself is the driving force behind everything, however. Perlanet reads a series of web feeds (filtering only those that are valid), sorts and selects entries from these web feeds, and then creates a new aggregate feed and renders this aggregate feed. Perlanet allows the user to customize all of these steps through subclassing and roles. For most uses, you probably don't want to use the Perlanet module. The perlanet command line program is far more likely to be useful. %prep %autosetup -n %{cpan_name}-v%{version} find . -type f ! -path "*/t/*" ! -name "*.pl" ! -path "*/bin/*" ! -path "*/script/*" ! -name "configure" -print0 | xargs -0 chmod 644 %build perl Build.PL installdirs=vendor ./Build build flags=%{?_smp_mflags} %check ./Build test %install ./Build install destdir=%{buildroot} create_packlist=0 %perl_gen_filelist %files -f %{name}.files %doc Changes examples README %changelog