From 6d50cabc5b6f993f39dc041b3d3e1a884d64aec500f4c353a8e164c30b26e9b2 Mon Sep 17 00:00:00 2001 From: Jan Engelhardt <jengelh@inai.de> Date: Sun, 10 Jan 2016 17:49:45 +0000 Subject: [PATCH] Accepting request 352805 from home:Mailaender:branches:games new upstream version and rpmlint warnings fixed OBS-URL: https://build.opensuse.org/request/show/352805 OBS-URL: https://build.opensuse.org/package/show/games/SDL2_image?expand=0&rev=16 --- SDL2_image-2.0.0.tar.gz | 3 --- SDL2_image-2.0.1.tar.gz | 3 +++ SDL2_image.changes | 10 ++++++++++ SDL2_image.spec | 10 +++++----- bigendian_undefined_s.patch | 22 ---------------------- 5 files changed, 18 insertions(+), 30 deletions(-) delete mode 100644 SDL2_image-2.0.0.tar.gz create mode 100644 SDL2_image-2.0.1.tar.gz delete mode 100644 bigendian_undefined_s.patch diff --git a/SDL2_image-2.0.0.tar.gz b/SDL2_image-2.0.0.tar.gz deleted file mode 100644 index 9137dad..0000000 --- a/SDL2_image-2.0.0.tar.gz +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:b29815c73b17633baca9f07113e8ac476ae66412dec0d29a5045825c27a47234 -size 8398016 diff --git a/SDL2_image-2.0.1.tar.gz b/SDL2_image-2.0.1.tar.gz new file mode 100644 index 0000000..10ebc6b --- /dev/null +++ b/SDL2_image-2.0.1.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:3a3eafbceea5125c04be585373bfd8b3a18f259bd7eae3efc4e6d8e60e0d7f64 +size 7797848 diff --git a/SDL2_image.changes b/SDL2_image.changes index a4b91f6..5d36ef4 100644 --- a/SDL2_image.changes +++ b/SDL2_image.changes @@ -1,3 +1,13 @@ +------------------------------------------------------------------- +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 diff --git a/SDL2_image.spec b/SDL2_image.spec index d4a282c..a179415 100644 --- a/SDL2_image.spec +++ b/SDL2_image.spec @@ -1,7 +1,7 @@ # # spec file for package SDL2_image # -# Copyright (c) 2015 SUSE LINUX Products GmbH, Nuernberg, Germany. +# Copyright (c) 2016 SUSE LINUX GmbH, Nuernberg, Germany. # # All modifications and additions to the file contributed by third parties # remain the property of their copyright owners, unless otherwise agreed @@ -18,7 +18,7 @@ Name: SDL2_image %define lname libSDL2_image-2_0-0 -Version: 2.0.0 +Version: 2.0.1 Release: 0 Summary: SDL2 image loading library License: Zlib @@ -28,7 +28,7 @@ Url: http://libsdl.org/projects/SDL_image/ #Hg-Clone: http://hg.libsdl.org/SDL_image/ Source: http://libsdl.org/projects/SDL_image/release/%name-%version.tar.gz Source2: baselibs.conf -Patch1: bigendian_undefined_s.patch +BuildRequires: dos2unix BuildRequires: libjpeg-devel BuildRequires: libtiff-devel BuildRequires: pkg-config @@ -43,7 +43,7 @@ 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 +Summary: Simple DirectMedia Layer 2 – Image Loading Library Group: System/Libraries Provides: SDL2_image = %version-%release @@ -65,7 +65,7 @@ TIFF and WEBP formats. %prep %setup -q -%patch -P 1 -p1 +dos2unix *.txt rm -rf external %build diff --git a/bigendian_undefined_s.patch b/bigendian_undefined_s.patch deleted file mode 100644 index 5d82bde..0000000 --- a/bigendian_undefined_s.patch +++ /dev/null @@ -1,22 +0,0 @@ -From: Dinar Valeev <dvaleev@suse.com> -Date: Thu, 12 Sep 2013 12:51:31 +0200 - -build: resolve compile abort on big-endian platforms - -s was not declared. - -Addition by jengelh: Make it unsigned, because that is the -only thing to make sense with the >> operator. - -Index: SDL2_image-2.0.0/IMG_webp.c -=================================================================== ---- SDL2_image-2.0.0.orig/IMG_webp.c -+++ SDL2_image-2.0.0/IMG_webp.c -@@ -242,6 +242,7 @@ SDL_Surface *IMG_LoadWEBP_RW(SDL_RWops * - Bmask = 0x00FF0000; - Amask = (features.has_alpha) ? 0xFF000000 : 0; - #else -+ unsigned int s; - s = (features.has_alpha) ? 0 : 8; - Rmask = 0xFF000000 >> s; - Gmask = 0x00FF0000 >> s;