2011-11-17 15:57:04 +00:00
|
|
|
#
|
|
|
|
|
# spec file for package perl-XML-RSS
|
|
|
|
|
#
|
2018-03-06 09:06:18 +00:00
|
|
|
# Copyright (c) 2018 SUSE LINUX GmbH, Nuernberg, Germany.
|
2011-11-17 15:57:04 +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.
|
|
|
|
|
|
|
|
|
|
# Please submit bugfixes or comments via http://bugs.opensuse.org/
|
|
|
|
|
#
|
|
|
|
|
|
2010-08-31 23:25:09 +00:00
|
|
|
|
|
|
|
|
Name: perl-XML-RSS
|
2018-03-06 09:06:18 +00:00
|
|
|
Version: 1.60
|
2010-08-31 23:25:09 +00:00
|
|
|
Release: 0
|
2015-04-15 07:07:12 +00:00
|
|
|
%define cpan_name XML-RSS
|
2015-12-15 18:14:44 +00:00
|
|
|
Summary: Creates and Updates Rss Files
|
2018-03-06 09:06:18 +00:00
|
|
|
License: Artistic-1.0 OR GPL-1.0-or-later
|
2013-05-11 21:55:15 +00:00
|
|
|
Group: Development/Libraries/Perl
|
2015-04-15 07:07:12 +00:00
|
|
|
Url: http://search.cpan.org/dist/XML-RSS/
|
2018-03-06 09:06:18 +00:00
|
|
|
Source0: https://cpan.metacpan.org/authors/id/S/SH/SHLOMIF/%{cpan_name}-%{version}.tar.gz
|
2015-12-15 18:14:44 +00:00
|
|
|
Source1: cpanspec.yml
|
2015-04-15 07:07:12 +00:00
|
|
|
BuildArch: noarch
|
2011-11-17 15:57:04 +00:00
|
|
|
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
2010-08-31 23:25:09 +00:00
|
|
|
BuildRequires: perl
|
2010-12-03 14:56:29 +00:00
|
|
|
BuildRequires: perl-macros
|
2010-08-31 23:25:09 +00:00
|
|
|
BuildRequires: perl(DateTime::Format::Mail)
|
2013-05-11 21:55:15 +00:00
|
|
|
BuildRequires: perl(DateTime::Format::W3CDTF)
|
|
|
|
|
BuildRequires: perl(HTML::Entities)
|
2018-03-06 09:06:18 +00:00
|
|
|
BuildRequires: perl(Module::Build) >= 0.280000
|
|
|
|
|
BuildRequires: perl(Test::More) >= 0.88
|
|
|
|
|
BuildRequires: perl(XML::Parser)
|
2010-08-31 23:25:09 +00:00
|
|
|
Requires: perl(DateTime::Format::Mail)
|
2013-05-11 21:55:15 +00:00
|
|
|
Requires: perl(DateTime::Format::W3CDTF)
|
|
|
|
|
Requires: perl(HTML::Entities)
|
2018-03-06 09:06:18 +00:00
|
|
|
Requires: perl(XML::Parser)
|
2015-04-15 07:07:12 +00:00
|
|
|
%{perl_requires}
|
2008-06-09 14:59:32 +00:00
|
|
|
|
|
|
|
|
%description
|
2010-08-31 23:25:09 +00:00
|
|
|
This module provides a basic framework for creating and maintaining RDF
|
2015-04-15 07:07:12 +00:00
|
|
|
Site Summary (RSS) files. This distribution also contains many examples
|
|
|
|
|
that allow you to generate HTML from an RSS, convert between 0.9, 0.91, and
|
|
|
|
|
1.0 version, and other nifty things. This might be helpful if you want to
|
|
|
|
|
include news feeds on your Web site from sources like Slashdot and
|
|
|
|
|
Freshmeat or if you want to syndicate your own content.
|
|
|
|
|
|
|
|
|
|
XML::RSS currently supports 0.9, 0.91, and 1.0 versions of RSS. See
|
|
|
|
|
http://backend.userland.com/rss091 for information on RSS 0.91. See
|
|
|
|
|
http://www.purplepages.ie/RSS/netscape/rss0.90.html for RSS 0.9. See
|
|
|
|
|
http://web.resource.org/rss/1.0/ for RSS 1.0.
|
|
|
|
|
|
|
|
|
|
RSS was originally developed by Netscape as the format for Netscape
|
|
|
|
|
Netcenter channels, however, many Web sites have since adopted it as a
|
|
|
|
|
simple syndication format. With the advent of RSS 1.0, users are now able
|
|
|
|
|
to syndication many different kinds of content including news headlines,
|
|
|
|
|
threaded messages, products catalogs, etc.
|
|
|
|
|
|
|
|
|
|
*Note:* In order to parse and generate dates (such as 'pubDate' and
|
2015-12-15 18:14:44 +00:00
|
|
|
'dc:date') it is recommended to use DateTime::Format::Mail and
|
|
|
|
|
DateTime::Format::W3CDTF , which is what XML::RSS uses internally and
|
|
|
|
|
requires.
|
2008-06-09 14:59:32 +00:00
|
|
|
|
|
|
|
|
%prep
|
2015-04-15 07:07:12 +00:00
|
|
|
%setup -q -n %{cpan_name}-%{version}
|
2008-06-09 14:59:32 +00:00
|
|
|
|
|
|
|
|
%build
|
2015-04-15 07:07:12 +00:00
|
|
|
%{__perl} Build.PL installdirs=vendor
|
|
|
|
|
./Build build flags=%{?_smp_mflags}
|
2008-06-09 14:59:32 +00:00
|
|
|
|
2010-08-31 23:25:09 +00:00
|
|
|
%check
|
|
|
|
|
./Build test
|
|
|
|
|
|
2015-04-15 07:07:12 +00:00
|
|
|
%install
|
|
|
|
|
./Build install destdir=%{buildroot} create_packlist=0
|
|
|
|
|
%perl_gen_filelist
|
2008-06-09 14:59:32 +00:00
|
|
|
|
2015-04-15 07:07:12 +00:00
|
|
|
%files -f %{name}.files
|
|
|
|
|
%defattr(-,root,root,755)
|
2018-03-06 09:06:18 +00:00
|
|
|
%doc Changes examples README TODO
|
|
|
|
|
%license LICENSE
|
2008-06-09 14:59:32 +00:00
|
|
|
|
2011-11-17 15:57:04 +00:00
|
|
|
%changelog
|