07f301
Name:		mnemosyne
07f301
Summary:	Flash-card learning tool
c64ba7
Version:	2.4
c64ba7
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
c64ba7
BuildRequires:	python3-devel
c64ba7
BuildRequires:	python3-setuptools
07f301
Requires:	hicolor-icon-theme
c64ba7
Requires:	python3-qt5-webkit
c64ba7
Requires:	python3-qt5-webengine
c64ba7
Requires:	python3-matplotlib-qt5
c64ba7
Requires:	python3-cherrypy
c64ba7
Requires:	python3-webob
c64ba7
Requires:	python3-pillow
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
c64ba7
%py3_build
07f301
07f301
%install
c64ba7
%py3_install
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
e05ebb
#%%license docmnemosyne/libmnemosyne/LICENSE
07f301
%{_bindir}/%{name}
c64ba7
%{python3_sitelib}/mnemosyne
c64ba7
%{python3_sitelib}/Mnemosyne-%{version}-*.egg-info
c64ba7
%{python3_sitelib}/openSM2sync
07f301
%{_datadir}/applications/%{name}.desktop
07f301
%{_datadir}/icons/hicolor/*/apps/%{name}.png
07f301
07f301
%changelog
c64ba7
* Tue Dec 06 2016 Jiri Popelka <jpopelka@redhat.com> - 2.4-1
c64ba7
- 2.4: Python3 & PyQt5
c64ba7
0b395b
* Tue Jul 19 2016 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2.3.6-2
0b395b
- https://fedoraproject.org/wiki/Changes/Automatic_Provides_for_Python_RPM_Packages
0b395b
3d431c
* Tue May 03 2016 Jiri Popelka <jpopelka@redhat.com> - 2.3.6-1
3d431c
- 2.3.6
3d431c
1c24d0
* Fri Apr 08 2016 Jiri Popelka <jpopelka@redhat.com> - 2.3.5-4
1c24d0
- #1219556 has been fixed
1c24d0
Rex Dieter 52e814
* Wed Mar 02 2016 Rex Dieter <rdieter@fedoraproject.org> 2.3.5-3
Rex Dieter 52e814
- Requires: PyQt4-webkit
Rex Dieter 52e814
92b99d
* Thu Feb 04 2016 Fedora Release Engineering <releng@fedoraproject.org> - 2.3.5-2
92b99d
- Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild
92b99d
e05ebb
* Tue Dec 08 2015 Jiri Popelka <jpopelka@redhat.com> - 2.3.5-1
e05ebb
- 2.3.5
e05ebb
66b276
* Tue Oct 06 2015 Jiri Popelka <jpopelka@redhat.com> - 2.3.4-1
66b276
- 2.3.4
66b276
2600b6
* Wed Sep 30 2015 Jiri Popelka <jpopelka@redhat.com> - 2.3.3-4
98f4bd
- Requires: python-matplotlib-qt5 due to bug #1219556
98f4bd
8b3927
* Tue Aug 11 2015 Jiri Popelka <jpopelka@redhat.com> - 2.3.3-3
8b3927
- %%py2_build && %%py2_install
8b3927
0c8d3d
* Wed Jun 17 2015 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2.3.3-2
0c8d3d
- Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild
0c8d3d
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