Hello community,

here is the log from the commit of package FAudio for openSUSE:Leap:15.2 
checked in at 2020-03-26 05:41:41
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Leap:15.2/FAudio (Old)
 and      /work/SRC/openSUSE:Leap:15.2/.FAudio.new.3160 (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Package is "FAudio"

Thu Mar 26 05:41:41 2020 rev:2 rq:788168 version:20.03

Changes:
--------
--- /work/SRC/openSUSE:Leap:15.2/FAudio/FAudio.changes  2020-01-15 
14:44:20.097158982 +0100
+++ /work/SRC/openSUSE:Leap:15.2/.FAudio.new.3160/FAudio.changes        
2020-03-26 05:41:58.795297479 +0100
@@ -1,0 +2,6 @@
+Wed Mar 18 23:30:58 UTC 2020 - Christophe Giboudeaux <christo...@krop.fr>
+
+- Update to 20.03. No changelog
+- Update faudio-older-sdl2.patch.
+
+-------------------------------------------------------------------

Old:
----
  FNA-1903.zip

New:
----
  FNA-2003.zip

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

Other differences:
------------------
++++++ FAudio.spec ++++++
--- /var/tmp/diff_new_pack.sI8euP/_old  2020-03-26 05:42:00.295298256 +0100
+++ /var/tmp/diff_new_pack.sI8euP/_new  2020-03-26 05:42:00.299298259 +0100
@@ -1,7 +1,7 @@
 #
-# spec file for package openal-soft
+# spec file for package FAudio
 #
-# Copyright (c) 2018 SUSE LINUX GmbH, Nuernberg, Germany.
+# Copyright (c) 2020 SUSE LLC
 #
 # All modifications and additions to the file contributed by third parties
 # remain the property of their copyright owners, unless otherwise agreed
@@ -12,25 +12,26 @@
 # 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/
+# Please submit bugfixes or comments via https://bugs.opensuse.org/
 #
 
 
+%define realver 2003
 Name:           FAudio
-%define realver 1903
-Version:        19.03
+Version:        20.03
 Release:        0
 Summary:        A reimplementation of the XNA Game Studio libraries
 License:        Zlib
 Group:          Development/Libraries/C and C++
-URL:            https://fna-xna.github.io/
-Source0:        http://fna.flibitijibibo.com/archive/FNA-%realver.zip
+URL:            https://fna-xna.github.io
+Source0:        http://fna.flibitijibibo.com/archive/FNA-%{realver}.zip
 Source1:        baselibs.conf
 Patch0:                faudio-older-sdl2.patch
-BuildRequires:  unzip
 BuildRequires:  cmake
 BuildRequires:  gcc-c++
-BuildRequires:  SDL2-devel
+BuildRequires:  pkgconfig
+BuildRequires:  unzip
+BuildRequires:  cmake(sdl2)
 
 %description
 FNA is a reimplementation of the Microsoft XNA Game Studio 4.0 Refresh 
libraries.
@@ -42,7 +43,6 @@
 %description -n libFAudio0
 FNA is a reimplementation of the Microsoft XNA Game Studio 4.0 Refresh 
libraries.
 
-
 %package devel
 Summary:        FAudio Development Libraries
 Group:          Development/Languages/C and C++
@@ -51,16 +51,18 @@
 %description devel
 FNA is a reimplementation of the Microsoft XNA Game Studio 4.0 Refresh 
libraries.
 
-
 %prep
 %setup -q -n FNA
+%if 0%{?suse_version} < 1550
 %patch0 -p1
+%endif
 
 %build
 cd lib/FAudio
 %cmake \
   -DCMAKE_BUILD_TYPE=Release 
-make %{?_smp_mflags}
+
+%cmake_build
 
 %install
 cd lib/FAudio

++++++ faudio-older-sdl2.patch ++++++
--- /var/tmp/diff_new_pack.sI8euP/_old  2020-03-26 05:42:00.363298291 +0100
+++ /var/tmp/diff_new_pack.sI8euP/_new  2020-03-26 05:42:00.363298291 +0100
@@ -1,7 +1,28 @@
-Index: FNA/lib/FAudio/src/FAudio_internal.h
-===================================================================
---- FNA.orig/lib/FAudio/src/FAudio_internal.h
-+++ FNA/lib/FAudio/src/FAudio_internal.h
+diff --git a/lib/FAudio/CMakeLists.txt b/lib/FAudio/CMakeLists.txt
+index dca4563..1aaa437 100644
+--- a/lib/FAudio/CMakeLists.txt
++++ b/lib/FAudio/CMakeLists.txt
+@@ -181,14 +181,14 @@ else()
+               endif()
+       elseif (TARGET SDL2)
+               message(STATUS "using TARGET SDL2")
+-              target_link_libraries(FAudio PUBLIC SDL2)
++              target_link_libraries(FAudio PUBLIC SDL2 m)
+               if(INSTALL_MINGW_DEPENDENCIES)
+                       install_shared_libs(TARGETS SDL2 DESTINATION bin 
NO_INSTALL_SYMLINKS REQUIRED)
+               endif()
+       else()
+               message(STATUS "no TARGET SDL2::SDL2, or SDL2, using variables")
+               target_include_directories(FAudio PUBLIC 
"$<BUILD_INTERFACE:${SDL2_INCLUDE_DIRS}>")
+-              target_link_libraries(FAudio PUBLIC ${SDL2_LIBRARIES})
++              target_link_libraries(FAudio PUBLIC ${SDL2_LIBRARIES} m)
+               if(INSTALL_MINGW_DEPENDENCIES)
+                       install_shared_libs(${SDL2_LIBRARIES} DESTINATION bin 
NO_INSTALL_SYMLINKS)
+               endif()
+diff --git a/lib/FAudio/src/FAudio_internal.h 
b/lib/FAudio/src/FAudio_internal.h
+index 555a945..e16ce72 100644
+--- a/lib/FAudio/src/FAudio_internal.h
++++ b/lib/FAudio/src/FAudio_internal.h
 @@ -111,7 +111,7 @@
  #define FAudio_floor(x) SDL_floor(x)
  #define FAudio_abs(x) SDL_abs(x)
@@ -11,24 +32,16 @@
  
  #define FAudio_cosf(x) SDL_cosf(x)
  #define FAudio_sinf(x) SDL_sinf(x)
-Index: FNA/lib/FAudio/CMakeLists.txt
-===================================================================
---- FNA.orig/lib/FAudio/CMakeLists.txt
-+++ FNA/lib/FAudio/CMakeLists.txt
-@@ -163,14 +163,14 @@ if (TARGET SDL2::SDL2)
-       endif()
- elseif (TARGET SDL2)
-       message(STATUS "using TARGET SDL2")
--      target_link_libraries(FAudio PUBLIC SDL2)
-+      target_link_libraries(FAudio PUBLIC SDL2 m)
-       if(INSTALL_MINGW_DEPENDENCIES)
-               install_shared_libs(bin SDL2)
-       endif()
- else()
-       message(STATUS "no TARGET SDL2::SDL2, or SDL2, using variables")
-       target_include_directories(FAudio PUBLIC 
$<BUILD_INTERFACE:${SDL2_INCLUDE_DIRS}>)
--      target_link_libraries(FAudio PUBLIC ${SDL2_LIBRARIES})
-+      target_link_libraries(FAudio PUBLIC ${SDL2_LIBRARIES} m)
-       if(INSTALL_MINGW_DEPENDENCIES)
-               install_shared_libs(bin ${SDL2_LIBRARIES})
-       endif()
+diff --git a/lib/FAudio/src/FAudio_platform_sdl2.c 
b/lib/FAudio/src/FAudio_platform_sdl2.c
+index 08a8feb..e9462f7 100644
+--- a/lib/FAudio/src/FAudio_platform_sdl2.c
++++ b/lib/FAudio/src/FAudio_platform_sdl2.c
+@@ -100,8 +100,6 @@ iosretry:
+ #else
+ #ifdef _WIN32
+ #error Windows absolutely positively needs SDL 2.0.9!
+-#else
+-#pragma message("Please update to SDL 2.0.9 ASAP!")
+ #endif
+               0
+ #endif


Reply via email to