diff --git a/Config-Perl-V-0.24-Remove-invalid-shellbang.patch b/0001-Config-Perl-V-0.24-Remove-invalid-shellbang.patch similarity index 100% rename from Config-Perl-V-0.24-Remove-invalid-shellbang.patch rename to 0001-Config-Perl-V-0.24-Remove-invalid-shellbang.patch diff --git a/perl-Config-Perl-V.spec b/perl-Config-Perl-V.spec index 8ab7fcb97704e560872d695df87eac568d937be3..c068933f606054dfc252f92726d2677b36f9155e 100644 --- a/perl-Config-Perl-V.spec +++ b/perl-Config-Perl-V.spec @@ -1,42 +1,34 @@ -%define anolis_release 1 +%define anolis_release 2 + Name: perl-Config-Perl-V Version: 0.35 Epoch: 1 Release: %{anolis_release}%{?dist} -Summary: Structured data retrieval of perl -V output +Summary: A module that will return you the output of 'perl -V' in a structure License: GPL+ or Artistic URL: https://metacpan.org/release/Config-Perl-V Source0: https://cpan.metacpan.org/authors/id/H/HM/HMBRAND/Config-Perl-V-%{version}.tgz -# Correct example -Patch0: Config-Perl-V-0.24-Remove-invalid-shellbang.patch + +Patch0001: 0001-Config-Perl-V-0.24-Remove-invalid-shellbang.patch + BuildArch: noarch -BuildRequires: coreutils -BuildRequires: make -BuildRequires: perl-generators -BuildRequires: perl-interpreter -BuildRequires: perl(ExtUtils::MakeMaker) >= 6.76 -BuildRequires: perl(strict) -# Run-time: -BuildRequires: perl(Config) -BuildRequires: perl(Exporter) -BuildRequires: perl(vars) -BuildRequires: perl(warnings) -# Optional run-time: +BuildRequires: make coreutils +BuildRequires: perl-interpreter perl-generators +BuildRequires: perl(strict) perl(ExtUtils::MakeMaker) >= 6.76 +BuildRequires: perl(warnings) perl(vars) perl(Exporter) perl(Config) BuildRequires: perl(Digest::MD5) -# Tests: -BuildRequires: perl(Test::More) %if !%{defined perl_bootstrap} -# Building core modules must not require non-core modules when bootstrapping BuildRequires: perl(Test::NoWarnings) %endif +BuildRequires: perl(Test::More) + Suggests: perl(Digest::MD5) Conflicts: perl < 4:5.22.0 %description -The command "perl -V" will return you an excerpt from the %%Config::Config -hash combined with the output of "perl -V" that is not stored inside the hash, -but only available to the perl binary itself. This package provides Perl -module that will return you the output of "perl -V" in a structure. +The command 'perl -V' will return you an excerpt from the %Config hash +combined with the output of 'perl -V' that is not stored inside %Config, +but only available to the perl binary itself. %package doc Summary: Documentation files for %{name} @@ -47,20 +39,18 @@ BuildArch: noarch The %{name}-doc package contains documentation files for %{name}. %prep -%setup -q -n Config-Perl-V-%{version} -%patch0 -p1 +%autosetup -p1 -n Config-Perl-V-%{version} chmod -x examples/* %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 -# Building core modules must not require non-core modules when bootstrapping make test PERL_CORE=%{defined perl_bootstrap} %files @@ -68,9 +58,12 @@ make test PERL_CORE=%{defined perl_bootstrap} %{_mandir}/man3/* %files doc -%doc Changelog CONTRIBUTING.md examples README +%doc README examples CONTRIBUTING.md Changelog %changelog +* Wed Apr 12 2023 Guyu Wang - 1:0.35-2 +- optimise spec file + * Tue Feb 07 2023 mgb01105731 - 1:0.35-1 - remove versioned MODULE_COMPAT_ requires - update to version 0.35