1
0
forked from pool/SDL2_image

Accepting request 354422 from games

Automatic submission by obs-autosubmit

OBS-URL: https://build.opensuse.org/request/show/354422
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/SDL2_image?expand=0&rev=6
This commit is contained in:
Dominique Leuenberger 2016-01-21 22:42:48 +00:00 committed by Git OBS Bridge
commit 6e6c8046a4
5 changed files with 18 additions and 30 deletions

View File

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

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

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

View File

@ -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

View File

@ -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

View File

@ -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;