# # spec file for package perl-Perlanet # # Copyright (c) 2017 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 # 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 http://bugs.opensuse.org/ # Name: perl-Perlanet Version: 1.1.0 Release: 0 %define cpan_name Perlanet Summary: Program for Creating Programs That Aggregate Web Feeds (Both License: Artistic-1.0 or GPL-1.0+ Group: Development/Libraries/Perl Url: http://search.cpan.org/dist/Perlanet/ #Source0: https://cpan.metacpan.org/authors/id/D/DA/DAVECROSS/%{cpan_name}-0.58.tar.gz Source0: Perlanet-v1.1.0.tar.gz Source1: cpanspec.yml BuildArch: noarch BuildRoot: %{_tmppath}/%{name}-%{version}-build BuildRequires: perl BuildRequires: perl-macros BuildRequires: perl(Alien::Tidyp) BuildRequires: perl(DateTime) BuildRequires: perl(DateTime::Duration) 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(Try::Tiny) BuildRequires: perl(URI::Fetch) BuildRequires: perl(XML::Feed) >= 0.22 BuildRequires: perl(YAML) BuildRequires: perl(namespace::autoclean) Requires: perl(DateTime) Requires: perl(DateTime::Duration) Requires: perl(HTML::Scrubber) Requires: perl(HTML::Tidy) Requires: perl(Moose) 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 %setup -q -n %{cpan_name}-v%{version} find . -type f ! -name \*.pl -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 %defattr(-,root,root,755) %doc Changes examples README %changelog