Accepting request 287345 from multimedia:libs

1

OBS-URL: https://build.opensuse.org/request/show/287345
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/libsamplerate?expand=0&rev=33
This commit is contained in:
Dominique Leuenberger 2015-02-27 10:07:49 +00:00 committed by Git OBS Bridge
commit 92d02440eb
2 changed files with 11 additions and 7 deletions

View File

@ -1,3 +1,9 @@
-------------------------------------------------------------------
Mon Feb 23 14:17:04 UTC 2015 - rguenther@suse.com
- Avoid running configure twice and using -fprofile-generate or
-fprofile-use for compiling configure tests when profiling.
-------------------------------------------------------------------
Tue Aug 26 12:14:15 UTC 2014 - fcrozat@suse.com

View File

@ -1,7 +1,7 @@
#
# spec file for package libsamplerate
#
# Copyright (c) 2014 SUSE LINUX Products GmbH, Nuernberg, Germany.
# Copyright (c) 2015 SUSE LINUX Products GmbH, Nuernberg, Germany.
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
@ -82,19 +82,17 @@ This package includes the example programs for libsamplerate.
%ifnarch %arm aarch64
# ARM has no working profile support in gcc atm
profiledir=`mktemp -d`
export CFLAGS="%optflags %cflags_profile_generate=$profiledir"
%configure --disable-silent-rules --disable-static
make %{?_smp_mflags}
make %{?_smp_mflags} CFLAGS="%optflags %cflags_profile_generate=$profiledir"
pushd tests
make check
popd
make clean
export CFLAGS="%optflags %cflags_profile_feedback=$profiledir"
make %{?_smp_mflags} CFLAGS="%optflags %cflags_profile_feedback=$profiledir"
%else
export CFLAGS="%optflags"
%endif
%configure --disable-silent-rules --disable-static
make %{?_smp_mflags}
make %{?_smp_mflags} CFLAGS="%optflags"
%endif
%check
pushd tests