2015-04-17 05:36:44 +00:00
|
|
|
#
|
|
|
|
# spec file for package perl-XML-Feed
|
|
|
|
#
|
2024-07-11 11:50:33 +00:00
|
|
|
# Copyright (c) 2024 SUSE LLC
|
2015-04-17 05:36:44 +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-11-08 17:28:49 +00:00
|
|
|
# Please submit bugfixes or comments via https://bugs.opensuse.org/
|
2015-04-17 05:36:44 +00:00
|
|
|
#
|
|
|
|
|
2008-07-22 19:44:25 +00:00
|
|
|
|
2021-01-15 11:39:48 +00:00
|
|
|
%define cpan_name XML-Feed
|
2010-08-31 23:32:06 +00:00
|
|
|
Name: perl-XML-Feed
|
2024-07-11 11:50:33 +00:00
|
|
|
Version: 0.650.0
|
2010-08-31 23:32:06 +00:00
|
|
|
Release: 0
|
2024-07-11 11:50:33 +00:00
|
|
|
# 0.65 -> normalize -> 0.650.0
|
|
|
|
%define cpan_version 0.65
|
2018-11-08 17:28:49 +00:00
|
|
|
License: Artistic-1.0 OR GPL-1.0-or-later
|
2024-07-11 11:50:33 +00:00
|
|
|
Summary: XML Syndication Feed Support
|
2021-01-15 11:39:48 +00:00
|
|
|
URL: https://metacpan.org/release/%{cpan_name}
|
2024-07-11 11:50:33 +00:00
|
|
|
Source0: https://cpan.metacpan.org/authors/id/D/DA/DAVECROSS/%{cpan_name}-%{cpan_version}.tar.gz
|
2015-04-17 05:36:44 +00:00
|
|
|
Source1: cpanspec.yml
|
2025-08-12 18:18:35 +02:00
|
|
|
Source100: README.md
|
2015-04-17 05:36:44 +00:00
|
|
|
BuildArch: noarch
|
2010-08-31 23:32:06 +00:00
|
|
|
BuildRequires: perl
|
2010-12-03 14:56:02 +00:00
|
|
|
BuildRequires: perl-macros
|
2015-04-17 05:36:44 +00:00
|
|
|
BuildRequires: perl(Class::ErrorHandler)
|
2010-08-31 23:32:06 +00:00
|
|
|
BuildRequires: perl(DateTime)
|
2019-02-08 18:08:35 +00:00
|
|
|
BuildRequires: perl(DateTime::Format::Flexible)
|
|
|
|
BuildRequires: perl(DateTime::Format::ISO8601)
|
2010-08-31 23:32:06 +00:00
|
|
|
BuildRequires: perl(DateTime::Format::Mail)
|
2019-02-08 18:08:35 +00:00
|
|
|
BuildRequires: perl(DateTime::Format::Natural)
|
2010-08-31 23:32:06 +00:00
|
|
|
BuildRequires: perl(DateTime::Format::W3CDTF)
|
2015-04-17 05:36:44 +00:00
|
|
|
BuildRequires: perl(Feed::Find)
|
|
|
|
BuildRequires: perl(HTML::Entities)
|
2010-08-31 23:32:06 +00:00
|
|
|
BuildRequires: perl(HTML::TokeParser)
|
|
|
|
BuildRequires: perl(LWP::UserAgent)
|
2024-07-11 11:50:33 +00:00
|
|
|
BuildRequires: perl(Module::Build) >= 0.42
|
2015-04-17 05:36:44 +00:00
|
|
|
BuildRequires: perl(Module::Pluggable)
|
2015-12-15 18:14:30 +00:00
|
|
|
BuildRequires: perl(URI)
|
2015-04-17 05:36:44 +00:00
|
|
|
BuildRequires: perl(URI::Fetch)
|
|
|
|
BuildRequires: perl(XML::Atom) >= 0.38
|
2010-08-31 23:32:06 +00:00
|
|
|
BuildRequires: perl(XML::LibXML) >= 1.66
|
2015-04-17 05:36:44 +00:00
|
|
|
BuildRequires: perl(XML::RSS) >= 1.47
|
2021-01-15 11:39:48 +00:00
|
|
|
BuildRequires: perl(XML::XPath)
|
2015-04-17 05:36:44 +00:00
|
|
|
Requires: perl(Class::ErrorHandler)
|
2010-08-31 23:32:06 +00:00
|
|
|
Requires: perl(DateTime)
|
2019-02-08 18:08:35 +00:00
|
|
|
Requires: perl(DateTime::Format::Flexible)
|
|
|
|
Requires: perl(DateTime::Format::ISO8601)
|
2010-08-31 23:32:06 +00:00
|
|
|
Requires: perl(DateTime::Format::Mail)
|
2019-02-08 18:08:35 +00:00
|
|
|
Requires: perl(DateTime::Format::Natural)
|
2010-08-31 23:32:06 +00:00
|
|
|
Requires: perl(DateTime::Format::W3CDTF)
|
2015-04-17 05:36:44 +00:00
|
|
|
Requires: perl(Feed::Find)
|
|
|
|
Requires: perl(HTML::Entities)
|
2010-08-31 23:32:06 +00:00
|
|
|
Requires: perl(HTML::TokeParser)
|
|
|
|
Requires: perl(LWP::UserAgent)
|
2015-04-17 05:36:44 +00:00
|
|
|
Requires: perl(Module::Pluggable)
|
|
|
|
Requires: perl(URI::Fetch)
|
|
|
|
Requires: perl(XML::Atom) >= 0.38
|
2010-08-31 23:32:06 +00:00
|
|
|
Requires: perl(XML::LibXML) >= 1.66
|
2015-04-17 05:36:44 +00:00
|
|
|
Requires: perl(XML::RSS) >= 1.47
|
2024-07-11 11:50:33 +00:00
|
|
|
Provides: perl(XML::Feed) = %{version}
|
|
|
|
Provides: perl(XML::Feed::Content) = %{version}
|
|
|
|
Provides: perl(XML::Feed::Enclosure) = %{version}
|
|
|
|
Provides: perl(XML::Feed::Entry) = %{version}
|
|
|
|
Provides: perl(XML::Feed::Entry::Format::Atom) = %{version}
|
|
|
|
Provides: perl(XML::Feed::Entry::Format::RSS) = %{version}
|
|
|
|
Provides: perl(XML::Feed::Format::Atom) = %{version}
|
|
|
|
Provides: perl(XML::Feed::Format::RSS) = %{version}
|
|
|
|
Provides: perl(XML::Feed::Util) = %{version}
|
|
|
|
%undefine __perllib_provides
|
2015-04-17 05:36:44 +00:00
|
|
|
%{perl_requires}
|
2008-07-22 19:44:25 +00:00
|
|
|
|
|
|
|
%description
|
2015-04-17 05:36:44 +00:00
|
|
|
_XML::Feed_ is a syndication feed parser for both RSS and Atom feeds. It
|
2010-08-31 23:32:06 +00:00
|
|
|
also implements feed auto-discovery for finding feeds, given a URI.
|
2008-07-22 19:44:25 +00:00
|
|
|
|
2015-04-17 05:36:44 +00:00
|
|
|
_XML::Feed_ supports the following syndication feed formats:
|
|
|
|
|
|
|
|
* * RSS 0.91
|
|
|
|
|
|
|
|
* * RSS 1.0
|
|
|
|
|
|
|
|
* * RSS 2.0
|
|
|
|
|
|
|
|
* * Atom
|
|
|
|
|
|
|
|
The goal of _XML::Feed_ is to provide a unified API for parsing and using
|
2010-08-31 23:32:06 +00:00
|
|
|
the various syndication formats. The different flavors of RSS and Atom
|
|
|
|
handle data in different ways: date handling; summaries and content;
|
2015-04-17 05:36:44 +00:00
|
|
|
escaping and quoting; etc. This module attempts to remove those differences
|
|
|
|
by providing a wrapper around the formats and the classes implementing
|
2015-12-15 18:14:30 +00:00
|
|
|
those formats (XML::RSS and XML::Atom::Feed). For example, dates are
|
|
|
|
handled differently in each of the above formats. To provide a unified API
|
|
|
|
for date handling, _XML::Feed_ converts all date formats transparently into
|
|
|
|
DateTime objects, which it then returns to the caller.
|
2008-07-22 19:44:25 +00:00
|
|
|
|
|
|
|
%prep
|
2024-07-11 11:50:33 +00:00
|
|
|
%autosetup -n %{cpan_name}-%{cpan_version}
|
2008-07-22 19:44:25 +00:00
|
|
|
|
|
|
|
%build
|
2024-07-11 11:50:33 +00:00
|
|
|
perl Build.PL --installdirs=vendor
|
|
|
|
./Build build --flags=%{?_smp_mflags}
|
2015-04-17 05:36:44 +00:00
|
|
|
|
|
|
|
%check
|
|
|
|
./Build test
|
2008-07-22 19:44:25 +00:00
|
|
|
|
|
|
|
%install
|
2024-07-11 11:50:33 +00:00
|
|
|
./Build install --destdir=%{buildroot} --create_packlist=0
|
2015-04-17 05:36:44 +00:00
|
|
|
%perl_gen_filelist
|
2008-07-22 19:44:25 +00:00
|
|
|
|
2015-04-17 05:36:44 +00:00
|
|
|
%files -f %{name}.files
|
2021-01-15 11:39:48 +00:00
|
|
|
%doc ChangeLog.md Changes README
|
2008-07-22 19:44:25 +00:00
|
|
|
|
2015-04-17 05:36:44 +00:00
|
|
|
%changelog
|