rpms/anki/F-12 0001-don-t-specify-an-input-index-by-default.patch, NONE, 1.1 anki.spec, 1.15, 1.16

chkr chkr at fedoraproject.org
Wed May 19 22:16:44 UTC 2010


Author: chkr

Update of /cvs/pkgs/rpms/anki/F-12
In directory cvs01.phx2.fedoraproject.org:/tmp/cvs-serv5789

Modified Files:
	anki.spec 
Added Files:
	0001-don-t-specify-an-input-index-by-default.patch 
Log Message:
* Thu May 20 2010 Christian Krause <chkr at fedoraproject.org> - 0.9.9.8.6-3
- Add pyaudio as requirement for audio recording
- Add upstream patch to prevent anki hanging during audio recording


0001-don-t-specify-an-input-index-by-default.patch:
 sound.py |    3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)

--- NEW FILE 0001-don-t-specify-an-input-index-by-default.patch ---
>From 554d7021e0f413186e0124a264fcb3c59ef92bad Mon Sep 17 00:00:00 2001
From: Damien Elmes <git at ichi2.net>
Date: Wed, 21 Apr 2010 13:31:59 +0900
Subject: [PATCH] don't specify an input index by default

---
 anki/sound.py |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/anki/sound.py b/anki/sound.py
index 9943a83..2272bd2 100644
--- a/anki/sound.py
+++ b/anki/sound.py
@@ -238,7 +238,7 @@ try:
     PYAU_FORMAT = pyaudio.paInt16
     PYAU_CHANNELS = 1
     PYAU_RATE = 44100
-    PYAU_INPUT_INDEX = 0
+    PYAU_INPUT_INDEX = None
 except:
     pass
 
-- 
1.6.2.5



Index: anki.spec
===================================================================
RCS file: /cvs/pkgs/rpms/anki/F-12/anki.spec,v
retrieving revision 1.15
retrieving revision 1.16
diff -u -p -r1.15 -r1.16
--- anki.spec	28 Feb 2010 18:30:54 -0000	1.15
+++ anki.spec	19 May 2010 22:16:44 -0000	1.16
@@ -2,7 +2,7 @@
 
 Name:		anki
 Version:	0.9.9.8.6
-Release:	2%{?dist}
+Release:	3%{?dist}
 Summary:	Flashcard program for using space repetition learning
 
 Group:		Amusements/Games
@@ -23,6 +23,8 @@ Source1:	generate-anki-tarball.sh
 Patch0:		anki-0.9.9.8.6-noupdate.patch
 # https://bugzilla.redhat.com/show_bug.cgi?id=567672
 Patch1:		0001-Fix-crash-with-enabled-sys-tray-icon.patch
+# Upstream patch to prevent anki hanging during audio recording
+Patch2:		0001-don-t-specify-an-input-index-by-default.patch
 BuildRoot:	%{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
 BuildRequires:	python-devel, python-setuptools, python-sqlalchemy
 BuildRequires:	desktop-file-utils, PyQt4
@@ -30,6 +32,7 @@ Requires:	qt4, PyQt4
 Requires:	python-sqlalchemy, python-simplejson, python-sqlite2
 Requires:	python-matplotlib
 Requires:	pygame, python-BeautifulSoup
+Requires:	pyaudio
 BuildArch:	noarch
 
 %description
@@ -41,6 +44,9 @@ as possible. Anki is based on a theory c
 %setup -q
 %patch0 -p1 -b .noupdate 
 %patch1 -p1 -b .trayicon_crash
+pushd libanki
+%patch2 -p1 -b .pyaudio_fix
+popd
 
 %build
 pushd libanki
@@ -110,6 +116,10 @@ rm -rf %{buildroot}
 %{_datadir}/pixmaps/%{name}.png
 
 %changelog
+* Thu May 20 2010 Christian Krause <chkr at fedoraproject.org> - 0.9.9.8.6-3
+- Add pyaudio as requirement for audio recording
+- Add upstream patch to prevent anki hanging during audio recording
+
 * Sun Feb 28 2010 Christian Krause <chkr at fedoraproject.org> - 0.9.9.8.6-2
 - Add a patch to fix a crash when sys tray icon is enabled (BZ 567672)
 



More information about the scm-commits mailing list