forked from pool/perl-Pod-Eventual
3ee2d277c8
OBS-URL: https://build.opensuse.org/package/show/devel:languages:perl/perl-Pod-Eventual?expand=0&rev=4
79 lines
2.6 KiB
RPMSpec
79 lines
2.6 KiB
RPMSpec
#
|
|
# spec file for package perl-Pod-Eventual
|
|
#
|
|
# Copyright (c) 2011 SUSE LINUX Products 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-Pod-Eventual
|
|
Version: 0.093330
|
|
Release: 1
|
|
License: GPL+ or Artistic
|
|
%define cpan_name Pod-Eventual
|
|
Summary: read a POD document as a series of trivial events
|
|
Url: http://search.cpan.org/dist/Pod-Eventual/
|
|
Group: Development/Libraries/Perl
|
|
#Source: http://www.cpan.org/authors/id/R/RJ/RJBS/Pod-Eventual-%{version}.tar.gz
|
|
Source: %{cpan_name}-%{version}.tar.gz
|
|
BuildRequires: perl(Mixin::Linewise::Readers) >= 0.001
|
|
BuildRequires: perl(Test::Deep)
|
|
BuildRequires: perl
|
|
BuildRequires: perl-macros
|
|
Requires: perl(Mixin::Linewise::Readers) >= 0.001
|
|
Requires: perl(Test::Deep)
|
|
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
|
BuildArch: noarch
|
|
%{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
|
|
%setup -q -n %{cpan_name}-%{version}
|
|
|
|
%build
|
|
%{__perl} Makefile.PL INSTALLDIRS=vendor
|
|
%{__make} %{?_smp_mflags}
|
|
|
|
%check
|
|
%{__make} test
|
|
|
|
%install
|
|
%perl_make_install
|
|
%perl_process_packlist
|
|
%perl_gen_filelist
|
|
|
|
%clean
|
|
%{__rm} -rf %{buildroot}
|
|
|
|
%files -f %{name}.files
|
|
%defattr(644,root,root,755)
|
|
%doc Changes eg LICENSE README
|
|
|
|
%changelog
|