From f79d1e26dfbdd919f97aac2891ef505ff5629244 Mon Sep 17 00:00:00 2001 From: liweiganga Date: Mon, 20 Mar 2023 14:06:02 +0800 Subject: [PATCH] feat: fix strip and enable debug --- sunpinyin.spec | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/sunpinyin.spec b/sunpinyin.spec index 41a51a6..b6e9329 100644 --- a/sunpinyin.spec +++ b/sunpinyin.spec @@ -1,12 +1,12 @@ # TODO: fixes scons to generate debug information -%global debug_package %{nil} +#%%global debug_package %{nil} %define _xinputconf %{_sysconfdir}/X11/xinit/xinput.d/xsunpinyin.conf %define gitdate 20190805 Name: sunpinyin Version: 3.0.0 -Release: 2 +Release: 3 Summary: A statistical language model based Chinese input method engine License: LGPL-2.0-only or CDDL-1.0 or CC-BY-SA-3.0 Obsoletes: %{name}-data-le @@ -46,6 +46,9 @@ pushd raw tar xvf lm_sc.3gm.arpa-20140820.tar.bz2 tar xvf dict.utf8-20131214.tar.bz2 popd +# fix strip +sed -i 's|-Wall|-Wall -s -g|' SConstruct SConstruct.python3 SConstruct.scons +sed -i 's|-std=c++11|-std=c++11 -s -g|' SConstruct SConstruct.python3 SConstruct.scons %build # export CFLAGS, CXXFLAGS, LDFLAGS, ... @@ -85,6 +88,9 @@ install -m0644 AUTHORS TODO %{buildroot}%{_docdir}/%{name} %{_includedir}/sunpinyin* %changelog +* Mon Mar 20 2023 liweiganga - 3.0.0-3 +- feat: fix strip and enable debug + * Wed Jul 27 2022 yaoxin - 3.0.0-2 - License compliance rectification