SHA256
1
0
forked from pool/xz

Accepting request 87269 from Base:System

re-submit #86758 including changelog (forwarded request 87178 from rudi_m)

OBS-URL: https://build.opensuse.org/request/show/87269
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/xz?expand=0&rev=34
This commit is contained in:
Lars Vogdt 2011-10-11 15:07:29 +00:00 committed by Git OBS Bridge
commit 805d015884
2 changed files with 11 additions and 3 deletions

View File

@ -1,3 +1,8 @@
-------------------------------------------------------------------
Sun Oct 9 15:25:02 UTC 2011 - sweet_f_a@gmx.de
- rewrite last broken arm portability changes
------------------------------------------------------------------- -------------------------------------------------------------------
Fri Sep 30 20:31:59 UTC 2011 - crrodriguez@opensuse.org Fri Sep 30 20:31:59 UTC 2011 - crrodriguez@opensuse.org

View File

@ -34,6 +34,9 @@ Obsoletes: lzma < %version
%if 0%{?suse_version} < 1130 %if 0%{?suse_version} < 1130
%define do_profiling 0 %define do_profiling 0
%endif %endif
%ifarch %{arm}
%define do_profiling 0
%endif
%if 0%{?lang_package:1} > 0 %if 0%{?lang_package:1} > 0
Recommends: %name-lang Recommends: %name-lang
@ -87,14 +90,14 @@ compiling programs using the LZMA library.
%setup -q %setup -q
%build %build
%ifnarch %{arm} && %{do_profiling} %if %{do_profiling}
profiledir=$(mktemp -d) profiledir=$(mktemp -d)
trap "rm -rf $profiledir" EXIT trap "rm -rf $profiledir" EXIT
export CFLAGS="%optflags %{cflags_profile_generate}=$profiledir" export CFLAGS="%optflags %{cflags_profile_generate}=$profiledir"
%endif %endif
%configure --libdir=/%{_lib} --disable-static --with-pic --docdir=%_docdir/%name || cat config.log %configure --libdir=/%{_lib} --disable-static --with-pic --docdir=%_docdir/%name
make %{?_smp_mflags} make %{?_smp_mflags}
%ifnarch %{arm} && %{do_profiling} %if %{do_profiling}
time make check time make check
make clean make clean
export CFLAGS="%optflags %{cflags_profile_feedback}=$profiledir" export CFLAGS="%optflags %{cflags_profile_feedback}=$profiledir"