diff --git a/fcitx.changes b/fcitx.changes index e7b48fb..83a8021 100644 --- a/fcitx.changes +++ b/fcitx.changes @@ -1,3 +1,9 @@ +------------------------------------------------------------------- +Tue Aug 5 16:22:59 UTC 2014 - schwab@suse.de + +- Build with RPM_OPT_FLAGS +- Don't strip binaries + ------------------------------------------------------------------- Sat Jun 7 16:41:30 UTC 2014 - i@marguerite.su diff --git a/fcitx.spec b/fcitx.spec index 2bbfef4..4b522f9 100644 --- a/fcitx.spec +++ b/fcitx.spec @@ -397,6 +397,9 @@ cd build # fix dlopen-ed library name cmake .. \ + -DCMAKE_C_FLAGS="$RPM_OPT_FLAGS" \ + -DCMAKE_CXX_FLAGS="$RPM_OPT_FLAGS" \ + -DCMAKE_VERBOSE_MAKEFILE=On \ -DCMAKE_BUILD_TYPE=Release \ -DOPENCC_LIBRARY_FILENAME=libopencc.so.1 \ -DENCHANT_LIBRARY_FILENAME=libenchant.so.1 \ @@ -526,14 +529,6 @@ fdupes -n -q -r %{buildroot} %endif %endif -# strip unnessary libraries -%{__strip} %{buildroot}%{_libdir}/%{name}/*.so -%{__strip} %{buildroot}%{_libdir}/libfcitx*.so.* -%{__strip} %{buildroot}%{_libdir}/gtk-2.0/*/immodules/im-%{name}.so -%if 0%{?suse_version} >= 1140 || 0%{?fedora_version} -%{__strip} %{buildroot}%{_libdir}/gtk-3.0/*/immodules/im-%{name}.so -%endif - %post gtk2 %gtk2_immodule_post