]> git.pld-linux.org Git - packages/wesnoth.git/commitdiff
- unified cmake args, strip -DNDEBUG from flags instead of using Release build type... auto/th/wesnoth-1.14.16-1
authorJakub Bogusz <qboosh@pld-linux.org>
Sun, 11 Apr 2021 19:34:16 +0000 (21:34 +0200)
committerJakub Bogusz <qboosh@pld-linux.org>
Sun, 11 Apr 2021 19:34:16 +0000 (21:34 +0200)
- now debuginfo is created

wesnoth.spec

index 2943ebf66536d7d3201bc70f4050a2248ea96142..0f9526e0d9dcb8c15d117bed07ec28f3826cef09 100644 (file)
@@ -119,8 +119,6 @@ This package contains the data files for Wesnoth.
 %description data -l pl.UTF-8
 Ten pakiet zawiera pliki danych dla gry Wesnoth.
 
-%global debug_package %{nil}
-
 %prep
 %setup -q
 
@@ -135,16 +133,17 @@ Ten pakiet zawiera pliki danych dla gry Wesnoth.
 %build
 install -d build
 cd build
-%cmake \
-       .. \
-       -DCMAKE_BUILD_TYPE="Release" \
-       -DENABLE_STRICT_COMPILATION="off" \
+# override *FLAGS to remove -DNDEBUG (wesnoth depends on asserts)
+CFLAGS="%{rpmcflags}"
+CXXFLAGS="%{rpmcxxflags}"
+%cmake .. \
+       -DENABLE_STRICT_COMPILATION=OFF \
        -DBINDIR="%{_bindir}" \
        -DMANDIR="%{_mandir}" \
        -DLOCALEDIR="%{_localedir}" \
-       %{!?with_server:-DENABLE_SERVER="off"} \
-       %{?with_server:-DENABLE_CAMPAIGN_SERVER="on"} \
-       %{!?with_fribidi:-DENABLE_FRIBIDI="off"}
+       %{!?with_server:-DENABLE_SERVER=OFF} \
+       %{?with_server:-DENABLE_CAMPAIGN_SERVER=ON} \
+       %{!?with_fribidi:-DENABLE_FRIBIDI=OFF}
 
 %{__make}
 
This page took 0.198744 seconds and 4 git commands to generate.