diff --git a/perl-Text-Diff.spec b/perl-Text-Diff.spec index 8986b2a..632e4f1 100644 --- a/perl-Text-Diff.spec +++ b/perl-Text-Diff.spec @@ -1,6 +1,6 @@ Name: perl-Text-Diff Version: 1.45 -Release: 24%{?dist} +Release: 25%{?dist} Summary: Perform diffs on files and record sets # lib/Text/Diff.pm - GPL-2.0-or-later OR Artistic-1.0-Perl # lib/Text/Diff/Config.pm - MIT @@ -70,8 +70,16 @@ make pure_install DESTDIR=%{buildroot} 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 +# Tests write into temporary files/directories. The solution is to copy the +# tests into a writable directory and execute them from there. +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 +96,10 @@ make test %{_libexecdir}/%{name} %changelog +* Wed Dec 17 2025 Michal Josef Špaček - 1.45-25 +- Fix tests for Image Mode. + Resolves: RHEL-136489 + * Tue Oct 29 2024 Troy Dawson - 1.45-24 - Bump release for October 2024 mass rebuild: Resolves: RHEL-64018