Accepting request 243700 from home:Andreas_Schwab:Factory

- Build with RPM_OPT_FLAGS
- Don't strip binaries

OBS-URL: https://build.opensuse.org/request/show/243700
OBS-URL: https://build.opensuse.org/package/show/M17N/fcitx?expand=0&rev=100
This commit is contained in:
Marguerite Su 2014-08-06 11:46:23 +00:00 committed by Git OBS Bridge
parent c6cc633d61
commit e90601feee
2 changed files with 9 additions and 8 deletions

View File

@ -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

View File

@ -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