68 lines
2.2 KiB
RPMSpec
68 lines
2.2 KiB
RPMSpec
|
#
|
||
|
# spec file for package perl-Pod-Parser
|
||
|
#
|
||
|
# Copyright (c) 2023 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 Pod-Parser
|
||
|
Name: perl-Pod-Parser
|
||
|
Version: 1.66
|
||
|
Release: 0
|
||
|
License: Artistic-1.0 OR GPL-1.0-or-later
|
||
|
Summary: Modules for parsing/translating POD format documents
|
||
|
URL: https://metacpan.org/release/%{cpan_name}
|
||
|
Source0: https://cpan.metacpan.org/authors/id/M/MA/MAREKR/%{cpan_name}-%{version}.tar.gz
|
||
|
Source1: cpanspec.yml
|
||
|
BuildArch: noarch
|
||
|
BuildRequires: perl
|
||
|
BuildRequires: perl-macros
|
||
|
%{perl_requires}
|
||
|
|
||
|
%description
|
||
|
*NOTE: This module is considered legacy; modern Perl releases (5.31.1 and
|
||
|
higher) are going to remove Pod-Parser from core and use Pod::Simple for
|
||
|
all things POD.*
|
||
|
|
||
|
*Pod::Parser* is a base class for creating POD filters and translators. It
|
||
|
handles most of the effort involved with parsing the POD sections from an
|
||
|
input stream, leaving subclasses free to be concerned only with performing
|
||
|
the actual translation of text.
|
||
|
|
||
|
*Pod::Parser* parses PODs, and makes method calls to handle the various
|
||
|
components of the POD. Subclasses of *Pod::Parser* override these methods
|
||
|
to translate the POD into whatever output format they desire.
|
||
|
|
||
|
%prep
|
||
|
%autosetup -n %{cpan_name}-%{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 ANNOUNCE CHANGES README TODO
|
||
|
|
||
|
%changelog
|