Name: anki
Version: 0.9.9.8.5
Release: alt1
Summary: Anki is a spaced repetition system (SRS)
Group: Games
License: GPLv3
Packager: Andrew Clark <andyc@altlinux.org>
Url: http://ichi2.net/anki/
Source: http://anki.googlecode.com/files/%name-%version.tgz

BuildRequires(pre): rpm-build-python

# Automatically added by buildreq on Sun Jan 10 2010 (-bi)
BuildRequires: mercurial python-module-PyQt4 python-module-Reportlab python-module-SQLAlchemy python-module-config python-module-cups python-module-cupshelpers python-module-lxml python-module-mutagen python-module-numpy python-module-pysqlite2 python-module-pytz python-module-simplejson python-module-xlwt

%description
Anki is a spaced repetition system (SRS). It helps you remember
things by intelligently scheduling flashcards, so that you can
learn a lot of information with a minimum amount of effort.

%prep
%setup -q -n %name-%version

%build
%python_build

pushd libanki
%python_build
popd

%install
%python_install

pushd libanki
%python_install
popd

mkdir -p %buildroot%_desktopdir
mkdir -p %buildroot%_niconsdir
install -pD -m 644 %_builddir/%name-%version/%name.desktop %buildroot%_desktopdir/%name.desktop
install -pD -m 644 %_builddir/%name-%version/icons/%name.png %buildroot%_niconsdir/%name.png

%find_lang %name

%files -f %name.lang
%doc ChangeLog COPYING CREDITS README README.development README.translating
%_bindir/*
%python_sitelibdir/%name/*
%python_sitelibdir/ankiqt/*
%_desktopdir/*
%_niconsdir/*

%changelog
* Sat Jan 9 2010 Andrew Clark <andyc@altlinux.org> 0.9.9.8.5-alt1
- initial build for ALT.

