From ce2a16fa0be8dfdc868e2529d015da958e3662f232732473191d35a470af4e82 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tom=C3=A1=C5=A1=20Chv=C3=A1tal?= Date: Thu, 17 Sep 2015 12:05:52 +0000 Subject: [PATCH] - Make debuginfo's smaller on IBS. OBS-URL: https://build.opensuse.org/package/show/LibreOffice:Factory/libreoffice?expand=0&rev=326 --- libreoffice.changes | 5 +++++ libreoffice.spec | 5 +++++ 2 files changed, 10 insertions(+) diff --git a/libreoffice.changes b/libreoffice.changes index eb23f27..a0ff2ce 100644 --- a/libreoffice.changes +++ b/libreoffice.changes @@ -1,3 +1,8 @@ +------------------------------------------------------------------- +Thu Sep 17 12:05:26 UTC 2015 - tchvatal@suse.com + +- Make debuginfo's smaller on IBS. + ------------------------------------------------------------------- Thu Sep 17 08:20:21 UTC 2015 - tchvatal@suse.com diff --git a/libreoffice.spec b/libreoffice.spec index 9d3acf6..8dfa536 100644 --- a/libreoffice.spec +++ b/libreoffice.spec @@ -1034,7 +1034,12 @@ fi # make sure that JAVA_HOME is set correctly source %{_sysconfdir}/profile.d/alljava.sh # use RPM_OPT_FLAGS, ... +%if 0%{?is_opensuse} != 1 +# ON IBS remove big debugsymbols as we simply consume too much space +ARCH_FLAGS="`echo %{optflags} | sed -e 's/^-g /-g1 /g' -e 's/ -g / -g1 /g' -e 's/ -g$/ -g1/g'`" +%else ARCH_FLAGS="%{optflags}" +%endif CFLAGS="$ARCH_FLAGS" CXXFLAGS="$ARCH_FLAGS" export ARCH_FLAGS CFLAGS CXXFLAGS