diff --git a/netpbm.changes b/netpbm.changes index edc492b..3922a32 100644 --- a/netpbm.changes +++ b/netpbm.changes @@ -1,3 +1,8 @@ +------------------------------------------------------------------- +Wed Sep 14 13:15:23 UTC 2022 - Andreas Schwab + +- ppmforge-test.patch: fix ppmforge test to avoid float overflow + ------------------------------------------------------------------- Sun Dec 19 17:47:53 UTC 2021 - Andreas Schwab diff --git a/netpbm.spec b/netpbm.spec index 606e889..4c848a6 100644 --- a/netpbm.spec +++ b/netpbm.spec @@ -1,7 +1,7 @@ # # spec file for package netpbm # -# Copyright (c) 2021 SUSE LLC +# Copyright (c) 2022 SUSE LLC # # All modifications and additions to the file contributed by third parties # remain the property of their copyright owners, unless otherwise agreed @@ -47,6 +47,8 @@ Patch6: signed-char.patch Patch7: big-endian.patch # bsc#1144255 disable jpeg2k support due to removal of jasper Patch8: netpbm-disable-jasper.patch +# PATCH-FIX-UPSTREAM fix ppmforge test to avoid float overflow +Patch9: ppmforge-test.patch BuildRequires: flex BuildRequires: libjpeg-devel BuildRequires: libpng-devel diff --git a/ppmforge-test.patch b/ppmforge-test.patch new file mode 100644 index 0000000..34dd634 --- /dev/null +++ b/ppmforge-test.patch @@ -0,0 +1,16 @@ +Index: netpbm-10.96.4/test/ppmforge.test +=================================================================== +--- netpbm-10.96.4.orig/test/ppmforge.test ++++ netpbm-10.96.4/test/ppmforge.test +@@ -44,9 +44,9 @@ rm ${test_ppm} + + echo "Test 5." + ppmforge -seed 1 -stars 0 -ice 0.01 \ +- -inclination 9 -hour 12 -power 200 > ${test_ppm} ++ -inclination 9 -hour 12 -power 20 > ${test_ppm} + ppmforge -seed 1 -stars 0 -ice 0.01 \ +- -inclination 10 -hour 12 -power 200 | \ ++ -inclination 10 -hour 12 -power 20 | \ + pnmpsnr -target1=53.89 -target2=49.38 -target3=65.15 - ${test_ppm} + + rm ${test_ppm}