File anki.spec of Package anki
norootforbuild
Name: anki
Summary: Anki is a spaced repetition system (SRS)
Version: 0.9.9.8.5
Release: 0
License: GNU GPL v3
Group: Productivity/Other
Url: http://ichi2.net/anki/
Source: %{name}-%{version}.tar.bz2
BuildRoot: %{_tmppath}/%{name}-%{version}-build
BuildRequires: fdupes python-qt4 python-setuptools python-sqlalchemy update-desktop-files
Requires: python-sqlalchemy python-sqlite2 python-simplejson python-numpy python-matplotlib
Requires: python-qt4
Requires: python-qt4-devel
Requires: libqt4
Requires: libQtWebKit4
%py_requires
%description
Anki is a spaced repetition system (SRS). It helps you remember things by
intelligently scheduling reviews, so that you can learn a lot of information
with the minimum amount of effort.
Features:
* Review anywhere. Anki lets you study on your own computer, online, on
your cell phone or other portable devices like an iPod touch or Zaurus.
* Synchronization features let you keep your information across
multiple computers.
* Shared decks allow you to divide work between friends, and let teachers
push material to many students at once.
* Intelligent scheduler based on the SuperMemo SM2 algorithm.
* Flexible fact/card model that allows you to generate multiple views of
information, and input information in the format you wish. You're not
limited to predefined styles.
* Audio and images are fully supported
* Fully extensible, with a large number of plugins already available
* Optimized for speed, and will handle reviewing decks of 100,000+ cards
with no problems
* Clean, user-friendly interface
* Free and Open Source
%prep
%setup -q
%build
pushd libanki
%{__python} setup.py build
popd
%{__python} setup.py build
%install
pushd libanki
%{__python} setup.py install --root=%{buildroot} --prefix=%{_prefix}
popd
%{__python} setup.py install --root=%{buildroot} --prefix=%{_prefix}
%__install -Dm 0644 anki.desktop %{buildroot}%{_datadir}/applications/anki.desktop
%__install -Dm 0644 icons/anki.png %{buildroot}%{_datadir}/pixmaps/anki.png
%suse_update_desktop_file -r anki Education Languages
for lang_file in libanki ankiqt;
do
%find_lang $lang_file anki.lang
done
%fdupes %{buildroot}
%clean
test "%{buildroot}" != "/" && %__rm -rf %{buildroot}
%files -f anki.lang
%defattr(-,root,root)
%doc README
%{_bindir}/anki
%{py_sitedir}/anki
%{py_sitedir}/ankiqt
%{py_sitedir}/anki-%{version}-py%{py_ver}.egg-info
%{py_sitedir}/ankiqt-%{version}-py%{py_ver}.egg-info
%{_datadir}/applications/anki.desktop
%{_datadir}/pixmaps/anki.png
%changelog
* Sat May 09 2009 bitshuffler #suse@irc.freenode.org
- Updated to 0.9.9.7.9
* Fri May 01 2009 bitshuffler #suse@irc.freenode.org
- Updated to 0.9.9.7.7
* Wed Apr 22 2009 bitshuffler #suse@irc.freenode.org
- Updated to 0.9.9.7.5
* Sun Jul 27 2008 bitshuffler #suse@irc.freenode.org
- Initial RPM