From: Jan Rękorajski Date: Fri, 20 Oct 2023 21:53:13 +0000 (+0200) Subject: - disable Werror to prevent benign warning breaking build on non x86_64 archs X-Git-Tag: auto/th/performous-1.3.0-1 X-Git-Url: http://git.pld-linux.org/?p=packages%2Fperformous.git;a=commitdiff_plain;h=master - disable Werror to prevent benign warning breaking build on non x86_64 archs --- diff --git a/no-Werror.patch b/no-Werror.patch new file mode 100644 index 0000000..9724f18 --- /dev/null +++ b/no-Werror.patch @@ -0,0 +1,15 @@ +--- performous-1.3.0/game/CMakeLists.txt~ 2023-08-21 21:48:26.000000000 +0200 ++++ performous-1.3.0/game/CMakeLists.txt 2023-10-20 23:51:23.466946951 +0200 +@@ -311,12 +311,6 @@ + set_target_properties(performous PROPERTIES OUTPUT_NAME "Performous") + endif() + +-if(WIN32 AND MSVC) +-# target_compile_options(performous PUBLIC /WX) +-else() +- target_compile_options(performous PUBLIC -Werror) +-endif() +- + # Generate config.hh + configure_file("${CMAKE_CURRENT_SOURCE_DIR}/config.cmake.hh" "${CMAKE_CURRENT_BINARY_DIR}/config.hh" @ONLY) + include_directories("${CMAKE_CURRENT_BINARY_DIR}") diff --git a/performous.spec b/performous.spec index 8e19d78..a7424ad 100644 --- a/performous.spec +++ b/performous.spec @@ -12,6 +12,7 @@ Source1: compact_enc_det.tar.xz # Source1-md5: c4af58e784fe054b787254acf5c1af12 Patch0: ced-no-forced-cxx11.patch Patch1: find-ced.patch +Patch2: no-Werror.patch URL: http://performous.org/ BuildRequires: ImageMagick-c++-devel BuildRequires: SDL2-devel >= 2 @@ -24,8 +25,10 @@ BuildRequires: fontconfig-devel BuildRequires: gettext-tools BuildRequires: glew-devel BuildRequires: glibmm-devel +BuildRequires: gmock-devel BuildRequires: help2man BuildRequires: libepoxy-devel >= 1.2 +BuildRequires: libfmt-devel BuildRequires: libjpeg-devel BuildRequires: libpng-devel BuildRequires: librsvg-devel @@ -61,6 +64,7 @@ wykrywane. %setup -q -a1 %patch0 -p1 %patch1 -p1 +%patch2 -p1 %build cd compact_enc_det