2011-01-17 17:23:38 +01:00
|
|
|
#
|
2011-11-17 16:46:50 +01:00
|
|
|
# spec file for package perl-Pod-Eventual
|
2011-01-17 17:23:38 +01:00
|
|
|
#
|
2021-07-05 15:26:24 +02:00
|
|
|
# Copyright (c) 2021 SUSE LLC
|
2011-01-17 17:23:38 +01: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.
|
|
|
|
|
2021-07-05 15:26:24 +02:00
|
|
|
# Please submit bugfixes or comments via https://bugs.opensuse.org/
|
2011-01-17 17:23:38 +01:00
|
|
|
#
|
|
|
|
|
2013-11-25 11:12:05 +01:00
|
|
|
|
2021-07-05 15:26:24 +02:00
|
|
|
%define cpan_name Pod-Eventual
|
2011-01-17 17:23:38 +01:00
|
|
|
Name: perl-Pod-Eventual
|
2021-07-05 15:26:24 +02:00
|
|
|
Version: 0.094002
|
2012-01-09 11:55:17 +01:00
|
|
|
Release: 0
|
2021-07-05 15:26:24 +02:00
|
|
|
Summary: Read a POD document as a series of trivial events
|
|
|
|
License: Artistic-1.0 OR GPL-1.0-or-later
|
|
|
|
URL: https://metacpan.org/release/%{cpan_name}
|
|
|
|
Source0: https://cpan.metacpan.org/authors/id/R/RJ/RJBS/%{cpan_name}-%{version}.tar.gz
|
|
|
|
Source1: cpanspec.yml
|
2013-11-25 11:12:05 +01:00
|
|
|
BuildArch: noarch
|
2011-01-17 17:23:38 +01:00
|
|
|
BuildRequires: perl
|
|
|
|
BuildRequires: perl-macros
|
2021-07-05 15:26:24 +02:00
|
|
|
BuildRequires: perl(ExtUtils::MakeMaker) >= 6.78
|
2013-11-25 11:12:05 +01:00
|
|
|
BuildRequires: perl(Mixin::Linewise::Readers) >= 0.102
|
2012-01-09 11:55:17 +01:00
|
|
|
BuildRequires: perl(Test::Deep)
|
2013-11-25 11:12:05 +01:00
|
|
|
BuildRequires: perl(Test::More) >= 0.96
|
|
|
|
Requires: perl(Mixin::Linewise::Readers) >= 0.102
|
2011-01-17 17:23:38 +01:00
|
|
|
%{perl_requires}
|
|
|
|
|
|
|
|
%description
|
|
|
|
POD is a pretty simple format to write, but it can be a big pain to deal
|
|
|
|
with reading it and doing anything useful with it. Most existing POD
|
|
|
|
parsers care about semantics, like whether a '=item' occurred after an
|
|
|
|
'=over' but before a 'back', figuring out how to link a 'L<>', and other
|
|
|
|
things like that.
|
|
|
|
|
|
|
|
Pod::Eventual is much less ambitious and much more stupid. Fortunately,
|
|
|
|
stupid is often better. (That's what I keep telling myself, anyway.)
|
|
|
|
|
|
|
|
Pod::Eventual reads line-based input and produces events describing each
|
|
|
|
POD paragraph or directive it finds. Once complete events are immediately
|
|
|
|
passed to the 'handle_event' method. This method should be implemented by
|
|
|
|
Pod::Eventual subclasses. If it isn't, Pod::Eventual's own 'handle_event'
|
|
|
|
will be called, and will raise an exception.
|
|
|
|
|
|
|
|
%prep
|
2021-07-05 15:26:24 +02:00
|
|
|
%autosetup -n %{cpan_name}-%{version}
|
2011-01-17 17:23:38 +01:00
|
|
|
|
|
|
|
%build
|
2021-07-05 15:26:24 +02:00
|
|
|
perl Makefile.PL INSTALLDIRS=vendor
|
|
|
|
%make_build
|
2011-01-17 17:23:38 +01:00
|
|
|
|
|
|
|
%check
|
2021-07-05 15:26:24 +02:00
|
|
|
make test
|
2011-01-17 17:23:38 +01:00
|
|
|
|
|
|
|
%install
|
|
|
|
%perl_make_install
|
|
|
|
%perl_process_packlist
|
|
|
|
%perl_gen_filelist
|
|
|
|
|
|
|
|
%files -f %{name}.files
|
2021-07-05 15:26:24 +02:00
|
|
|
%doc Changes README
|
|
|
|
%license LICENSE
|
2011-01-17 17:23:38 +01:00
|
|
|
|
|
|
|
%changelog
|