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}