- Add pyaudio as requirement for audio recording
- Add upstream patch to prevent anki hanging during audio recording
This commit is contained in:
parent
bc05b6aac7
commit
98c7de88de
2 changed files with 36 additions and 1 deletions
25
0001-don-t-specify-an-input-index-by-default.patch
Normal file
25
0001-don-t-specify-an-input-index-by-default.patch
Normal file
|
|
@ -0,0 +1,25 @@
|
|||
From 554d7021e0f413186e0124a264fcb3c59ef92bad Mon Sep 17 00:00:00 2001
|
||||
From: Damien Elmes <git@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
|
||||
|
||||
12
anki.spec
12
anki.spec
|
|
@ -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 called spaced repetition.
|
|||
%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 13 2010 Christian Krause <chkr@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@fedoraproject.org> - 0.9.9.8.6-2
|
||||
- Add a patch to fix a crash when sys tray icon is enabled (BZ 567672)
|
||||
|
||||
|
|
|
|||
Reference in a new issue