diff --git a/SDL-2.548-core_surface.t-test-data-icon.bmp-is-really-4-bits-p.patch b/SDL-2.548-core_surface.t-test-data-icon.bmp-is-really-4-bits-p.patch new file mode 100644 index 0000000..5c39f38 --- /dev/null +++ b/SDL-2.548-core_surface.t-test-data-icon.bmp-is-really-4-bits-p.patch @@ -0,0 +1,29 @@ +From 39c0ab8fc0b2277ece593b9b50f79f6e1ccd1fc5 Mon Sep 17 00:00:00 2001 +From: Daniel Kamil Kozar +Date: Thu, 12 Jun 2025 21:43:54 +0200 +Subject: [PATCH] core_surface.t: test/data/icon.bmp is really 4 bits per pixel +MIME-Version: 1.0 +Content-Type: text/plain; charset=UTF-8 +Content-Transfer-Encoding: 8bit + +Signed-off-by: Petr Písař +--- + t/core_surface.t | 2 +- + 1 file changed, 1 insertion(+), 1 deletion(-) + +diff --git a/t/core_surface.t b/t/core_surface.t +index 897536b6..baa962aa 100644 +--- a/t/core_surface.t ++++ b/t/core_surface.t +@@ -51,7 +51,7 @@ is( $image->h, 32, 'image has height' ); + + my $pixel_format = $image->format; + isa_ok( $pixel_format, 'SDL::PixelFormat' ); +-is( $pixel_format->BitsPerPixel, 8, ' BitsPerPixel' ); ++is( $pixel_format->BitsPerPixel, 4, ' BitsPerPixel' ); + is( $pixel_format->BytesPerPixel, 1, ' BytesPerPixel' ); + is( $pixel_format->Rloss, 8, ' Rloss' ); + is( $pixel_format->Gloss, 8, ' Gloss' ); +-- +2.50.1 + diff --git a/gating.yaml b/gating.yaml new file mode 100644 index 0000000..f126b62 --- /dev/null +++ b/gating.yaml @@ -0,0 +1,15 @@ +--- !Policy +product_versions: + - fedora-rawhide +decision_context: bodhi_update_push_stable +subject_type: koji_build +rules: + - !PassingTestCaseRule {test_case_name: fedora-ci.koji-build.rpmdeplint.functional} +--- !Policy +product_versions: + - fedora-* +decision_context: bodhi_update_push_stable +subject_type: koji_build +rules: + - !PassingTestCaseRule {test_case_name: fedora-ci.koji-build.installability.functional} + - !PassingTestCaseRule {test_case_name: fedora-ci.koji-build.rpminspect.static-analysis} diff --git a/perl-SDL.spec b/perl-SDL.spec index f50ea0b..ed23a3f 100644 --- a/perl-SDL.spec +++ b/perl-SDL.spec @@ -1,6 +1,6 @@ Name: perl-SDL Version: 2.548 -Release: 27%{?dist} +Release: 28%{?dist} Summary: Simple DirectMedia Layer for Perl # COPYING: GPL-2.0 text # lib/pods/SDL.pod: GPL-1.0-or-later OR Artistic-1.0-Perl @@ -58,6 +58,9 @@ Patch3: SDL-2.548-Fix-reference-counting-in-set_event_filter.patch # , in upstream after 2.548, # Patch4: SDL-2.548-Fix-building-in-ISO-C23.patch +# Adapt t/core_surface.t test to SDL3, incompatible with SDL2, bug #2341036, +# proposed to upstream, +Patch5: SDL-2.548-core_surface.t-test-data-icon.bmp-is-really-4-bits-p.patch BuildRequires: coreutils BuildRequires: findutils BuildRequires: libGLU-devel @@ -186,6 +189,9 @@ find %{buildroot} -type f -name '*.bs' -a -size 0 -delete %{_mandir}/man3/Module::Build::SDL.* %changelog +* Fri Jul 11 2025 Petr Pisar - 2.548-28 +- Adapt t/core_surface.t test to SDL3 (bug #2341036) + * Tue Feb 11 2025 Petr Pisar - 2.548-27 - Adapt to GCC 15 (bug #2341036)