88 lines
3.1 KiB
RPMSpec
88 lines
3.1 KiB
RPMSpec
#
|
|
# spec file for package perl-XML-FeedPP
|
|
#
|
|
# Copyright (c) 2024 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 XML-FeedPP
|
|
Name: perl-XML-FeedPP
|
|
Version: 0.950.0
|
|
Release: 0
|
|
# 0.95 -> normalize -> 0.950.0
|
|
%define cpan_version 0.95
|
|
License: Artistic-1.0 OR GPL-1.0-or-later
|
|
Summary: Parse/write/merge/edit RSS/RDF/Atom syndication feeds
|
|
URL: https://metacpan.org/release/%{cpan_name}
|
|
Source0: https://cpan.metacpan.org/authors/id/M/MA/MARKOV/%{cpan_name}-%{cpan_version}.tar.gz
|
|
Source1: cpanspec.yml
|
|
Source100: README.md
|
|
BuildArch: noarch
|
|
BuildRequires: perl
|
|
BuildRequires: perl-macros
|
|
BuildRequires: perl(XML::TreePP) >= 0.390
|
|
Requires: perl(XML::TreePP) >= 0.390
|
|
Provides: perl(XML::FeedPP) = %{version}
|
|
Provides: perl(XML::FeedPP::Atom)
|
|
Provides: perl(XML::FeedPP::Atom::Atom03)
|
|
Provides: perl(XML::FeedPP::Atom::Atom03::Entry)
|
|
Provides: perl(XML::FeedPP::Atom::Atom03::Feed)
|
|
Provides: perl(XML::FeedPP::Atom::Atom10)
|
|
Provides: perl(XML::FeedPP::Atom::Atom10::Entry)
|
|
Provides: perl(XML::FeedPP::Atom::Atom10::Feed)
|
|
Provides: perl(XML::FeedPP::Atom::Common)
|
|
Provides: perl(XML::FeedPP::Atom::Common::Entry)
|
|
Provides: perl(XML::FeedPP::Atom::Common::Feed)
|
|
Provides: perl(XML::FeedPP::Element)
|
|
Provides: perl(XML::FeedPP::Item)
|
|
Provides: perl(XML::FeedPP::Plugin)
|
|
Provides: perl(XML::FeedPP::RDF)
|
|
Provides: perl(XML::FeedPP::RDF::Channel)
|
|
Provides: perl(XML::FeedPP::RDF::Item)
|
|
Provides: perl(XML::FeedPP::RSS)
|
|
Provides: perl(XML::FeedPP::RSS::Channel)
|
|
Provides: perl(XML::FeedPP::RSS::Item)
|
|
Provides: perl(XML::FeedPP::Util)
|
|
%undefine __perllib_provides
|
|
%{perl_requires}
|
|
|
|
%description
|
|
'XML::FeedPP' is an all-purpose syndication utility that parses and
|
|
publishes RSS 2.0, RSS 1.0 (RDF), Atom 0.3 and 1.0 feeds. It allows you to
|
|
add new content, merge feeds, and convert among these various formats. It
|
|
is a pure Perl implementation and does not require any other module except
|
|
for XML::TreePP.
|
|
|
|
%prep
|
|
%autosetup -n %{cpan_name}-%{cpan_version}
|
|
|
|
find . -type f ! -path "*/t/*" ! -name "*.pl" ! -path "*/bin/*" ! -path "*/script/*" ! -path "*/scripts/*" ! -name "configure" -print0 | xargs -0 chmod 644
|
|
|
|
%build
|
|
perl Makefile.PL INSTALLDIRS=vendor
|
|
%make_build
|
|
|
|
%check
|
|
make test
|
|
|
|
%install
|
|
%perl_make_install
|
|
%perl_process_packlist
|
|
%perl_gen_filelist
|
|
|
|
%files -f %{name}.files
|
|
%doc Changes make-dist.sh README
|
|
|
|
%changelog
|