diff --git a/Makefile-gdb.patch b/Makefile-gdb.patch new file mode 100644 index 0000000..bb5b977 --- /dev/null +++ b/Makefile-gdb.patch @@ -0,0 +1,13 @@ +Index: brise-0.35+git20140810/Makefile +=================================================================== +--- brise-0.35+git20140810.orig/Makefile ++++ brise-0.35+git20140810/Makefile +@@ -18,7 +18,7 @@ all: + @cp symbols.yaml ${DATA} + @cp preset/*.yaml ${DATA} + @cp supplement/*.yaml ${DATA} +- rime_deployer --build ${DATA} ++ gdb --eval-command='set height 0' --eval-command='run' --eval-command='bt' --eval-command='quit' --args rime_deployer --build ${DATA} + + # deprecated + essay.kct: diff --git a/brise.changes b/brise.changes index 96ee86e..a2f53c7 100644 --- a/brise.changes +++ b/brise.changes @@ -1,8 +1,3 @@ -------------------------------------------------------------------- -Tue Aug 11 02:30:14 UTC 2015 - i@marguerite.su - -- non-parallel build - ------------------------------------------------------------------- Sun Aug 10 09:14:36 UTC 2014 - i@marguerite.su diff --git a/brise.spec b/brise.spec index 984c5fb..6bd315f 100644 --- a/brise.spec +++ b/brise.spec @@ -24,8 +24,23 @@ License: GPL-3.0+ Group: System/I18n/Chinese Url: https://github.com/lotem/brise Source: brise-%{version}.tar.gz +Patch: Makefile-gdb.patch BuildRequires: kyotocabinet BuildRequires: librime-devel +# debug on OBS +BuildRequires: gdb +#BuildRequires: glibc-debuginfo +#BuildRequires: rime-debuginfo librime0-debuginfo +#BuildRequires: libboost_system1_53_0-debuginfo +#BuildRequires: libglog0-debuginfo +#BuildRequires: libstdc++6-debuginfo libgcc_s1-debuginfo +#BuildRequires: libboost_filesystem1_53_0-debuginfo +#BuildRequires: libboost_regex1_53_0-debuginfo +#BuildRequires: libboost_signals1_53_0-debuginfo +#BuildRequires: libboost_thread1_53_0-debuginfo +#BuildRequires: libyaml-cpp0_5-debuginfo +#BuildRequires: libkyotocabinet16-debuginfo +#BuildRequires: libicu51_2-debuginfo libz1-debuginfo BuildRoot: %{_tmppath}/%{name}-%{version}-build %description @@ -37,6 +52,7 @@ Brise is the input schemas collection of Rime. %prep %setup -q +%patch -p1 %build make -j1