07f301
Name:		mnemosyne
07f301
Summary:	Flash-card learning tool
ab838a
Version:	2.2
b443dc
Release:	1%{?dist}
07f301
URL:		http://www.mnemosyne-proj.org/
6bdb64
Source0:	http://downloads.sourceforge.net/sourceforge/mnemosyne-proj/Mnemosyne-%{version}.tar.gz
6bdb64
Patch0:		mnemosyne-desktop.patch
6bdb64
License:	AGPLv3
07f301
Group:		Amusements/Games
6bdb64
07f301
BuildRequires:	desktop-file-utils
6bdb64
BuildRequires:	python2-devel
80f750
BuildRequires:	python-setuptools
07f301
BuildArch:	noarch
07f301
Requires:	hicolor-icon-theme
6bdb64
Requires:	PyQt4
6bdb64
Requires:	python-matplotlib
6bdb64
Requires:	python-cherrypy
07f301
07f301
%description
07f301
Mnemosyne resembles a traditional flash-card program but with an
07f301
important twist: it uses a sophisticated algorithm to schedule the best
07f301
time for a card to come up for review.
07f301
07f301
Optional dependencies:
07f301
* latex: enables entering formulas using latex syntax.
07f301
07f301
%prep
6bdb64
%setup -q -n Mnemosyne-%{version}
07f301
%patch0 -p1 -b .d
07f301
07f301
%build
07f301
CFLAGS="$RPM_OPT_FLAGS" %{__python} setup.py build
07f301
07f301
%install
07f301
07f301
%{__python} setup.py install -O1 --skip-build --root %{buildroot}
07f301
07f301
install -d %{buildroot}%{_datadir}/applications
07f301
desktop-file-install --vendor="" \
07f301
	--dir=%{buildroot}%{_datadir}/applications \
07f301
	%{name}.desktop
07f301
07f301
install -d %{buildroot}/%{_datadir}/icons/hicolor/128x128/apps
07f301
pushd %{buildroot}/%{_datadir}/icons
07f301
mv %{name}.png hicolor/128x128/apps/%{name}.png
07f301
popd
07f301
6bdb64
%find_lang %{name}
07f301
07f301
%post
07f301
touch --no-create %{_datadir}/icons/hicolor
07f301
if [ -x %{_bindir}/gtk-update-icon-cache ]; then
07f301
  %{_bindir}/gtk-update-icon-cache --quiet %{_datadir}/icons/hicolor || :
07f301
fi
07f301
07f301
%postun
07f301
touch --no-create %{_datadir}/icons/hicolor
07f301
if [ -x %{_bindir}/gtk-update-icon-cache ]; then
07f301
  %{_bindir}/gtk-update-icon-cache --quiet %{_datadir}/icons/hicolor || :
07f301
fi
07f301
6bdb64
%files -f %{name}.lang
6bdb64
%doc ChangeLog README mnemosyne/libmnemosyne/LICENSE
07f301
%{_bindir}/%{name}
6bdb64
%{_bindir}/mnemosyne-webserver
6bdb64
%{python_sitelib}/mnemosyne
07f301
%{python_sitelib}/Mnemosyne-%{version}-*.egg-info
6bdb64
%{python_sitelib}/openSM2sync
07f301
%{_datadir}/applications/%{name}.desktop
07f301
%{_datadir}/icons/hicolor/*/apps/%{name}.png
07f301
07f301
%changelog
ab838a
* Wed Dec 05 2012 Jiri Popelka <jpopelka@redhat.com> - 2.2-1
ab838a
- updated to 2.2
ab838a
3e58a6
* Thu Sep 13 2012 Jiri Popelka <jpopelka@redhat.com> - 2.1-1
3e58a6
- updated to 2.1
3e58a6
b443dc
* Thu Aug 02 2012 Jiri Popelka <jpopelka@redhat.com> - 2.0.1-1
b443dc
- updated to 2.0.1
b443dc
cb41c4
* Fri Jul 20 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2.0-2
cb41c4
- Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild
cb41c4
6bdb64
* Mon Jun 18 2012 Jiri Popelka <jpopelka@redhat.com> - 2.0-1
6bdb64
- updated to 2.0
6bdb64
62dec9
* Fri Jan 13 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.2.2-5
62dec9
- Rebuilt for https://fedoraproject.org/wiki/Fedora_17_Mass_Rebuild
62dec9
a6312f
* Tue Feb 08 2011 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.2.2-4
a6312f
- Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild
a6312f
2d32fe
* Wed Nov 17 2010 Jiri Popelka <jpopelka@redhat.com> - 1.2.2-3
2d32fe
- requires Python Imaging Library (PIL) (bug #654291)
2d32fe
12cb78
* Wed Jul 21 2010 David Malcolm <dmalcolm@redhat.com> - 1.2.2-2
12cb78
- Rebuilt for https://fedoraproject.org/wiki/Features/Python_2.7/MassRebuild
12cb78
67c2d6
* Wed Jul 07 2010 Dominik Mierzejewski <rpm@greysector.net> 1.2.2-1
67c2d6
- updated to 1.2.2
67c2d6
- upstream changelog: http://www.mnemosyne-proj.org/news.php
67c2d6
80f750
* Wed Aug 26 2009 Dominik Mierzejewski <rpm@greysector.net> 1.2.1-1
80f750
- updated to 1.2.1
80f750
4280e9
* Sat Jul 25 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.2-3.r1
4280e9
- Rebuilt for https://fedoraproject.org/wiki/Fedora_12_Mass_Rebuild
4280e9
edb0d4
* Wed Feb 25 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.2-2.r1
edb0d4
- Rebuilt for https://fedoraproject.org/wiki/Fedora_11_Mass_Rebuild
edb0d4
e45906
* Tue Jan 27 2009 Dominik Mierzejewski <rpm@greysector.net> 1.2-1.r1
e45906
- updated to 1.2-r1, fixes https://bugs.launchpad.net/mnemosyne-proj/+bug/252152
e45906
07f301
* Tue Nov 11 2008 Dominik Mierzejewski <rpm@greysector.net> 1.1.1-3.r1
07f301
- fixed .desktop file comment to conform to GNOME HIG
07f301
- removed a redundant python setup.py install call
07f301
- moved the .desktop file category addition to the patch
07f301
- added missing hicolor-icon-theme-requires
07f301
07f301
* Fri Oct 03 2008 Dominik Mierzejewski <rpm@greysector.net> 1.1.1-2.r1
07f301
- updated to 1.1.1-r1
07f301
- dropped separate icon (fixed upstream)
07f301
07f301
* Thu Sep 11 2008 Dominik Mierzejewski <rpm@greysector.net> 1.1.1-1
07f301
- initial package
07f301
- include fixed icon from 1.1