epel9 imports/e9/perl-Module-Install-CheckLib-0.14-1.el9
Petr Písař 3 years ago
parent 122937b10d
commit 5512822c56

1
.gitignore vendored

@ -1,3 +1,4 @@
/Module-Install-CheckLib-0.08.tar.gz /Module-Install-CheckLib-0.08.tar.gz
/Module-Install-CheckLib-0.10.tar.gz /Module-Install-CheckLib-0.10.tar.gz
/Module-Install-CheckLib-0.12.tar.gz /Module-Install-CheckLib-0.12.tar.gz
/Module-Install-CheckLib-0.14.tar.gz

@ -1,54 +0,0 @@
From 606062e885f6ad39b50d300b1b0f4ddbbeebdbc0 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Petr=20P=C3=ADsa=C5=99?= <ppisar@redhat.com>
Date: Wed, 15 Dec 2021 15:41:08 +0100
Subject: [PATCH] Allow tests to run from a read-only location
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
The tests creatd ./dist directory and later a temporary directetory
inside. This broken when running from a read-only location:
t/02_assert.t ... Error in tempdir() using dist/XXXXXXXXXX: Parent directory (dist) does not exist at t/02_assert.t line 11.
# Looks like your test exited with 2 before it could output anything.
t/02_assert.t ... Dubious, test returned 2 (wstat 512, 0x200)
This patch fixes it. It also fixes the strayed ./dist directory.
Signed-off-by: Petr Písař <ppisar@redhat.com>
---
t/01_dist.t | 3 +--
t/02_assert.t | 3 +--
2 files changed, 2 insertions(+), 4 deletions(-)
diff --git a/t/01_dist.t b/t/01_dist.t
index f22a91b..3968140 100644
--- a/t/01_dist.t
+++ b/t/01_dist.t
@@ -6,8 +6,7 @@ use File::Path qw[rmtree];
use Capture::Tiny qw[capture_merged];
{
-mkdir 'dist';
-my $tmpdir = tempdir( DIR => 'dist', CLEANUP => 1 );
+my $tmpdir = tempdir( CLEANUP => 1 );
chdir $tmpdir or die "$!\n";
open MFPL, '>Makefile.PL' or die "$!\n";
print MFPL <<'EOF';
diff --git a/t/02_assert.t b/t/02_assert.t
index a7fa98d..a652c70 100644
--- a/t/02_assert.t
+++ b/t/02_assert.t
@@ -6,8 +6,7 @@ use File::Path qw[rmtree];
use Capture::Tiny qw[capture_merged];
{
-mkdir 'dist';
-my $tmpdir = tempdir( DIR => 'dist', CLEANUP => 1 );
+my $tmpdir = tempdir( CLEANUP => 1 );
chdir $tmpdir or die "$!\n";
open MFPL, '>Makefile.PL' or die "$!\n";
print MFPL <<'EOF';
--
2.31.1

@ -2,14 +2,12 @@
%bcond_without perl_Module_Install_CheckLib_enable_optional_test %bcond_without perl_Module_Install_CheckLib_enable_optional_test
Name: perl-Module-Install-CheckLib Name: perl-Module-Install-CheckLib
Version: 0.12 Version: 0.14
Release: 16%{?dist} Release: 1%{?dist}
Summary: Module::Install extension to check that a library is available Summary: Module::Install extension to check that a library is available
License: GPL+ or Artistic License: GPL+ or Artistic
URL: https://metacpan.org/release/Module-Install-CheckLib URL: https://metacpan.org/release/Module-Install-CheckLib
Source0: https://cpan.metacpan.org/authors/id/B/BI/BINGOS/Module-Install-CheckLib-%{version}.tar.gz Source0: https://cpan.metacpan.org/authors/id/B/BI/BINGOS/Module-Install-CheckLib-%{version}.tar.gz
# Fix tests to work from a read-only location, CPAN RT#140485
Patch0: Module-Install-CheckLib-0.12-Allow-tests-to-run-from-a-read-only-location.patch
BuildArch: noarch BuildArch: noarch
BuildRequires: coreutils BuildRequires: coreutils
# glibc-common for iconv # glibc-common for iconv
@ -122,6 +120,9 @@ make test
%{_libexecdir}/%{name} %{_libexecdir}/%{name}
%changelog %changelog
* Thu Dec 16 2021 Petr Pisar <ppisar@redhat.com> - 0.14-1
- 0.14 bump
* Wed Dec 15 2021 Petr Pisar <ppisar@redhat.com> - 0.12-16 * Wed Dec 15 2021 Petr Pisar <ppisar@redhat.com> - 0.12-16
- Modernize a spec file - Modernize a spec file
- Package tests - Package tests

@ -1 +1 @@
SHA512 (Module-Install-CheckLib-0.12.tar.gz) = c462ed40d202ca21c8b13cb21867fb9e508548b9fbb92e3a3bf356e9788f349a9b126c9ead4aa3acbaddbabd96d575aeebc2137403c8b4766f759d7ea103f5e5 SHA512 (Module-Install-CheckLib-0.14.tar.gz) = 470eecf54113e8d6bdd8e0574806239f97028f76c4bb4942422ded0d373863838e56433130259d5dfce213cdddfeff8ef594cb9e6db1b85afaa01d7d1db15ade

Loading…
Cancel
Save