From c33a8ec7fcbc142b8397c3d60b3a856ec10a1ec7 Mon Sep 17 00:00:00 2001 From: Lubomir Rintel Date: May 08 2009 09:26:16 +0000 Subject: - New upstream release --- diff --git a/.cvsignore b/.cvsignore index 9b51db9..1d14853 100644 --- a/.cvsignore +++ b/.cvsignore @@ -1 +1 @@ -libsamplerate-0.1.6.tar.gz +libsamplerate-0.1.7.tar.gz diff --git a/libsamplerate-0.1.7-test.patch b/libsamplerate-0.1.7-test.patch new file mode 100644 index 0000000..ad803e8 --- /dev/null +++ b/libsamplerate-0.1.7-test.patch @@ -0,0 +1,16 @@ +Make the test pass, having no clue what am I changing at all. + +Lubomir Rintel + +diff -up libsamplerate-0.1.7/tests/callback_test.c.test libsamplerate-0.1.7/tests/callback_test.c +--- libsamplerate-0.1.7/tests/callback_test.c.test 2009-05-08 11:21:42.000000000 +0200 ++++ libsamplerate-0.1.7/tests/callback_test.c 2009-05-08 11:21:09.000000000 +0200 +@@ -137,7 +137,7 @@ callback_test (int converter, double src + + src_state = src_delete (src_state) ; + +- if (fabs (read_total - src_ratio * ARRAY_LEN (test_callback_data.data)) > src_ratio) ++ if (fabs (read_total - src_ratio * ARRAY_LEN (test_callback_data.data)) > ceil (src_ratio)) + { printf ("\n\nLine %d : input / output length mismatch.\n\n", __LINE__) ; + printf (" input len : %d\n", ARRAY_LEN (test_callback_data.data)) ; + printf (" output len : %ld (should be %g +/- %g)\n\n", read_total, diff --git a/libsamplerate.spec b/libsamplerate.spec index 481119f..89f1559 100644 --- a/libsamplerate.spec +++ b/libsamplerate.spec @@ -6,6 +6,7 @@ License: GPLv2+ Group: System Environment/Libraries URL: http://www.mega-nerd.com/SRC/ Source0: http://www.mega-nerd.com/SRC/%{name}-%{version}.tar.gz +Patch0: libsamplerate-0.1.7-test.patch BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-buildroot-%(%{__id_u} -n) BuildRequires: libsndfile-devel >= 1.0.6, pkgconfig @@ -33,6 +34,7 @@ This package contains development files for %{name} %prep %setup -q +%patch0 -p1 -b .test %build diff --git a/sources b/sources index c3b19fe..34caad6 100644 --- a/sources +++ b/sources @@ -1 +1 @@ -4ccc22b21f469aac672dda8eb1320ea4 libsamplerate-0.1.6.tar.gz +ad093e60ec44f0a60de8e29983ddbc0f libsamplerate-0.1.7.tar.gz