From d2215f814114af28261f241d539f15b7c9cf47a8 Mon Sep 17 00:00:00 2001 From: "Kun(llfl)" Date: Wed, 12 Apr 2023 17:40:25 +0800 Subject: [PATCH] optimize spec file Signed-off-by: Kun(llfl) --- perl-podlators.spec | 60 ++++++++++++++++++++------------------------- 1 file changed, 27 insertions(+), 33 deletions(-) diff --git a/perl-podlators.spec b/perl-podlators.spec index 392a416..f88a578 100644 --- a/perl-podlators.spec +++ b/perl-podlators.spec @@ -1,27 +1,17 @@ -%define anolis_release 3 +%define anolis_release 4 + +Summary: Format POD source into various output format Name: perl-podlators Version: 5.01 Release: %{anolis_release}%{?dist} -Summary: Format POD source into various output formats # pod/perlpodstyle.pod: FSFAP # other files: GPL+ or Artistic ## Not in the binary package -# t/data/basic.cap: FSFAP -# t/data/basic.clr: FSFAP -# t/data/basic.man: FSFAP -# t/data/basic.ovr: FSFAP -# t/data/basic.pod: FSFAP -# t/data/basic.txt: FSFAP +# t/data/basic.*: FSFAP # t/data/snippets/man/uppercase-license: MIT # t/data/snippets/README: FSFAP -# t/docs/pod.t: MIT -# t/docs/pod-spelling.t: MIT -# t/docs/spdx-license.t: MIT -# t/docs/synopsis.t: MIT -# t/docs/urls.t: MIT -# t/lib/Test/RRA.pm: MIT -# t/lib/Test/RRA/Config.pm: MIT -# t/lib/Test/RRA/ModuleVersion.pm: MIT +# t/docs/*: MIT +# t/lib/Test/RRA*: MIT # t/style/minimum-version.t: MIT # t/style/module-version.t: MIT # t/style/strict.t: MIT @@ -36,12 +26,12 @@ BuildRequires: perl-generators BuildRequires: perl-interpreter BuildRequires: perl(:VERSION) >= 5.8 BuildRequires: perl(Config) -# Cwd run by PL script in scripts directory + BuildRequires: perl(Cwd) BuildRequires: perl(ExtUtils::MakeMaker) >= 6.76 -# File::Basename run by PL script in scripts directory + BuildRequires: perl(File::Basename) -# File::Spec version declared in lib/Pod/Man.pm comment + BuildRequires: perl(File::Spec) >= 0.8 BuildRequires: perl(strict) BuildRequires: perl(warnings) @@ -49,9 +39,9 @@ BuildRequires: perl(warnings) BuildRequires: perl(Carp) BuildRequires: perl(Encode) BuildRequires: perl(Exporter) -# Getopt::Long not used at tests + BuildRequires: perl(Pod::Simple) >= 3.06 -# Pod::Usage not used at tests + BuildRequires: perl(POSIX) BuildRequires: perl(subs) BuildRequires: perl(Term::ANSIColor) @@ -65,18 +55,11 @@ BuildRequires: perl(Getopt::Long) BuildRequires: perl(IO::File) BuildRequires: perl(lib) BuildRequires: perl(Test::More) -# Optional tests: -# JSON::PP not used -# Perl::Critic::Utils not used -# Perl6::Slurp not used + BuildRequires: perl(PerlIO::encoding) -# Test::MinimumVersion not used -# Test::Pod not used -# Test::Spelling not used -# Test::Strict not used -# Test::Synopsis not used + Requires: perl(File::Basename) -# File::Spec version declared in lib/Pod/Man.pm comment + Requires: perl(File::Spec) >= 0.8 Requires: perl(Pod::Simple) >= 3.06 Conflicts: perl < 4:5.16.1-234 @@ -90,6 +73,14 @@ to *roff source output, suitable for man pages, or plain text. It also includes several sub-classes of Pod::Text for formatted output to terminals with various capabilities. +Pod::Man and Pod::Text. The Pod::Man module converts POD into nroff/troff +source and the latter into plain text (with various options controlling some +of the formatting). There are also several subclasses of Pod::Text for +generating slightly formatted text using color or other terminal control +escapes, and a general utility module, Pod::ParseLink, for parsing the POD +L<> formatting sequences. Also included in this package are the pod2text +and pod2man driver scripts. + %package doc Summary: Documentation files for %{name} Requires: %{name} = %{version}-%{release} @@ -103,10 +94,10 @@ The %{name}-doc package contains documentation files for %{name}. %build perl Makefile.PL INSTALLDIRS=vendor NO_PACKLIST=1 NO_PERLLOCAL=1 -%{make_build} +%make_build %install -%{make_install} +%make_install %{_fixperms} $RPM_BUILD_ROOT/* %check @@ -124,6 +115,9 @@ make test %doc Changes README README.md THANKS TODO %changelog +* Wed Apr 12 2023 Kun(llfl) - 5.01-4 +- optimize spec file + * Fri Feb 03 2023 mgb01105731 - 5.01-3 - remove versioned MODULE_COMPAT_ requires -- Gitee