diff --git a/perl-File-Path.spec b/perl-File-Path.spec index e607810..dee19c8 100644 --- a/perl-File-Path.spec +++ b/perl-File-Path.spec @@ -1,6 +1,6 @@ Name: perl-File-Path Version: 2.18 -Release: 511%{?dist} +Release: 512%{?dist} Summary: Create or remove directory trees License: GPL-1.0-or-later OR Artistic-1.0-Perl URL: https://metacpan.org/release/File-Path @@ -70,8 +70,15 @@ perl Makefile.PL INSTALLDIRS=vendor NO_PACKLIST=1 NO_PERLLOCAL=1 mkdir -p %{buildroot}%{_libexecdir}/%{name} cp -a t %{buildroot}%{_libexecdir}/%{name} cat > %{buildroot}%{_libexecdir}/%{name}/test << 'EOF' -#!/bin/sh -cd %{_libexecdir}/%{name} && exec prove -I . -j "$(getconf _NPROCESSORS_ONLN)" +#!/bin/bash +set -e +# Some tests write into temporary files/directories. +DIR=$(mktemp -d) +pushd "$DIR" +cp -a %{_libexecdir}/%{name}/* ./ +prove -I . -j "$(getconf _NPROCESSORS_ONLN)" +popd +rm -rf "$DIR" EOF chmod +x %{buildroot}%{_libexecdir}/%{name}/test @@ -88,6 +95,9 @@ make test %{_libexecdir}/%{name} %changelog +* Mon Dec 08 2025 Jitka Plesnikova - 2.18-512 +- Resolves: RHEL-132702 - Update tests for Image Mode + * Tue Oct 29 2024 Troy Dawson - 2.18-511 - Bump release for October 2024 mass rebuild: Resolves: RHEL-64018