- Update to release 2.6.0

OBS-URL: https://build.opensuse.org/package/show/games/SDL2_image?expand=0&rev=30
This commit is contained in:
Jan Engelhardt 2022-07-09 13:02:37 +00:00 committed by Git OBS Bridge
parent 5f507c54b6
commit 915bff0e42
5 changed files with 31 additions and 27 deletions

View File

@ -1,15 +0,0 @@
diff -r f1baffa48926 -r ba45f00879ba IMG_bmp.c
--- a/IMG_bmp.c Tue Jul 30 10:16:02 2019 -0700
+++ b/IMG_bmp.c Tue Jul 30 11:00:12 2019 -0700
@@ -351,6 +351,11 @@
SDL_RWseek(src, (biSize - headerSize), RW_SEEK_CUR);
}
}
+ if (biWidth <= 0 || biHeight == 0) {
+ IMG_SetError("BMP file with bad dimensions (%dx%d)", biWidth, biHeight);
+ was_error = SDL_TRUE;
+ goto done;
+ }
if (biHeight < 0) {
topDown = SDL_TRUE;
biHeight = -biHeight;

View File

@ -1,3 +0,0 @@
version https://git-lfs.github.com/spec/v1
oid sha256:bdd5f6e026682f7d7e1be0b6051b209da2f402a2dd8bd1c4bd9c25ad263108d0
size 11736518

3
SDL2_image-2.6.0.tar.gz Normal file
View File

@ -0,0 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:611c862f40de3b883393aabaa8d6df350aa3ae4814d65030972e402edae85aaa
size 9811760

View File

@ -1,3 +1,20 @@
-------------------------------------------------------------------
Fri Jul 8 20:20:20 UTC 2022 - Jan Engelhardt <jengelh@inai.de>
- Update to release 2.6.0
* Added stb_image as the default backend for JPG and PNG images loading.
To use libpng and libjpg instead, configure using --disable-stb-image
* Added IMG_LoadSizedSVG_RW()
* Added support for AVIF images (https://github.com/AOMediaCodec/libavif [github.com])
* Added IMG_ReadXPMFromArrayToRGB888()
* Added support for JXL images (https://jpegxl.info/ [jpegxl.info])
* Added support for QOI images (https://qoiformat.org/ [qoiformat.org])
* Fixed XCF regression introduced in 2.0.5
* Added support for loading animated GIFs
* LoadBMP() now loads files using SDL2
* Allow using libwebpdecoder instead libwebp
- Remove CVE-2019-13616.patch (merged)
------------------------------------------------------------------- -------------------------------------------------------------------
Fri Aug 23 14:04:59 UTC 2019 - Michael Gorse <mgorse@suse.com> Fri Aug 23 14:04:59 UTC 2019 - Michael Gorse <mgorse@suse.com>

View File

@ -1,7 +1,7 @@
# #
# spec file for package SDL2_image # spec file for package SDL2_image
# #
# Copyright (c) 2019 SUSE LINUX GmbH, Nuernberg, Germany. # Copyright (c) 2022 SUSE LLC
# #
# All modifications and additions to the file contributed by third parties # All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed # remain the property of their copyright owners, unless otherwise agreed
@ -18,7 +18,7 @@
Name: SDL2_image Name: SDL2_image
%define lname libSDL2_image-2_0-0 %define lname libSDL2_image-2_0-0
Version: 2.0.5 Version: 2.6.0
Release: 0 Release: 0
Summary: Simple DirectMedia Layer 2 image loading library Summary: Simple DirectMedia Layer 2 image loading library
License: Zlib License: Zlib
@ -26,9 +26,8 @@ Group: Development/Libraries/X11
URL: https://libsdl.org/projects/SDL_image/ URL: https://libsdl.org/projects/SDL_image/
#Hg-Clone: http://hg.libsdl.org/SDL_image/ #Hg-Clone: http://hg.libsdl.org/SDL_image/
Source: https://libsdl.org/projects/SDL_image/release/%name-%version.tar.gz Source: https://github.com/libsdl-org/SDL_image/releases/download/release-%version/SDL2_image-%version.tar.gz
Source2: baselibs.conf Source2: baselibs.conf
Patch1: CVE-2019-13616.patch
BuildRequires: dos2unix BuildRequires: dos2unix
BuildRequires: libjpeg-devel BuildRequires: libjpeg-devel
BuildRequires: libtiff-devel BuildRequires: libtiff-devel
@ -69,9 +68,11 @@ dos2unix *.txt
rm -rf external rm -rf external
%build %build
%configure --disable-png-shared --disable-jpg-shared --disable-tif-shared \ # --disable-*-shared: Link, rather than dlopen.
--disable-webp-shared --disable-static #
make %{?_smp_mflags} %configure --disable-stb-image --disable-png-shared --disable-jpg-shared \
--disable-tif-shared --disable-webp-shared --disable-static
%make_build
%install %install
%make_install %make_install
@ -81,13 +82,14 @@ rm -f "%buildroot/%_libdir"/*.la
%postun -n %lname -p /sbin/ldconfig %postun -n %lname -p /sbin/ldconfig
%files -n %lname %files -n %lname
%license COPYING.txt %license LICENSE.txt
%_libdir/libSDL2_image-2*.so.* %_libdir/libSDL2_image-2*.so.*
%files -n libSDL2_image-devel %files -n libSDL2_image-devel
%doc CHANGES.txt README.txt %doc CHANGES.txt README.txt
%_includedir/SDL2/ %_includedir/SDL2/
%_libdir/libSDL2_image.so %_libdir/libSDL2_image.so
%_libdir/pkgconfig/SDL2_image.pc %_libdir/cmake/
%_libdir/pkgconfig/*.pc
%changelog %changelog