From e8e4f2afd0919d2d8c9866df5530cfe2def0c40adcc6219df9a4046fd8a8607d Mon Sep 17 00:00:00 2001 From: Jan Engelhardt Date: Fri, 23 Aug 2024 06:50:05 +0000 Subject: [PATCH 1/2] [info=29053f313f3c86927bedce5adb67c06f95f4050ac40444ff7766c154ef88f9cb] OBS-URL: https://build.opensuse.org/package/show/games/SDL2_image?expand=0&rev=47 --- .gitattributes | 23 ++++++ .gitignore | 1 + SDL2_image-2.8.2.tar.gz | 3 + SDL2_image.changes | 171 ++++++++++++++++++++++++++++++++++++++++ SDL2_image.spec | 97 +++++++++++++++++++++++ _scmsync.obsinfo | 4 + build.specials.obscpio | 3 + 7 files changed, 302 insertions(+) create mode 100644 .gitattributes create mode 100644 .gitignore create mode 100644 SDL2_image-2.8.2.tar.gz create mode 100644 SDL2_image.changes create mode 100644 SDL2_image.spec create mode 100644 _scmsync.obsinfo create mode 100644 build.specials.obscpio diff --git a/.gitattributes b/.gitattributes new file mode 100644 index 0000000..9b03811 --- /dev/null +++ b/.gitattributes @@ -0,0 +1,23 @@ +## Default LFS +*.7z filter=lfs diff=lfs merge=lfs -text +*.bsp filter=lfs diff=lfs merge=lfs -text +*.bz2 filter=lfs diff=lfs merge=lfs -text +*.gem filter=lfs diff=lfs merge=lfs -text +*.gz filter=lfs diff=lfs merge=lfs -text +*.jar filter=lfs diff=lfs merge=lfs -text +*.lz filter=lfs diff=lfs merge=lfs -text +*.lzma filter=lfs diff=lfs merge=lfs -text +*.obscpio filter=lfs diff=lfs merge=lfs -text +*.oxt filter=lfs diff=lfs merge=lfs -text +*.pdf filter=lfs diff=lfs merge=lfs -text +*.png filter=lfs diff=lfs merge=lfs -text +*.rpm filter=lfs diff=lfs merge=lfs -text +*.tbz filter=lfs diff=lfs merge=lfs -text +*.tbz2 filter=lfs diff=lfs merge=lfs -text +*.tgz filter=lfs diff=lfs merge=lfs -text +*.ttf filter=lfs diff=lfs merge=lfs -text +*.txz filter=lfs diff=lfs merge=lfs -text +*.whl filter=lfs diff=lfs merge=lfs -text +*.xz filter=lfs diff=lfs merge=lfs -text +*.zip filter=lfs diff=lfs merge=lfs -text +*.zst filter=lfs diff=lfs merge=lfs -text diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..57affb6 --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +.osc diff --git a/SDL2_image-2.8.2.tar.gz b/SDL2_image-2.8.2.tar.gz new file mode 100644 index 0000000..8358966 --- /dev/null +++ b/SDL2_image-2.8.2.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:8f486bbfbcf8464dd58c9e5d93394ab0255ce68b51c5a966a918244820a76ddc +size 11362515 diff --git a/SDL2_image.changes b/SDL2_image.changes new file mode 100644 index 0000000..fdc439a --- /dev/null +++ b/SDL2_image.changes @@ -0,0 +1,171 @@ +------------------------------------------------------------------- +Mon Jan 1 21:44:53 UTC 2024 - Jan Engelhardt + +- Update to release 2.8.2 + * Fixed crash loading LBM images + * Automatically set the colorkey for indexed PNG images with + transparency + +------------------------------------------------------------------- +Wed Dec 13 19:25:51 UTC 2023 - Jan Engelhardt + +- Update to release 2.8.1 + * Indexed PNG images with alpha have blending automatically enabled + * Fixed a crash in the 32-bit webp DLLs on Windows + +------------------------------------------------------------------- +Tue Dec 5 22:36:53 UTC 2023 - Jan Engelhardt + +- Update to release 2.8.0 + * Updated image decoding libraries + * Added support for loading WEBP animations + * PNG images with a palette are loaded as SDL surfaces with a + palette + +------------------------------------------------------------------- +Tue Feb 7 00:35:11 UTC 2023 - Jan Engelhardt + +- Update to release 2.6.3 + * Fixed loading of 4-bit .ico files + +------------------------------------------------------------------- +Mon Sep 5 07:42:27 UTC 2022 - Dominique Leuenberger + +- Add back Provides: SDL2_image = %version-%release to the library + package: the python deps somewhat depend on that to not have to + know about all soversion changes. + +------------------------------------------------------------------- +Sat Aug 20 08:13:36 UTC 2022 - Jan Engelhardt + +- Update to release 2.6.2 + * Build updates for non-Linux platforms +- Enable AVIF, JXL + +------------------------------------------------------------------- +Mon Aug 1 21:46:55 UTC 2022 - Jan Engelhardt + +- Update to release 2.6.1 + * Fixing grayscale image loading using the built-in stb_image + (openSUSE uses libjpg/libpng, not stb) + +------------------------------------------------------------------- +Fri Jul 8 20:20:20 UTC 2022 - Jan Engelhardt + +- 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) +- Rename -devel subpackage based on SRPM name +- Drop baselibs.conf (no SDL2_ttf-dependent Tumbleweed packages + themselves have baselibs). + +------------------------------------------------------------------- +Fri Aug 23 14:04:59 UTC 2019 - Michael Gorse + +- Add CVE-2019-13616.patch: fix heap buffer overflow when reading + a crafted bmp file (boo#1141844 CVE-2019-13616). + +------------------------------------------------------------------- +Fri Aug 23 09:53:45 UTC 2019 - Jan Engelhardt + +- Update to new upstream release 2.0.5 + * Fixed TALOS-2019-0820 CVE-2019-5051 + * Fixed TALOS-2019-0821 CVE-2019-5052 + * Fixed TALOS-2019-0841 CVE-2019-5057 boo#1143763 + * Fixed TALOS-2019-0842 CVE-2019-5058 boo#1143764 + * Fixed TALOS-2019-0843 CVE-2019-5059 boo#1143766 + * Fixed TALOS-2019-0844 CVE-2019-5060 boo#1143768 +- Not mentioned by upstream, but issues seemingly further fixed: + * Fixed CVE-2019-12218 boo#1135789 + * Fixed CVE-2019-12217 boo#1135787 + * Fixed CVE-2019-12220 boo#1135806 + * Fixed CVE-2019-12221 boo#1135796 + * Fixed CVE-2019-12222 boo#1136101 + +------------------------------------------------------------------- +Wed Nov 7 20:56:03 UTC 2018 - Jan Engelhardt + +- Update to new upstream release 2.0.4 + * Fixed memory issues in the XCF loader: + * CVE-2018-3839 boo#1089087 TALOS-2018-0521 + * CVE-2018-3977 boo#1114519 TALOS-2018-0645 + +------------------------------------------------------------------- +Thu Mar 8 00:53:28 UTC 2018 - jengelh@inai.de + +- Update to new upstream release 2.0.3 + * Fixed a number of security issues: + * TALOS-2017-0488/CVE-2017-12122/boo#1084256: + IMG_LoadLBM_RW code execution vulnerability + * TALOS-2017-0489/CVE-2017-14440/boo#1084257: + ILBM CMAP parsing code execution vulnerability + * TALOS-2017-0490/CVE-2017-14441/boo#1084282: + ICO pitch handling code execution vulnerability + * TALOS-2017-0491/CVE-2017-14442/boo#1084304: + Image palette population code execution vulnerability + * TALOS-2017-0497/CVE-2017-14448/boo#1084303: + load_xcf_tile_rle decompression code execution + * TALOS-2017-0498/CVE-2017-14449/boo#1084297: + do_layer_surface double free vulnerability + * TALOS-2017-0499/CVE-2017-14450/boo#1084288: + LWZ decompression buffer overflow vulnerability + +------------------------------------------------------------------- +Tue Feb 13 22:21:26 UTC 2018 - jengelh@inai.de + +- Update BuildRequires + +------------------------------------------------------------------- +Fri Feb 9 17:11:54 UTC 2018 - jengelh@inai.de + +- Update to new upstream release 2.0.2 + * Added simple SVG image support based on Nano SVG + * Fixed security vulnerability in XCF image loader + [boo#1062777, CVE-2017-2887] + * Added optional support for loading images using Windows + Imaging Component + * Added libpng save support for much smaller 8-bit images + * Added JPG save support: IMG_SaveJPG() and IMG_SaveJPG_RW() + +------------------------------------------------------------------- +Sun Jan 10 17:13:52 UTC 2016 - mailaender@opensuse.org + +- Update to version 2.0.1 + * Fixed support for transparency in XPM files + * Fixed memory leak in webp image loading + * Fixed loading BMP files with large BITMAPINFOHEADER structures + * Fixed building with libpng 1.4 +- Removed bigendian_undefined_s.patch + +------------------------------------------------------------------- +Thu Jan 8 09:34:57 UTC 2015 - jengelh@inai.de + +- Improve package summary and description. Drop --with-pic which + is enabled implicitly anyway, remove redundant Requires. + +------------------------------------------------------------------- +Thu Sep 12 10:42:27 UTC 2013 - dvaleev@suse.com + +- Fix undefined s on BigEndian platforms (bigendian_undefined_s.patch) + +------------------------------------------------------------------- +Tue Aug 13 12:04:26 UTC 2013 - jengelh@inai.de + +- Some metadata spruce-up: add current URLs, softer wildcarding + in the files list, more robust make install call + +------------------------------------------------------------------- +Tue Aug 13 11:27:54 UTC 2013 - prusnak@opensuse.org + +- created package (version 2.0.0) - based on SDL_image package + diff --git a/SDL2_image.spec b/SDL2_image.spec new file mode 100644 index 0000000..b432b3b --- /dev/null +++ b/SDL2_image.spec @@ -0,0 +1,97 @@ +# +# spec file for package SDL2_image +# +# Copyright (c) 2024 SUSE LLC +# +# All modifications and additions to the file contributed by third parties +# remain the property of their copyright owners, unless otherwise agreed +# upon. The license for this file, and modifications and additions to the +# file, is the same license as for the pristine package itself (unless the +# license for the pristine package is not an Open Source License, in which +# case the license is the MIT License). An "Open Source License" is a +# license that conforms to the Open Source Definition (Version 1.9) +# published by the Open Source Initiative. + +# Please submit bugfixes or comments via https://bugs.opensuse.org/ +# + + +Name: SDL2_image +%define lname libSDL2_image-2_0-0 +Version: 2.8.2 +Release: 0 +Summary: Simple DirectMedia Layer 2 image loading library +License: Zlib +Group: Development/Libraries/X11 +URL: https://libsdl.org/projects/SDL_image/ + +#Hg-Clone: http://hg.libsdl.org/SDL_image/ +Source: https://github.com/libsdl-org/SDL_image/releases/download/release-%version/SDL2_image-%version.tar.gz +BuildRequires: SDL2-devel >= 2.24 +BuildRequires: dos2unix +BuildRequires: libjpeg-devel +BuildRequires: libtiff-devel +BuildRequires: pkg-config +BuildRequires: pkgconfig(libavif) +BuildRequires: pkgconfig(libjxl) +BuildRequires: pkgconfig(libpng) +BuildRequires: pkgconfig(libwebp) + +%description +This is a simple library to load images of various formats as SDL +surfaces. This library supports the BMP, PPM, PCX, GIF, JPEG, PNG, +TIFF and WEBP formats. + +%package -n %lname +Summary: Simple DirectMedia Layer 2 image loading library +Group: System/Libraries +Provides: SDL2_image = %version-%release + +%description -n %lname +This is a simple library to load images of various formats as SDL +surfaces. This library supports the BMP, PPM, PCX, GIF, JPEG, PNG, +TIFF and WEBP formats. + +%package devel +Summary: Development files for the SDL2 image loader library +Group: Development/Libraries/X11 +Requires: %lname = %version +Obsoletes: libSDL2_image-devel < %version-%release +Provides: libSDL2_image-devel = %version-%release + +%description devel +This is a simple library to load images of various formats as SDL +surfaces. This library supports the BMP, PPM, PCX, GIF, JPEG, PNG, +TIFF and WEBP formats. + +%prep +%autosetup -p1 +dos2unix *.txt +rm -rf external + +%build +# --disable-*-shared: Link, rather than dlopen. +# +%configure --disable-stb-image --disable-png-shared --disable-jpg-shared \ + --disable-tif-shared --disable-webp-shared --disable-static +%make_build + +%install +%make_install +rm -f "%buildroot/%_libdir"/*.la + +%post -n %lname -p /sbin/ldconfig +%postun -n %lname -p /sbin/ldconfig + +%files -n %lname +%license LICENSE.txt +%_libdir/libSDL2_image-2*.so.* + +%files devel +%doc CHANGES.txt README.txt +%_includedir/SDL2/ +%_libdir/libSDL2_image.so +%_libdir/cmake/ +%_libdir/pkgconfig/*.pc + +%changelog diff --git a/_scmsync.obsinfo b/_scmsync.obsinfo new file mode 100644 index 0000000..1d402a7 --- /dev/null +++ b/_scmsync.obsinfo @@ -0,0 +1,4 @@ +mtime: 1704281347 +commit: 29053f313f3c86927bedce5adb67c06f95f4050ac40444ff7766c154ef88f9cb +url: https://src.opensuse.org/jengelh/SDL2_image +revision: master diff --git a/build.specials.obscpio b/build.specials.obscpio new file mode 100644 index 0000000..77cc255 --- /dev/null +++ b/build.specials.obscpio @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:b9345e6db8946a893a07ee5cca26afde858dd3cc9cb7b7c0ade835f6b835f861 +size 256 From 8291d20dda59df462a6ac7ab4d858880d628e2a41e37be9fd833c8dfdc3e1e27 Mon Sep 17 00:00:00 2001 From: OBS User unknown Date: Wed, 18 Dec 2024 00:52:25 +0000 Subject: [PATCH 2/2] [info=6b1ad4b2f408c4a96050c7f4b6454be2daeef87b1a82d65cded4cd2b0aa79ced] OBS-URL: https://build.opensuse.org/package/show/games/SDL2_image?expand=0&rev=48 --- SDL2_image-2.8.2.tar.gz | 3 --- SDL2_image-2.8.3.tar.gz | 3 +++ SDL2_image.changes | 6 ++++++ SDL2_image.spec | 5 ++++- _scmsync.obsinfo | 4 ++-- build.specials.obscpio | 2 +- 6 files changed, 16 insertions(+), 7 deletions(-) delete mode 100644 SDL2_image-2.8.2.tar.gz create mode 100644 SDL2_image-2.8.3.tar.gz diff --git a/SDL2_image-2.8.2.tar.gz b/SDL2_image-2.8.2.tar.gz deleted file mode 100644 index 8358966..0000000 --- a/SDL2_image-2.8.2.tar.gz +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:8f486bbfbcf8464dd58c9e5d93394ab0255ce68b51c5a966a918244820a76ddc -size 11362515 diff --git a/SDL2_image-2.8.3.tar.gz b/SDL2_image-2.8.3.tar.gz new file mode 100644 index 0000000..676ed8b --- /dev/null +++ b/SDL2_image-2.8.3.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:4b000f2c238ce380807ee0cb68a0ef005871691ece8646dbf4f425a582b1bb22 +size 11577541 diff --git a/SDL2_image.changes b/SDL2_image.changes index fdc439a..c76fa81 100644 --- a/SDL2_image.changes +++ b/SDL2_image.changes @@ -1,3 +1,9 @@ +------------------------------------------------------------------- +Tue Dec 17 23:27:31 UTC 2024 - Jan Engelhardt + +- Update to release 2.8.3 + * Fixed handling of grayscale images with alpha + ------------------------------------------------------------------- Mon Jan 1 21:44:53 UTC 2024 - Jan Engelhardt diff --git a/SDL2_image.spec b/SDL2_image.spec index b432b3b..eca165b 100644 --- a/SDL2_image.spec +++ b/SDL2_image.spec @@ -18,7 +18,7 @@ Name: SDL2_image %define lname libSDL2_image-2_0-0 -Version: 2.8.2 +Version: 2.8.3 Release: 0 Summary: Simple DirectMedia Layer 2 image loading library License: Zlib @@ -28,9 +28,11 @@ URL: https://libsdl.org/projects/SDL_image/ #Hg-Clone: http://hg.libsdl.org/SDL_image/ Source: https://github.com/libsdl-org/SDL_image/releases/download/release-%version/SDL2_image-%version.tar.gz BuildRequires: SDL2-devel >= 2.24 +BuildRequires: automake BuildRequires: dos2unix BuildRequires: libjpeg-devel BuildRequires: libtiff-devel +BuildRequires: libtool BuildRequires: pkg-config BuildRequires: pkgconfig(libavif) BuildRequires: pkgconfig(libjxl) @@ -68,6 +70,7 @@ TIFF and WEBP formats. %autosetup -p1 dos2unix *.txt rm -rf external +autoreconf -fi %build # --disable-*-shared: Link, rather than dlopen. diff --git a/_scmsync.obsinfo b/_scmsync.obsinfo index 1d402a7..48572d4 100644 --- a/_scmsync.obsinfo +++ b/_scmsync.obsinfo @@ -1,4 +1,4 @@ -mtime: 1704281347 -commit: 29053f313f3c86927bedce5adb67c06f95f4050ac40444ff7766c154ef88f9cb +mtime: 1734483122 +commit: 6b1ad4b2f408c4a96050c7f4b6454be2daeef87b1a82d65cded4cd2b0aa79ced url: https://src.opensuse.org/jengelh/SDL2_image revision: master diff --git a/build.specials.obscpio b/build.specials.obscpio index 77cc255..e46525d 100644 --- a/build.specials.obscpio +++ b/build.specials.obscpio @@ -1,3 +1,3 @@ version https://git-lfs.github.com/spec/v1 -oid sha256:b9345e6db8946a893a07ee5cca26afde858dd3cc9cb7b7c0ade835f6b835f861 +oid sha256:bbff3ca612e157818ffff858fb9fcf65275b081522ec0cf5eda3a7e4123eca88 size 256