Hello community, here is the log from the commit of package fife for openSUSE:Factory checked in at 2019-09-19 15:51:45 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Comparing /work/SRC/openSUSE:Factory/fife (Old) and /work/SRC/openSUSE:Factory/.fife.new.7948 (New) ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "fife" Thu Sep 19 15:51:45 2019 rev:4 rq:731778 version:0.4.2 Changes: -------- --- /work/SRC/openSUSE:Factory/fife/fife.changes 2019-02-20 14:13:34.910894328 +0100 +++ /work/SRC/openSUSE:Factory/.fife.new.7948/fife.changes 2019-09-19 15:51:48.695281474 +0200 @@ -1,0 +2,5 @@ +Wed Sep 18 17:22:07 UTC 2019 - Simon Puchert <[email protected]> + +- Add swig4.patch: Remove flags that are not supported with swig 4. + +------------------------------------------------------------------- New: ---- swig4.patch ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Other differences: ------------------ ++++++ fife.spec ++++++ --- /var/tmp/diff_new_pack.XBHszx/_old 2019-09-19 15:51:49.923281224 +0200 +++ /var/tmp/diff_new_pack.XBHszx/_new 2019-09-19 15:51:49.927281223 +0200 @@ -27,6 +27,9 @@ Group: Amusements/Games/Other URL: http://www.fifengine.de Source: https://github.com/fifengine/fifengine/archive/%{version}/%{oname}-%{version}.tar.gz +# PATCH-FIX-UPSTREAM swig4.patch -- removed flags that are not supported with swig 4.0 +# See https://github.com/fifengine/fifengine/commit/d14f232f4cd9a00b05d6872957070e8c020f515d +Patch0: swig4.patch BuildRequires: cmake BuildRequires: fifechan-devel BuildRequires: gcc-c++ @@ -90,6 +93,10 @@ %prep %setup -q -n %{oname}-%{version} +# only apply the patch if swig 4 is used (currently: Tumbleweed) +%if 0%{?suse_version} > 1500 +%patch0 -p1 +%endif %build %define __builddir py3 ++++++ swig4.patch ++++++ diff -Nur fifengine-0.4.2/CMakeLists.txt fifengine-0.4.2-patched/CMakeLists.txt --- fifengine-0.4.2/CMakeLists.txt 2019-09-18 19:25:13.294360097 +0200 +++ fifengine-0.4.2-patched/CMakeLists.txt 2019-09-18 18:24:23.708456634 +0200 @@ -897,7 +897,7 @@ find_package(PythonLibs ${PYTHON_VERSION_STRING} EXACT) include_directories(${PYTHON_INCLUDE_PATH}) - set(CMAKE_SWIG_FLAGS -modern -fastdispatch -dirvtable -nosafecstrings -noproxydel -fastproxy -fastinit -fastunpack -fastquery -modernargs -nobuildnone -keyword -w511 -w473 -w404 -w314) + set(CMAKE_SWIG_FLAGS -modern -fastdispatch -dirvtable -noproxydel -fastproxy -fastinit -fastunpack -fastquery -modernargs -keyword -w511 -w473 -w404 -w314) set_source_files_properties("${PROJECT_BINARY_DIR}/fife.i" PROPERTIES CPLUSPLUS ON) set(FIFE_SOURCES ${FIFE_CORE_SRC})
