File mnemosyne.spec of Package mnemosyne
#
# spec file for package mnemosyne (Version 1.2.2)
#
# Copyright (c) 2010 SUSE LINUX Products GmbH, Nuernberg, Germany.
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
# upon. The license for this file, and modifications and additions to the
# file, is the same license as for the pristine package itself (unless the
# license for the pristine package is not an Open Source License, in which
# case the license is the MIT License). An "Open Source License" is a
# license that conforms to the Open Source Definition (Version 1.9)
# published by the Open Source Initiative.
# Please submit bugfixes or comments via http://bugs.opensuse.org/
#
Name: mnemosyne
Summary: Flash-card Learning Tool
Version: 1.2.2
Release: 0
Source0: %{name}-%{version}.tar.bz2
# PATCH-FIX-OPENSUSE mnemosyne-1.2.2-no_pil.patch lazy.kent@opensuse.org
# -- don't use PIL
Patch0: mnemosyne-1.2.2-no_pil.patch
URL: http://www.mnemosyne-proj.org/
License: GPL-2.0
Group: Productivity/Other
BuildRequires: update-desktop-files
BuildRequires: fdupes
BuildRequires: python2-setuptools
Requires: python-pygame
Requires: python-kde3
PreReq: python = 2.7
BuildRoot: %{_tmppath}/%{name}-%{version}-build
BuildArch: noarch
%description
Mnemosyne resembles a traditional flash-card program but with an
important twist: it uses a sophisticated algorithm to schedule the best
time for a card to come up for review.
%prep
%setup -q
%patch -P 0
%build
%install
python setup.py install \
--root="%{buildroot}" \
--prefix="%{_prefix}"
%{__mv} %{buildroot}%{_datadir}/icons %{buildroot}%{_datadir}/pixmaps
%fdupes -s %{buildroot}
#mkdir %{buildroot}/usr/%_lib
#mv %{buildroot}/usr/lib/* %{buildroot}/usr/%_lib
%suse_update_desktop_file -r -G "Flash-card Learning Tool" %{name} Education X-KDE-Edu-Teaching
%files
%defattr(-,root,root,-)
%doc AUTHORS ChangeLog LICENSE README
%{_bindir}/%{name}
/usr/lib/python2.7/site-packages/%{name}
/usr/lib/python2.7/site-packages/Mnemosyne-%{version}-*.egg-info
%{_datadir}/applications/%{name}.desktop
%{_datadir}/pixmaps/%{name}.png
%changelog