07f301
Name:		mnemosyne
07f301
Summary:	Flash-card learning tool
a61242
Version:	2.3.3
c2c159
Release:	1%{?dist}
07f301
URL:		http://www.mnemosyne-proj.org/
13ea7e
Source0:	http://downloads.sourceforge.net/sourceforge/mnemosyne-proj/Mnemosyne-%{version}.tar.gz
6bdb64
Patch0:		mnemosyne-desktop.patch
6bdb64
License:	AGPLv3
6bdb64
ffeb1c
BuildArch:	noarch
07f301
BuildRequires:	desktop-file-utils
6bdb64
BuildRequires:	python2-devel
80f750
BuildRequires:	python-setuptools
07f301
Requires:	hicolor-icon-theme
6bdb64
Requires:	PyQt4
4553de
Requires:	python-matplotlib-qt4
6bdb64
Requires:	python-cherrypy
c2c159
Requires:	python-webob
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
13ea7e
%setup -q -n Mnemosyne-%{version}
07f301
%patch0 -p1 -b .d
07f301
07f301
%build
ffeb1c
CFLAGS="$RPM_OPT_FLAGS" %{__python2} setup.py build
07f301
07f301
%install
ffeb1c
%{__python2} 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
13ea7e
%doc ChangeLog README
ffeb1c
# https://bugs.launchpad.net/mnemosyne-proj/+bug/1346903
ffeb1c
# http://bazaar.launchpad.net/~peter-bienstman/mnemosyne-proj/trunk/view/head:/mnemosyne/mnemosyne/LICENSE
13ea7e
#%%doc docmnemosyne/libmnemosyne/LICENSE
07f301
%{_bindir}/%{name}
ffeb1c
%{python2_sitelib}/mnemosyne
ffeb1c
%{python2_sitelib}/Mnemosyne-%{version}-*.egg-info
ffeb1c
%{python2_sitelib}/openSM2sync
07f301
%{_datadir}/applications/%{name}.desktop
07f301
%{_datadir}/icons/hicolor/*/apps/%{name}.png
07f301
07f301
%changelog
a61242
* Tue Apr 14 2015 Jiri Popelka <jpopelka@redhat.com> - 2.3.3-1
a61242
- 2.3.3
a61242
ffeb1c
* Wed Feb 25 2015 Jiri Popelka <jpopelka@redhat.com> - 2.3.2-1
ffeb1c
- 2.3.2
ffeb1c
4a0ca1
* Thu Jun 19 2014 Jiri Popelka <jpopelka@redhat.com> - 2.3.1-1
4a0ca1
- 2.3.1
4a0ca1
c7a696
* Sat Jun 07 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2.3-2
c7a696
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild
c7a696
c2c159
* Thu Apr 03 2014 Jiri Popelka <jpopelka@redhat.com> - 2.3-1
c2c159
- 2.3
c2c159
57efd7
* Sat Aug 03 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2.2.1-2
57efd7
- Rebuilt for https://fedoraproject.org/wiki/Fedora_20_Mass_Rebuild
57efd7
13ea7e
* Mon Apr 15 2013 Jiri Popelka <jpopelka@redhat.com> - 2.2.1-1
13ea7e
- updated to 2.2.1 (no LICENSE file ?)
13ea7e
4553de
* Mon Jan 28 2013 Jiri Popelka <jpopelka@redhat.com> - 2.2-3.a
4553de
- python-matplotlib moved qt4 backend to -qt4 subpackage (#903760)
4553de
bf73c9
* Fri Jan 25 2013 Jiri Popelka <jpopelka@redhat.com> - 2.2-2.a
bf73c9
- updated to 2.2a
bf73c9
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