diff --git a/Config-Perl-V-0.24-Remove-invalid-shellbang.patch b/Config-Perl-V-0.24-Remove-invalid-shellbang.patch new file mode 100644 index 0000000000000000000000000000000000000000..b4c7aa9c869888edf52285937f3865681f813116 --- /dev/null +++ b/Config-Perl-V-0.24-Remove-invalid-shellbang.patch @@ -0,0 +1,26 @@ +From 26c312a1f52b06b26fb035f7e7855b8056d48728 Mon Sep 17 00:00:00 2001 +From: =?UTF-8?q?Petr=20P=C3=ADsa=C5=99?= +Date: Wed, 1 Jul 2015 13:47:28 +0200 +Subject: [PATCH] Remove invalid shellbang +MIME-Version: 1.0 +Content-Type: text/plain; charset=UTF-8 +Content-Transfer-Encoding: 8bit + +Signed-off-by: Petr Písař +--- + examples/show-v.pl | 2 -- + 1 file changed, 2 deletions(-) + +diff --git a/examples/show-v.pl b/examples/show-v.pl +index 2fac597..b43056a 100755 +--- a/examples/show-v.pl ++++ b/examples/show-v.pl +@@ -1,5 +1,3 @@ +-#!/pro/bin/perl +- + use strict; + use warnings; + +-- +2.4.3 + diff --git a/Config-Perl-V-0.33.tgz b/Config-Perl-V-0.33.tgz new file mode 100644 index 0000000000000000000000000000000000000000..4c2d6a9e0041f2d16ad8b7dd40f50a7fec2b6359 Binary files /dev/null and b/Config-Perl-V-0.33.tgz differ diff --git a/perl-Config-Perl-V.spec b/perl-Config-Perl-V.spec new file mode 100644 index 0000000000000000000000000000000000000000..e5ded7cc6c4ec7f80a37fae1b745ee0961b943d8 --- /dev/null +++ b/perl-Config-Perl-V.spec @@ -0,0 +1,66 @@ +%define anolis_release 1 +Name: perl-Config-Perl-V +Version: 0.33 +Epoch: 1 +Release: %{anolis_release}%{?dist} +Summary: Structured data retrieval of perl -V output +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 +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: 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 +Requires: perl(:MODULE_COMPAT_%(eval "`perl -V:version`"; echo $version)) +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. + +%prep +%setup -q -n Config-Perl-V-%{version} +%patch0 -p1 +chmod -x examples/* + +%build +perl Makefile.PL INSTALLDIRS=vendor NO_PACKLIST=1 NO_PERLLOCAL=1 +%{make_build} + +%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 +%doc Changelog CONTRIBUTING.md examples README +%{perl_vendorlib}/* +%{_mandir}/man3/* + +%changelog +* Wed Apr 20 2022 Chunmei Xu - 1:0.33-1 +- init from upstream