Hello community,

here is the log from the commit of package SDL.2408 for openSUSE:12.2:Update 
checked in at 2013-12-23 15:22:13
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:12.2:Update/SDL.2408 (Old)
 and      /work/SRC/openSUSE:12.2:Update/.SDL.2408.new (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Package is "SDL.2408"

Changes:
--------
New Changes file:

--- /dev/null   2013-11-25 01:44:08.036031256 +0100
+++ /work/SRC/openSUSE:12.2:Update/.SDL.2408.new/SDL.changes    2013-12-23 
15:22:14.000000000 +0100
@@ -0,0 +1,741 @@
+-------------------------------------------------------------------
+Tue Dec 17 08:20:15 UTC 2013 - jeng...@inai.de
+
+- Add libsdl-1.2.15-resizing.patch: resolve an issue whereby window
+  frame corner resizing emitted no resize events to applications
+  (bnc#855639)
+
+-------------------------------------------------------------------
+Tue Aug 13 12:04:26 UTC 2013 - jeng...@inai.de
+
+- Some metadata spruce-up: add current URLs, softer wildcarding
+  in the files list, more robust make install call
+- Optional signature verification in local builds
+
+-------------------------------------------------------------------
+Sat Jun  8 20:24:50 UTC 2013 - crrodrig...@opensuse.org
+
+- sdl-lfs.patch: Ensure library is built with large file 
+ support/ 64bit off_t in 32bit systems
+
+-------------------------------------------------------------------
+Thu Jan  3 00:31:43 UTC 2013 - crrodrig...@opensuse.org
+
+- USe OS byteswapping macros that are optimized for all platforms
+ directly by GCC.
+
+ - DO not use dlopen to load libraries that otherwise can be linked
+  at build-time, this is a _very_ bad idea, starting with the fact
+  that rpm dependencies do not take account of dlopen and will 
+  break profiling/debugging etc..
+
+- SDL-devel now has strict requires, so it will only pull what
+ it really requires, as it no longer requires metapackages, it is
+ very likely that some packages dont the chain will fail to build
+ those must be fixed in the respective spec files (not here)
+
+-------------------------------------------------------------------
+Tue Sep 18 08:15:46 UTC 2012 - co...@suse.com
+
+- 12.3's Mesa doesn't bundle libGLU anymore
+
+-------------------------------------------------------------------
+Thu Apr 26 15:54:46 UTC 2012 - joop.boo...@opensuse.org
+
+- build version 1.2.15
+  * SDL-1.2.14-wesnoth_clicks.patch is now included in the source code
+  * SDL-1.2.14-joystick-crash.patch is now included in the source code
+
+-------------------------------------------------------------------
+Wed Dec 28 11:27:04 UTC 2011 - co...@suse.com
+
+- add autoconf as buildrequire to avoid implicit dependency
+
+-------------------------------------------------------------------
+Tue Dec 20 10:59:17 UTC 2011 - co...@suse.com
+
+- own aclocal directory, there is no other reason to buildrequire
+  automake
+
+-------------------------------------------------------------------
+Fri Sep 16 12:01:12 UTC 2011 - co...@suse.com
+
+- remove _service, too fragile
+
+-------------------------------------------------------------------
+Sat Jul  2 14:47:46 UTC 2011 - jeng...@medozas.de
+
+- Use %_smp_mflags for parallel building
+- Strip %clean section (not needed on BS)
+
+-------------------------------------------------------------------
+Sun Dec  5 19:31:28 UTC 2010 - pvinc...@yahoo.fr
+
+- applied patch from upstream for joystick related crash [bnc#632271]
+
+-------------------------------------------------------------------
+Mon Aug  9 14:59:56 UTC 2010 - reddw...@opensuse.org
+
+- take patch from upstream to fix Battle for Wesnoth
+
+-------------------------------------------------------------------
+Mon May  3 11:10:53 CEST 2010 - meiss...@suse.de
+
+- disable video for ps3
+
+-------------------------------------------------------------------
+Tue Jan 12 07:46:10 UTC 2010 - meiss...@novell.com
+
+- buildrequire libspe2-devel on ppc
+
+-------------------------------------------------------------------
+Fri Dec 18 12:54:49 CET 2009 - jeng...@medozas.de
+
+- add baselibs.conf as a source
+
+-------------------------------------------------------------------
+Thu Oct 29 13:16:57 UTC 2009 - lnus...@suse.de
+
+- new version 1.2.14
+  * Fixed flicker when resizing the SDL window
+  * Fixed crash in SDL_SetGammaRamp()
+  * Fixed freeze in SDL_memset() with 0 length when assembly code is
+    disabled.
+  * Added SDL_DISABLE_LOCK_KEYS environment variable to enable
+    normal up/down events for Caps-Lock and Num-Lock keys.
+  * Fixed audio quality problem when converting between 22050 Hz and
+    44100 Hz.
+  * Fixed a threading crash when a few threads are rapidly created
+    and complete.
+  * Increased accuracy of alpha blending routines.
+  * Fixed crash loading BMP files saved with the scanlines inverted.
+  * Fixed mouse coordinate clamping if SDL_SetVideoMode() isn't
+    called in response to SDL_VIDEORESIZE event.
+  * Added doxygen documentation for the SDL API headers.
+  * Fixed potential memory corruption due to assembly bug with SDL_revcpy()
+  * Fixed crashes trying to detect SSE features on x86_64 architecture.
+  * Fixed assembly for GCC optimized 50% alpha blending blits.
+  * Added configure option --enable-screensaver, to allow enabling
+    the screensaver by default.
+  * Use XResetScreenSaver() instead of disabling screensaver
+    entirely.
+  * Removed the maximum window size limitation on X11.
+  * Fixed SDL_GL_SWAP_CONTROL on X11.
+  * Fixed setting the X11 window input hint.
+  * Fixed distorted X11 window icon for some visuals.
+  * Fixed detecting X11 libraries for dynamic loading on 64-bit Linux.
+  * SDL_GL_GetAttribute(SDL_GL_SWAP_CONTROL) returns the correct
+    value with GLX_SGI_swap_control.
+  * Added SDL_VIDEO_FULLSCREEN_DISPLAY as a preferred synonym for
+    SDL_VIDEO_FULLSCREEN_HEAD on X11.
+  * The SDL_VIDEO_FULLSCREEN_DISPLAY environment variable can be set
+    to 0 to place fullscreen SDL windows on the first Xinerama
+    screen.
+  * Added the SDL_VIDEO_FBCON_ROTATION environment variable to
+    control output orientation on the framebuffer console.
+  * Fixed DirectFB detection on some Linux distributions.
+  * Added code to use the PS3 SPE processors for YUV conversion on Linux.
+  * Updated ALSA support to the latest stable API
+  * ALSA is now preferred over OSS audio. (SDL_AUDIODRIVER=dsp will
+    restore the previous behavior.)
+  * Improved support for PulseAudio
+  * The Network Audio System support is now dynamically loaded at
+    runtime.
+  * Fixed crash with the MP-8866 Dual USB Joypad on newer Linux
+    kernels.
+  * Fixed crash in SDL_Quit() when a joystick has been unplugged. 
+- most patches obsolete
+- enum patch removed without replacement:
+  http://bugzilla.libsdl.org/show_bug.cgi?id=854
+- dynamically link ALSA instead of dlopen
+
+-------------------------------------------------------------------
+Tue Oct 13 09:45:18 UTC 2009 - co...@novell.com
+
+- fix requires of 32bit package
+
+-------------------------------------------------------------------
+Wed Oct  7 14:50:41 CEST 2009 - prus...@suse.cz
+
+- fix provides and obsoletes [bnc#544957]
+
+-------------------------------------------------------------------
+Wed Sep 16 12:01:23 CEST 2009 - co...@novell.com
+
+- we need to obsolete all old versions of SDL (bnc#539543)
+
+-------------------------------------------------------------------
+Tue Jun 16 08:30:03 CEST 2009 - co...@novell.com
+
+- readd implicit dependencies of arts
+
+-------------------------------------------------------------------
+Mon Jun 15 16:47:55 CEST 2009 - r...@suse.de
+
+- drop arts support (kde3 is fading out and nothing else uses arts) 
+
+-------------------------------------------------------------------
+Wed May 20 15:33:30 CEST 2009 - prus...@suse.cz
+
+- follow Shared Library Policy
+
+-------------------------------------------------------------------
+Fri Feb 20 02:44:15 CET 2009 - crrodrig...@suse.de
+
+- disable all static libraries except loner libSDLmain.a which is now built
+  --with-pic
+
+-------------------------------------------------------------------
+Wed Dec 10 12:34:56 CET 2008 - o...@suse.de
+
+- use Obsoletes: -XXbit only for ppc64 to help solver during distupgrade
+  (bnc#437293)
+
+-------------------------------------------------------------------
+Thu Oct 30 12:34:56 CET 2008 - o...@suse.de
+
+- obsolete old -XXbit packages (bnc#437293)
++++ 544 more lines (skipped)
++++ between /dev/null
++++ and /work/SRC/openSUSE:12.2:Update/.SDL.2408.new/SDL.changes

New:
----
  SDL-1.2.13-x11-keytounicode.patch
  SDL-1.2.15.tar.gz
  SDL-1.2.15.tar.gz.sig
  SDL.changes
  SDL.keyring
  SDL.spec
  SDL_sdl_endian.patch
  baselibs.conf
  libsdl-1.2.15-resizing.patch
  sdl-lfs.patch

++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Other differences:
------------------
++++++ SDL.spec ++++++
#
# spec file for package SDL
#
# Copyright (c) 2013 SUSE LINUX Products GmbH, Nuernberg, Germany.
#
# 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 http://bugs.opensuse.org/
#


%define aalib   0

Name:           SDL
%define lname   libSDL-1_2-0
Version:        1.2.15
Release:        0
Summary:        Simple DirectMedia Layer Library
License:        LGPL-2.1+
Group:          Development/Libraries/X11
Url:            http://libsdl.org/

#DL-URL:        http://libsdl.org/download-1.2.php
Source:         http://libsdl.org/release/%name-%version.tar.gz
Source2:        http://libsdl.org/release/%name-%version.tar.gz.sig
Source3:        %name.keyring
Source4:        baselibs.conf
# PATCH-FIX-OPENSUSE SDL-1.2.13-x11-keytounicode.patch
Patch0:         SDL-1.2.13-x11-keytounicode.patch
Patch1:         SDL_sdl_endian.patch
Patch2:         sdl-lfs.patch
Patch3:         libsdl-1.2.15-resizing.patch
BuildRoot:      %{_tmppath}/%{name}-%{version}-build
BuildRequires:  Mesa-devel
BuildRequires:  Mesa-libGL-devel
BuildRequires:  alsa-devel >= 0.9.0
BuildRequires:  autoconf
BuildRequires:  esound-devel >= 0.2.8
%if 0%{?suse_version} == 1220
BuildRequires:  Mesa-libGLU-devel
%else
BuildRequires:  glu-devel
%endif
BuildRequires:  libICE-devel
BuildRequires:  libXrandr-devel
BuildRequires:  libXrender-devel
BuildRequires:  nasm
BuildRequires:  pkgconfig
BuildRequires:  pkgconfig(libpulse-simple) >= 0.9
%if 0%{?aalib} == 1
BuildRequires:  aalib-devel
%endif
%if 0%{?suse_version} < 1120
BuildRequires:  arts-devel
%endif
%ifarch ppc ppc64
BuildRequires:  libspe2-devel
%endif

%description
This is the "Simple DirectMedia Layer" library. It provides a generic
API for access to audio, keyboard, mouse, and display framebuffer
across multiple platforms.

%package -n %lname
Summary:        Simple DirectMedia Layer Library
Group:          System/Libraries
# SDL was used last in 11.1
Provides:       SDL = %{version}
Obsoletes:      SDL < %{version}
# bnc437293
%ifarch ppc64
Obsoletes:      SDL-64bit
%endif

%description -n %lname
This is the "Simple DirectMedia Layer" library. It provides a generic
API for access to audio, keyboard, mouse, and display framebuffer
across multiple platforms.

%package -n libSDL-devel
Summary:        SDL Library Developer Files
Group:          Development/Libraries/X11
# SDL-devel was used last in 11.1
Provides:       SDL-devel = %{version}
Obsoletes:      SDL-devel < %{version}
# bnc437293
%ifarch ppc64
Obsoletes:      SDL-devel-64bit
%endif
Requires:       %lname = %{version}
Requires:       c_compiler
Requires:       pkgconfig
Requires:       pkgconfig(gl)
Requires:       pkgconfig(glu)
Requires:       pkgconfig(x11)
Requires:       pkgconfig(xproto)

%description -n libSDL-devel
This package contains files needed for development with the SDL
library.

%prep
%{?gpg_verify: %gpg_verify %{S:2}}
%setup -q
%patch0
%patch1
%patch2
%patch -P 3 -p1
# remove the file to provide sufficient evidence that we are
# not using this file during the build [bnc#508111]
rm -f src/joystick/darwin/10.3.9-FIX/IOHIDLib.h

%build
./autogen.sh
%configure \
    --disable-static \
    --with-pic \
    --disable-rpath \
    --disable-alsa-shared \
    --disable-x11-shared \
    --disable-pulseaudio-shared \
    --disable-esd-shared \
    --disable-osmesa-shared \
%if 0%{?aalib}
    --enable-video-aalib \
%endif
    --disable-video-svga \
    --disable-video-ps3
make %{?_smp_mflags}

%install
make install DESTDIR="%buildroot"

rm -f %{buildroot}%{_libdir}/*.la

sed -i -e '/^Libs.private/d' %{buildroot}%{_libdir}/pkgconfig/sdl.pc

%post -n %lname -p /sbin/ldconfig

%postun -n %lname -p /sbin/ldconfig

%files -n %lname
%defattr(-,root,root)
%doc BUGS COPYING CREDITS README README-SDL.txt
%{_libdir}/libSDL-1*.so.*

%files -n libSDL-devel
%defattr(-,root,root)
%doc docs.html README.HG TODO WhatsNew
%doc docs/index.html docs/html/ docs/images/
%{_bindir}/sdl-config
%{_libdir}/libSDL.so
%{_libdir}/libSDLmain.a
%{_includedir}/SDL/
%{_datadir}/aclocal/
%{_mandir}/man3/*.3*
%{_libdir}/pkgconfig/sdl.pc

%changelog
++++++ SDL-1.2.13-x11-keytounicode.patch ++++++
--- src/video/x11/SDL_x11events.c
+++ src/video/x11/SDL_x11events.c
@@ -1223,8 +1223,11 @@
  * sequences (dead accents, compose key sequences) will not work since the
  * state has been irrevocably lost.
  */
+extern DECLSPEC Uint16 SDLCALL X11_KeyToUnicode(SDLKey, SDLMod);
+
 Uint16 X11_KeyToUnicode(SDLKey keysym, SDLMod modifiers)
 {
+       static int warning = 1;
        struct SDL_VideoDevice *this = current_video;
        char keybuf[32];
        int i;
@@ -1232,6 +1235,12 @@
        XKeyEvent xkey;
        Uint16 unicode;
 
+       if ( warning ) {
+               warning = 0;
+               fprintf(stderr, "WARNING: Application is using 
X11_KeyToUnicode().\n");
+               fprintf(stderr, "This is not an official SDL function, please 
report this as a bug.\n");
+       }
+
        if ( !this || !SDL_Display ) {
                return 0;
        }
++++++ SDL.keyring ++++++
pub   1024D/A7763BE6 2001-01-05
uid                  Sam Lantinga <slou...@libsdl.org>
sub   1024g/06F8768C 2001-01-05

-----BEGIN PGP PUBLIC KEY BLOCK-----
Version: GnuPG v2.0.19 (GNU/Linux)

mQGiBDpWOb0RBADQwd3d9mzt6KzqlsgXf9mikBuMbpKzYs1SBKYpdzUs9sRY0CnH
vCQTrL5sI57yKLnqEl6SbIiE75ZwrSWwvUDFFTh35Jew5nPZwv64en2kw2y4qrnJ
kBZCHDSU4KgfUZtoJ25Tmeru5MLNbXxCOoMszO5L5OchwMrGMtmFLRA/bwCgy5Th
d1/vJo+bej9tbgv++SJ05o0D/3MPK7EBoxWkQ0I+ScqOsvSMRQXWc/hXy4lyIp8e
xJByBApkv0LiiT3KlPpq/K2gTlDlCZ/JTt6Rv8Ug0g47R3a0aoz9kfc15UjHdiap
UOfF9MWmmbw59Lyx6+y2e0/C5xWzNOR1G4G5y4RZL/GXrp67xz/0fEhI85R+eASq
AEfSBAC5ZxwnBwyl+h+PXeJYKrPQjSUlgtSAkKp7PNBywwlue1LcSb7j4cc+cmgH
QMVuM883LPE59btNzFTAZjlzzIMiaXf5h9EkDARTGQ1wFiO3V5vIbVLh4kAoNfpT
egy7bYn3UrlbKg3V2DbCdEXm1zQufZzK7T0yenA5Ps8xXX7mNrQhU2FtIExhbnRp
bmdhIDxzbG91a2VuQGxpYnNkbC5vcmc+iF8EExECABcFAjpWOb0FCwcKAwQDFQMC
AxYCAQIXgAASCRAwpZN3p3Y75gdlR1BHAAEB31EAnjxYj6c496zRYru3fzUiPgl9
JjFZAKCOkxoODf9qHbcdmFi1Mq0dTMP3OLkBDQQ6VjnDEAQA++MHQHlE0CPyEEX8
urvzDmsnX9/lGpZeZ1/ECm4QT/04QVdRJReaz1/8ha/JJ3J/jw+Ti3aHxvyLsXR/
dH61wKnqbQ+3UFI0di6Z+a2idPLkUeqnAFWUSLsjSzmYPeTE76Tw9BsBMcfmyYWe
jPZRNz4zNCNR21PNdSRSCq9/3NMAAwYD/1j+HquGLdhhd4jpKZtepybOxArNpZWE
t7DruzN6OdiwognWNrgx59iW2EJeCYgGuI1+3Ega0EjQ9ybPCmfR6SdE0ro2CmYR
JsYoJaHn0l6IArmF0E97jstIVVy3nNI729CFEPIvOHM8+0Hdd6gpNSQtbEFItt5l
XBwc8gr/AtqXiE4EGBECAAYFAjpWOcMAEgkQMKWTd6d2O+YHZUdQRwABAcZlAJ9z
Xumd1FC6YnvEST9eUQbeitjFhQCfYSvy7PxXgSfXedKsZmHWdka01zY=
=62+H
-----END PGP PUBLIC KEY BLOCK-----
++++++ SDL_sdl_endian.patch ++++++
--- include/SDL_endian.h.orig
+++ include/SDL_endian.h
@@ -37,12 +37,11 @@
 #define SDL_LIL_ENDIAN 1234
 #define SDL_BIG_ENDIAN 4321
 /*@}*/
+#include <byteswap.h>
+#include <endian.h>
 
 #ifndef SDL_BYTEORDER  /* Not defined in SDL_config.h? */
-#ifdef __linux__
-#include <endian.h>
 #define SDL_BYTEORDER  __BYTE_ORDER
-#else /* __linux __ */
 #if defined(__hppa__) || \
     defined(__m68k__) || defined(mc68000) || defined(_M_M68K) || \
     (defined(__MIPS__) && defined(__MISPEB__)) || \
@@ -52,7 +51,6 @@
 #else
 #define SDL_BYTEORDER  SDL_LIL_ENDIAN
 #endif
-#endif /* __linux __ */
 #endif /* !SDL_BYTEORDER */
 
 
@@ -62,6 +60,13 @@
 extern "C" {
 #endif
 
+
+static __inline__ Uint16 SDL_Swap16(Uint16 x) { return bswap_16(x); }
+
+static __inline__ Uint32 SDL_Swap32(Uint32 x) { return bswap_32(x); }
+
+static __inline__ Uint64 SDL_Swap64(Uint64 x) { return bswap_64(x); }
+
 /**
  *  @name SDL_Swap Functions
  *  Use inline functions for compilers that support them, and static
@@ -70,139 +75,18 @@ extern "C" {
  *  header should only be included in files that actually use them.
  */
 /*@{*/
-#if defined(__GNUC__) && defined(__i386__) && \
-   !(__GNUC__ == 2 && __GNUC_MINOR__ <= 95 /* broken gcc version */)
-static __inline__ Uint16 SDL_Swap16(Uint16 x)
-{
-       __asm__("xchgb %b0,%h0" : "=q" (x) :  "0" (x));
-       return x;
-}
-#elif defined(__GNUC__) && defined(__x86_64__)
-static __inline__ Uint16 SDL_Swap16(Uint16 x)
-{
-       __asm__("xchgb %b0,%h0" : "=Q" (x) :  "0" (x));
-       return x;
-}
-#elif defined(__GNUC__) && (defined(__powerpc__) || defined(__ppc__))
-static __inline__ Uint16 SDL_Swap16(Uint16 x)
-{
-       int result;
-
-       __asm__("rlwimi %0,%2,8,16,23" : "=&r" (result) : "0" (x >> 8), "r" 
(x));
-       return (Uint16)result;
-}
-#elif defined(__GNUC__) && (defined(__m68k__) && !defined(__mcoldfire__))
-static __inline__ Uint16 SDL_Swap16(Uint16 x)
-{
-       __asm__("rorw #8,%0" : "=d" (x) :  "0" (x) : "cc");
-       return x;
-}
-#else
-static __inline__ Uint16 SDL_Swap16(Uint16 x) {
-       return SDL_static_cast(Uint16, ((x<<8)|(x>>8)));
-}
-#endif
-
-#if defined(__GNUC__) && defined(__i386__) && \
-   !(__GNUC__ == 2 && __GNUC_MINOR__ <= 95 /* broken gcc version */)
-static __inline__ Uint32 SDL_Swap32(Uint32 x)
-{
-       __asm__("bswap %0" : "=r" (x) : "0" (x));
-       return x;
-}
-#elif defined(__GNUC__) && defined(__x86_64__)
-static __inline__ Uint32 SDL_Swap32(Uint32 x)
-{
-       __asm__("bswapl %0" : "=r" (x) : "0" (x));
-       return x;
-}
-#elif defined(__GNUC__) && (defined(__powerpc__) || defined(__ppc__))
-static __inline__ Uint32 SDL_Swap32(Uint32 x)
-{
-       Uint32 result;
-
-       __asm__("rlwimi %0,%2,24,16,23" : "=&r" (result) : "0" (x>>24), "r" 
(x));
-       __asm__("rlwimi %0,%2,8,8,15"   : "=&r" (result) : "0" (result),    "r" 
(x));
-       __asm__("rlwimi %0,%2,24,0,7"   : "=&r" (result) : "0" (result),    "r" 
(x));
-       return result;
-}
-#elif defined(__GNUC__) && (defined(__m68k__) && !defined(__mcoldfire__))
-static __inline__ Uint32 SDL_Swap32(Uint32 x)
-{
-       __asm__("rorw #8,%0\n\tswap %0\n\trorw #8,%0" : "=d" (x) :  "0" (x) : 
"cc");
-       return x;
-}
-#else
-static __inline__ Uint32 SDL_Swap32(Uint32 x) {
-       return SDL_static_cast(Uint32, 
((x<<24)|((x<<8)&0x00FF0000)|((x>>8)&0x0000FF00)|(x>>24)));
-}
-#endif
-
-#ifdef SDL_HAS_64BIT_TYPE
-#if defined(__GNUC__) && defined(__i386__) && \
-   !(__GNUC__ == 2 && __GNUC_MINOR__ <= 95 /* broken gcc version */)
-static __inline__ Uint64 SDL_Swap64(Uint64 x)
-{
-       union { 
-               struct { Uint32 a,b; } s;
-               Uint64 u;
-       } v;
-       v.u = x;
-       __asm__("bswapl %0 ; bswapl %1 ; xchgl %0,%1" 
-               : "=r" (v.s.a), "=r" (v.s.b) 
-               : "0" (v.s.a), "1" (v.s.b)); 
-       return v.u;
-}
-#elif defined(__GNUC__) && defined(__x86_64__)
-static __inline__ Uint64 SDL_Swap64(Uint64 x)
-{
-       __asm__("bswapq %0" : "=r" (x) : "0" (x));
-       return x;
-}
-#else
-static __inline__ Uint64 SDL_Swap64(Uint64 x)
-{
-       Uint32 hi, lo;
-
-       /* Separate into high and low 32-bit values and swap them */
-       lo = SDL_static_cast(Uint32, x & 0xFFFFFFFF);
-       x >>= 32;
-       hi = SDL_static_cast(Uint32, x & 0xFFFFFFFF);
-       x = SDL_Swap32(lo);
-       x <<= 32;
-       x |= SDL_Swap32(hi);
-       return (x);
-}
-#endif
-#else
-/* This is mainly to keep compilers from complaining in SDL code.
- * If there is no real 64-bit datatype, then compilers will complain about
- * the fake 64-bit datatype that SDL provides when it compiles user code.
- */
-#define SDL_Swap64(X)  (X)
-#endif /* SDL_HAS_64BIT_TYPE */
-/*@}*/
 
 /**
  *  @name SDL_SwapLE and SDL_SwapBE Functions
  *  Byteswap item from the specified endianness to the native endianness
  */
 /*@{*/
-#if SDL_BYTEORDER == SDL_LIL_ENDIAN
-#define SDL_SwapLE16(X)        (X)
-#define SDL_SwapLE32(X)        (X)
-#define SDL_SwapLE64(X)        (X)
-#define SDL_SwapBE16(X)        SDL_Swap16(X)
-#define SDL_SwapBE32(X)        SDL_Swap32(X)
-#define SDL_SwapBE64(X)        SDL_Swap64(X)
-#else
-#define SDL_SwapLE16(X)        SDL_Swap16(X)
-#define SDL_SwapLE32(X)        SDL_Swap32(X)
-#define SDL_SwapLE64(X)        SDL_Swap64(X)
-#define SDL_SwapBE16(X)        (X)
-#define SDL_SwapBE32(X)        (X)
-#define SDL_SwapBE64(X)        (X)
-#endif
+#define SDL_SwapLE16(X)        htole16(X)
+#define SDL_SwapLE32(X)        htole32(X)
+#define SDL_SwapLE64(X)        htole64(X)
+#define SDL_SwapBE16(X)        htobe16(X)
+#define SDL_SwapBE32(X)        htobe32(X)
+#define SDL_SwapBE64(X)        htobe64(X)
 /*@}*/
 
 /* Ends C function definitions when using C++ */
++++++ baselibs.conf ++++++
libSDL-1_2-0
  provides "SDL-<targettype> = <version>"
  obsoletes "SDL-<targettype> <= <version>"
libSDL-devel
  provides "SDL-devel-<targettype> = <version>"
  obsoletes "SDL-devel-<targettype> <= <version>"
  requires -libSDL-<targettype>
  requires "libSDL-1_2-0-<targettype> = <version>"
++++++ libsdl-1.2.15-resizing.patch ++++++
From: Andrew Caudwell <acaudw...@gmail.com>
Last-Update: 2012-04-10
References: http://bugzilla.libsdl.org/show_bug.cgi?id=1430
References: http://bugs.debian.org/665779
References: http://bugs.gentoo.org/411539
References: http://bugzilla.novell.com/855639

Revert change that breaks window corner resizing
(Reverts hg commit 5620:ad4ed9f0336f.)

---
 src/video/x11/SDL_x11events.c   |   16 ----------------
 src/video/x11/SDL_x11events_c.h |    5 -----
 src/video/x11/SDL_x11video.c    |    2 --
 3 files changed, 23 deletions(-)

Index: SDL-1.2.15/src/video/x11/SDL_x11events.c
===================================================================
--- SDL-1.2.15.orig/src/video/x11/SDL_x11events.c
+++ SDL-1.2.15/src/video/x11/SDL_x11events.c
@@ -57,12 +57,6 @@ static SDLKey ODD_keymap[256];
 static SDLKey MISC_keymap[256];
 SDLKey X11_TranslateKeycode(Display *display, KeyCode kc);
 
-/*
- Pending resize target for ConfigureNotify (so outdated events don't
- cause inappropriate resize events)
-*/
-int X11_PendingConfigureNotifyWidth = -1;
-int X11_PendingConfigureNotifyHeight = -1;
 
 #ifdef X_HAVE_UTF8_STRING
 Uint32 Utf8ToUcs4(const Uint8 *utf8)
@@ -825,16 +819,6 @@ printf("MapNotify!\n");
 #ifdef DEBUG_XEVENTS
 printf("ConfigureNotify! (resize: %dx%d)\n", xevent.xconfigure.width, 
xevent.xconfigure.height);
 #endif
-               if ((X11_PendingConfigureNotifyWidth != -1) &&
-                   (X11_PendingConfigureNotifyHeight != -1)) {
-                   if ((xevent.xconfigure.width != 
X11_PendingConfigureNotifyWidth) &&
-                       (xevent.xconfigure.height != 
X11_PendingConfigureNotifyHeight)) {
-                           /* Event is from before the resize, so ignore. */
-                           break;
-                   }
-                   X11_PendingConfigureNotifyWidth = -1;
-                   X11_PendingConfigureNotifyHeight = -1;
-               }
                if ( SDL_VideoSurface ) {
                    if ((xevent.xconfigure.width != SDL_VideoSurface->w) ||
                        (xevent.xconfigure.height != SDL_VideoSurface->h)) {
Index: SDL-1.2.15/src/video/x11/SDL_x11events_c.h
===================================================================
--- SDL-1.2.15.orig/src/video/x11/SDL_x11events_c.h
+++ SDL-1.2.15/src/video/x11/SDL_x11events_c.h
@@ -27,8 +27,3 @@
 extern void X11_InitOSKeymap(_THIS);
 extern void X11_PumpEvents(_THIS);
 extern void X11_SetKeyboardState(Display *display, const char *key_vec);
-
-/* Variables to be exported */
-extern int X11_PendingConfigureNotifyWidth;
-extern int X11_PendingConfigureNotifyHeight;
-
Index: SDL-1.2.15/src/video/x11/SDL_x11video.c
===================================================================
--- SDL-1.2.15.orig/src/video/x11/SDL_x11video.c
+++ SDL-1.2.15/src/video/x11/SDL_x11video.c
@@ -1177,8 +1177,6 @@ SDL_Surface *X11_SetVideoMode(_THIS, SDL
                        current = NULL;
                        goto done;
                }
-               X11_PendingConfigureNotifyWidth = width;
-               X11_PendingConfigureNotifyHeight = height;
        } else {
                if (X11_CreateWindow(this,current,width,height,bpp,flags) < 0) {
                        current = NULL;
++++++ sdl-lfs.patch ++++++
--- configure.in.orig
+++ configure.in
@@ -56,6 +56,8 @@ fi
 dnl Check for tools
 AC_PROG_LIBTOOL
 AC_PROG_CC
+AC_USE_SYSTEM_EXTENSIONS
+AC_SYS_LARGEFILE
 AC_PROG_CXX
 AC_PROG_INSTALL
 AC_PROG_MAKE_SET
-- 
To unsubscribe, e-mail: opensuse-commit+unsubscr...@opensuse.org
For additional commands, e-mail: opensuse-commit+h...@opensuse.org

Reply via email to