rpms/libsamplerate/devel libsamplerate-0.1.7-test.patch, NONE, 1.1 libsamplerate.spec, 1.20, 1.21

Lubomir Rintel lkundrak at fedoraproject.org
Fri May 8 09:26:46 UTC 2009


Author: lkundrak

Update of /cvs/pkgs/rpms/libsamplerate/devel
In directory cvs1.fedora.phx.redhat.com:/tmp/cvs-serv4961

Modified Files:
	libsamplerate.spec 
Added Files:
	libsamplerate-0.1.7-test.patch 
Log Message:
* Fri May 08 2009 Lubomir Rintel <lkundrak at v3.sk> - 0.1.7-1
- New upstream release


libsamplerate-0.1.7-test.patch:

--- NEW FILE libsamplerate-0.1.7-test.patch ---
Make the test pass, having no clue what am I changing at all.

Lubomir Rintel <lkundrak at v3.sk>

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,


Index: libsamplerate.spec
===================================================================
RCS file: /cvs/pkgs/rpms/libsamplerate/devel/libsamplerate.spec,v
retrieving revision 1.20
retrieving revision 1.21
diff -u -p -r1.20 -r1.21
--- libsamplerate.spec	8 May 2009 08:51:08 -0000	1.20
+++ libsamplerate.spec	8 May 2009 09:26:16 -0000	1.21
@@ -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 
 
 %prep
 %setup -q
+%patch0 -p1 -b .test
 
 
 %build




More information about the scm-commits mailing list