From e4bc59bbbdc23910227b95faff2aaa013bc85463742fced753b048d8b34cf3a7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Cristian=20Rodr=C3=ADguez?= Date: Sat, 5 May 2012 16:02:12 +0000 Subject: [PATCH] Accepting request 116485 from home:elvigia:branches:multimedia:libs - build with profiling rnabled OBS-URL: https://build.opensuse.org/request/show/116485 OBS-URL: https://build.opensuse.org/package/show/multimedia:libs/libsamplerate?expand=0&rev=19 --- libsamplerate.changes | 5 +++++ libsamplerate.spec | 11 +++++++++-- 2 files changed, 14 insertions(+), 2 deletions(-) diff --git a/libsamplerate.changes b/libsamplerate.changes index f7bb592..844f561 100644 --- a/libsamplerate.changes +++ b/libsamplerate.changes @@ -1,3 +1,8 @@ +------------------------------------------------------------------- +Sat May 5 14:58:55 UTC 2012 - crrodriguez@opensuse.org + +- build with profiling rnabled + ------------------------------------------------------------------- Tue Mar 6 11:17:23 UTC 2012 - saschpe@suse.de diff --git a/libsamplerate.spec b/libsamplerate.spec index e49c6d8..f250124 100644 --- a/libsamplerate.spec +++ b/libsamplerate.spec @@ -27,7 +27,6 @@ Source0: http://www.mega-nerd.com/SRC/libsamplerate-%{version}.tar.gz Source1: baselibs.conf BuildRequires: fftw3-devel BuildRequires: libsndfile-devel -BuildRequires: libtool BuildRequires: pkgconfig BuildRoot: %{_tmppath}/%{name}-%{version}-build @@ -76,8 +75,16 @@ This package includes the example programs for libsamplerate. %prep %setup -q - %build +profiledir=`mktemp -d` +export CFLAGS="%optflags %cflags_profile_generate=$profiledir" +%configure --disable-silent-rules --disable-static +make %{?_smp_mflags} +pushd tests +make check +popd +make clean +export CFLAGS="%optflags %cflags_profile_feedback=$profiledir" %configure --disable-silent-rules --disable-static make %{?_smp_mflags}