From 3cfb069c5a33e5d7ba39e1cb7c35930c138c3a4f196d8bd00bbabf7731ade376 Mon Sep 17 00:00:00 2001 From: Jan Engelhardt Date: Wed, 10 Jan 2018 23:21:40 +0000 Subject: [PATCH] Add sdl2-symvers.patch OBS-URL: https://build.opensuse.org/package/show/games/SDL2?expand=0&rev=71 --- SDL2.changes | 5 +++ SDL2.spec | 4 ++- sdl2-symvers.patch | 89 ++++++++++++++++++++++++++++++++++++++++++++++ 3 files changed, 97 insertions(+), 1 deletion(-) create mode 100644 sdl2-symvers.patch diff --git a/SDL2.changes b/SDL2.changes index e9ca13a..8193c35 100644 --- a/SDL2.changes +++ b/SDL2.changes @@ -1,3 +1,8 @@ +------------------------------------------------------------------- +Wed Jan 10 22:48:16 UTC 2018 - jengelh@inai.de + +- Add sdl2-symvers.patch. + ------------------------------------------------------------------- Sat Oct 28 21:01:17 UTC 2017 - adam@mizerski.pl diff --git a/SDL2.spec b/SDL2.spec index 72f6470..34bd02d 100644 --- a/SDL2.spec +++ b/SDL2.spec @@ -1,7 +1,7 @@ # # spec file for package SDL2 # -# Copyright (c) 2017 SUSE LINUX GmbH, Nuernberg, Germany. +# Copyright (c) 2018 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 @@ -30,6 +30,7 @@ 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 +Patch1: sdl2-symvers.patch BuildRoot: %{_tmppath}/%{name}-%{version}-build BuildRequires: cmake BuildRequires: dos2unix @@ -103,6 +104,7 @@ library. %prep %setup -q +%patch -P 1 -p1 dos2unix WhatsNew.txt dos2unix TODO.txt dos2unix BUGS.txt diff --git a/sdl2-symvers.patch b/sdl2-symvers.patch new file mode 100644 index 0000000..2bddd6b --- /dev/null +++ b/sdl2-symvers.patch @@ -0,0 +1,89 @@ +From: Jan Engelhardt +Date: 2018-01-10 23:56:12.245827883 +0100 + +Scrape the SDL announcements since 2.0.3 (version in Leap 42.3) and add +some symvers so that zypper knows when to upgrade SDL. +--- + Makefile.in | 2 - + sdl2.sym | 61 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ + 2 files changed, 62 insertions(+), 1 deletion(-) + +Index: SDL2-2.0.7/Makefile.in +=================================================================== +--- SDL2-2.0.7.orig/Makefile.in ++++ SDL2-2.0.7/Makefile.in +@@ -122,7 +122,7 @@ LT_AGE = @LT_AGE@ + LT_CURRENT = @LT_CURRENT@ + LT_RELEASE = @LT_RELEASE@ + LT_REVISION = @LT_REVISION@ +-LT_LDFLAGS = -no-undefined -rpath $(libdir) -release $(LT_RELEASE) -version-info $(LT_CURRENT):$(LT_REVISION):$(LT_AGE) ++LT_LDFLAGS = -no-undefined -rpath $(libdir) -release $(LT_RELEASE) -version-info $(LT_CURRENT):$(LT_REVISION):$(LT_AGE) -Wl,--version-script=sdl2.sym + + all: $(srcdir)/configure Makefile $(objects) $(objects)/$(TARGET) $(objects)/$(SDLMAIN_TARGET) $(objects)/$(SDLTEST_TARGET) + +Index: SDL2-2.0.7/sdl2.sym +=================================================================== +--- /dev/null ++++ SDL2-2.0.7/sdl2.sym +@@ -0,0 +1,61 @@ ++SUSE_2.0.5 { ++global: ++ SDL_DequeueAudio; ++ SDL_GetHintBoolean; ++ SDL_RenderSetIntegerScale; ++ SDL_CreateRGBSurfaceWithFormat; ++ SDL_CreateRGBSurfaceWithFormatFrom; ++ SDL_GetDisplayUsableBounds; ++ SDL_GetWindowBordersSize; ++ SDL_SetWindowResizable; ++ SDL_SetWindowOpacity; ++ SDL_SetWindowModalFor; ++}; ++SUSE_2.0.6 { ++global: ++ SDL_Vulkan_LoadLibrary; ++ SDL_Vulkan_GetVkGetInstanceProcAddr; ++ SDL_Vulkan_GetInstanceExtensions; ++ SDL_Vulkan_CreateSurface; ++ SDL_Vulkan_GetDrawableSize; ++ SDL_Vulkan_UnloadLibrary; ++ SDL_ComposeCustomBlendMode; ++ SDL_HasNEON; ++ SDL_JoystickGetDeviceVendor; ++ SDL_JoystickGetDeviceProduct; ++ SDL_JoystickGetDeviceProductVersion; ++ SDL_JoystickGetDeviceType; ++ SDL_JoystickGetDeviceInstanceID; ++ SDL_JoystickGetVendor; ++ SDL_JoystickGetProduct; ++ SDL_JoystickGetProductVersion; ++ SDL_JoystickGetType; ++ SDL_JoystickGetAxisInitialState; ++ SDL_GameControllerGetVendor; ++ SDL_GameControllerGetProduct; ++ SDL_GameControllerGetProductVersion; ++ SDL_GameControllerNumMappings; ++ SDL_GameControllerMappingForIndex; ++ SDL_LoadFile; ++ SDL_LoadFile_RW; ++ SDL_DuplicateSurface; ++} SUSE_2.0.5; ++SUSE_2.0.7 { ++global: ++ SDL_NewAudioStream; ++ SDL_AudioStreamPut; ++ SDL_AudioStreamGet; ++ SDL_AudioStreamAvailable; ++ SDL_AudioStreamFlush; ++ SDL_AudioStreamClear; ++ SDL_FreeAudioStream; ++ SDL_GetMemoryFunctions; ++ SDL_SetMemoryFunctions; ++ SDL_GetNumAllocations; ++ SDL_LockJoystick; ++ SDL_UnlockJoystick; ++ SDL_SetEventFilter; ++ SDL_GetEventFilter; ++ SDL_AddEventWatch; ++ SDL_DelEventWatch; ++} SUSE_2.0.6;