forked from pool/perl-XML-Feed
automatic update OBS-URL: https://build.opensuse.org/request/show/348946 OBS-URL: https://build.opensuse.org/package/show/devel:languages:perl/perl-XML-Feed?expand=0&rev=9
106 lines
3.5 KiB
RPMSpec
106 lines
3.5 KiB
RPMSpec
#
|
|
# spec file for package perl-XML-Feed
|
|
#
|
|
# Copyright (c) 2015 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-XML-Feed
|
|
Version: 0.53
|
|
Release: 0
|
|
%define cpan_name XML-Feed
|
|
Summary: Syndication feed parser and auto-discovery
|
|
License: Artistic-1.0 or GPL-1.0+
|
|
Group: Development/Libraries/Perl
|
|
Url: http://search.cpan.org/dist/XML-Feed/
|
|
Source0: http://www.cpan.org/authors/id/D/DA/DAVECROSS/%{cpan_name}-%{version}.tar.gz
|
|
Source1: cpanspec.yml
|
|
BuildArch: noarch
|
|
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
|
BuildRequires: perl
|
|
BuildRequires: perl-macros
|
|
BuildRequires: perl(Class::ErrorHandler)
|
|
BuildRequires: perl(DateTime)
|
|
BuildRequires: perl(DateTime::Format::Mail)
|
|
BuildRequires: perl(DateTime::Format::W3CDTF)
|
|
BuildRequires: perl(Feed::Find)
|
|
BuildRequires: perl(HTML::Entities)
|
|
BuildRequires: perl(HTML::TokeParser)
|
|
BuildRequires: perl(LWP::UserAgent)
|
|
BuildRequires: perl(Module::Build) >= 0.420000
|
|
BuildRequires: perl(Module::Pluggable)
|
|
BuildRequires: perl(URI)
|
|
BuildRequires: perl(URI::Fetch)
|
|
BuildRequires: perl(XML::Atom) >= 0.38
|
|
BuildRequires: perl(XML::LibXML) >= 1.66
|
|
BuildRequires: perl(XML::RSS) >= 1.47
|
|
Requires: perl(Class::ErrorHandler)
|
|
Requires: perl(DateTime)
|
|
Requires: perl(DateTime::Format::Mail)
|
|
Requires: perl(DateTime::Format::W3CDTF)
|
|
Requires: perl(Feed::Find)
|
|
Requires: perl(HTML::Entities)
|
|
Requires: perl(HTML::TokeParser)
|
|
Requires: perl(LWP::UserAgent)
|
|
Requires: perl(Module::Pluggable)
|
|
Requires: perl(URI::Fetch)
|
|
Requires: perl(XML::Atom) >= 0.38
|
|
Requires: perl(XML::LibXML) >= 1.66
|
|
Requires: perl(XML::RSS) >= 1.47
|
|
%{perl_requires}
|
|
|
|
%description
|
|
_XML::Feed_ is a syndication feed parser for both RSS and Atom feeds. It
|
|
also implements feed auto-discovery for finding feeds, given a URI.
|
|
|
|
_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
|
|
the various syndication formats. The different flavors of RSS and Atom
|
|
handle data in different ways: date handling; summaries and content;
|
|
escaping and quoting; etc. This module attempts to remove those differences
|
|
by providing a wrapper around the formats and the classes implementing
|
|
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.
|
|
|
|
%prep
|
|
%setup -q -n %{cpan_name}-%{version}
|
|
|
|
%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 eg README
|
|
|
|
%changelog
|