From 7dd320fcd5450ce0f32d557d19fa481ba4d663d6 Mon Sep 17 00:00:00 2001 From: yuanhui Date: Thu, 13 Apr 2023 10:26:00 +0800 Subject: [PATCH] Optimize the spec file Signed-off-by: yuanhui --- perl-Getopt-Long.spec | 53 ++++++++++++++++--------------------------- 1 file changed, 20 insertions(+), 33 deletions(-) diff --git a/perl-Getopt-Long.spec b/perl-Getopt-Long.spec index 569bd23..04262f4 100644 --- a/perl-Getopt-Long.spec +++ b/perl-Getopt-Long.spec @@ -1,59 +1,43 @@ -%define anolis_release 3 +%define anolis_release 4 Name: perl-Getopt-Long Epoch: 1 Version: 2.54 Release: %{anolis_release}%{?dist} -Summary: Extended processing of command line options License: GPLv2+ or Artistic +Summary: Extended processing of command line options URL: https://metacpan.org/release/Getopt-Long Source0: https://cpan.metacpan.org/authors/id/J/JV/JV/Getopt-Long-%{version}.tar.gz BuildArch: noarch -BuildRequires: coreutils -BuildRequires: make -BuildRequires: perl-generators -BuildRequires: perl-interpreter -BuildRequires: perl(Config) -BuildRequires: perl(ExtUtils::MakeMaker) >= 6.76 -BuildRequires: perl(lib) + +BuildRequires: make coreutils +BuildRequires: perl-generators perl-interpreter perl(lib) +BuildRequires: perl(Config) perl(ExtUtils::MakeMaker) >= 6.76 # Run-time: -BuildRequires: perl(constant) -BuildRequires: perl(Exporter) -BuildRequires: perl(overload) -BuildRequires: perl(strict) -BuildRequires: perl(Text::ParseWords) -BuildRequires: perl(vars) -BuildRequires: perl(warnings) -Requires: perl(overload) -Requires: perl(Text::ParseWords) -# Recommended: -Requires: perl(Pod::Usage) >= 1.14 -# Dependencies on these Perl 4 files are generated as perl(foo.pl): +BuildRequires: perl(warnings) perl(Text::ParseWords) perl(vars) +BuildRequires: perl(constant) perl(Exporter) perl(overload) perl(strict) +Requires: perl(Text::ParseWords) perl(Pod::Usage) >= 1.14 perl(overload) Provides: perl(newgetopt.pl) = %{version} %description -The Getopt::Long module implements an extended getopt function called -GetOptions(). It parses the command line from @ARGV, recognizing and removing -specified options and their possible values. It adheres to the POSIX syntax -for command line options, with GNU extensions. In general, this means that -options have long names instead of single letters, and are introduced with -a double dash "--". Support for bundling of command line options, as was the -case with the more traditional single-letter approach, is provided but not -enabled by default. +Getopt::Long is a Perl module used for parsing command-line options. It implements an +extended getopt function called GetOptions(). It parses the command line from @ARGV, +recognizing and removing specified options and their possible values. This function +adheres to the POSIX syntax for command line options, with GNU extensions. %package doc Summary: Documentation files for %{name} -Requires: %{name} = %{epoch}:%{version}-%{release} +Requires: %{name} = %{EVR} BuildArch: noarch %description doc The %{name}-doc package contains documentation files for %{name}. %prep -%setup -q -n Getopt-Long-%{version} +%autosetup -n Getopt-Long-%{version} -p1 %build -perl Makefile.PL INSTALLDIRS=vendor NO_PACKLIST=1 NO_PERLLOCAL=1 +perl Makefile.PL INSTALLDIRS=vendor NO_PERLLOCAL=1 NO_PACKLIST=1 %{make_build} %install @@ -68,9 +52,12 @@ make test %{_mandir}/man3/* %files doc -%doc Changes examples README +%doc INSTALL examples Changes README %changelog +* Thu Apr 13 2023 yuanhui - 2.54-4 +- Optimize the spec file + * Tue Feb 07 2023 mgb01105731 - 2.54-3 - remove versioned MODULE_COMPAT_ requires -- Gitee