|
|
782bca1 |
%{!?qt5_qtwebengine_arches:%global qt5_qtwebengine_arches %{ix86} x86_64 %{arm} aarch64 mips mipsel mips64el}
|
|
|
782bca1 |
|
|
|
f84944d |
%bcond_without check
|
|
|
f84944d |
|
|
|
07f301f |
Name: mnemosyne
|
|
|
07f301f |
Summary: Flash-card learning tool
|
|
|
7a7fdf1 |
Version: 2.6.1
|
|
|
f84944d |
Release: 1%{?dist}
|
|
|
f84944d |
URL: https://www.mnemosyne-proj.org/
|
|
|
4238f82 |
Source0: https://downloads.sourceforge.net/sourceforge/mnemosyne-proj/Mnemosyne-%{version}.tar.gz
|
|
|
f84944d |
# contains missing tests and LICENSE files from upstream repo
|
|
|
f84944d |
Source1: Mnemosyne-tests-%{version}.tar.xz
|
|
|
f84944d |
# run this script to obtain the above tarball
|
|
|
f84944d |
Source10: mnemosyne-mktarball.sh
|
|
|
6bdb64b |
Patch0: mnemosyne-desktop.patch
|
|
|
6bdb64b |
License: AGPLv3
|
|
|
6bdb64b |
|
|
|
ffeb1c1 |
BuildArch: noarch
|
|
|
c2bdbf1 |
# no python3-qt5-webengine on power64
|
|
|
4238f82 |
ExclusiveArch: noarch %{qt5_qtwebengine_arches}
|
|
|
07f301f |
BuildRequires: desktop-file-utils
|
|
|
c64ba77 |
BuildRequires: python3-devel
|
|
|
c64ba77 |
BuildRequires: python3-setuptools
|
|
|
f84944d |
%if %{with check}
|
|
|
f84944d |
# unpackaged https://pypi.python.org/pypi/Cheroot
|
|
|
f84944d |
#BuildRequires: python3-cheroot
|
|
|
f84944d |
BuildRequires: python3-cherrypy
|
|
|
f84944d |
BuildRequires: python3-nose
|
|
|
f84944d |
BuildRequires: python3-qt5
|
|
|
f84944d |
BuildRequires: texlive-collection-latexrecommended
|
|
|
f84944d |
BuildRequires: texlive-dvipng
|
|
|
f84944d |
%endif
|
|
|
07f301f |
Requires: hicolor-icon-theme
|
|
|
c64ba77 |
Requires: python3-qt5-webkit
|
|
|
c64ba77 |
Requires: python3-qt5-webengine
|
|
|
c64ba77 |
Requires: python3-matplotlib-qt5
|
|
|
c64ba77 |
Requires: python3-cherrypy
|
|
|
c64ba77 |
Requires: python3-webob
|
|
|
c64ba77 |
Requires: python3-pillow
|
|
|
f84944d |
Requires: python3-pyopengl
|
|
|
07f301f |
|
|
|
07f301f |
%description
|
|
|
07f301f |
Mnemosyne resembles a traditional flash-card program but with an
|
|
|
07f301f |
important twist: it uses a sophisticated algorithm to schedule the best
|
|
|
07f301f |
time for a card to come up for review.
|
|
|
07f301f |
|
|
|
07f301f |
Optional dependencies:
|
|
|
07f301f |
* latex: enables entering formulas using latex syntax.
|
|
|
07f301f |
|
|
|
07f301f |
%prep
|
|
|
f84944d |
%setup -q -n Mnemosyne-%{version} -a 1
|
|
|
07f301f |
%patch0 -p1 -b .d
|
|
|
4238f82 |
rm -r Mnemosyne.egg-info
|
|
|
f84944d |
# requires unpackaged Cheroot python module
|
|
|
f84944d |
rm tests/test_sync.py
|
|
|
f84944d |
cp -p mnemosyne/LICENSE LICENSE.mnemosyne
|
|
|
f84944d |
cp -p openSM2sync/LICENSE LICENSE.openSM2sync
|
|
|
07f301f |
|
|
|
07f301f |
%build
|
|
|
c64ba77 |
%py3_build
|
|
|
07f301f |
|
|
|
07f301f |
%install
|
|
|
c64ba77 |
%py3_install
|
|
|
07f301f |
|
|
|
07f301f |
install -d %{buildroot}%{_datadir}/applications
|
|
|
07f301f |
desktop-file-install --vendor="" \
|
|
|
07f301f |
--dir=%{buildroot}%{_datadir}/applications \
|
|
|
07f301f |
%{name}.desktop
|
|
|
07f301f |
|
|
|
07f301f |
install -d %{buildroot}/%{_datadir}/icons/hicolor/128x128/apps
|
|
|
07f301f |
pushd %{buildroot}/%{_datadir}/icons
|
|
|
07f301f |
mv %{name}.png hicolor/128x128/apps/%{name}.png
|
|
|
07f301f |
popd
|
|
|
07f301f |
|
|
|
6bdb64b |
%find_lang %{name}
|
|
|
07f301f |
|
|
|
f84944d |
%if %{with check}
|
|
|
f84944d |
%check
|
|
|
f84944d |
# tests fail if run in parallel
|
|
|
f84944d |
PYTHONPATH=%{buildroot}%{python3_sitelib} %{__python3} -m nose tests
|
|
|
f84944d |
%endif
|
|
|
f84944d |
|
|
|
6bdb64b |
%files -f %{name}.lang
|
|
|
7a7fdf1 |
%doc ChangeLog README
|
|
|
f84944d |
%license LICENSE LICENSE.mnemosyne LICENSE.openSM2sync
|
|
|
07f301f |
%{_bindir}/%{name}
|
|
|
4238f82 |
%{python3_sitelib}/%{name}
|
|
|
4238f82 |
%{python3_sitelib}/Mnemosyne-%{version}-py%{python3_version}.egg-info
|
|
|
c64ba77 |
%{python3_sitelib}/openSM2sync
|
|
|
07f301f |
%{_datadir}/applications/%{name}.desktop
|
|
|
07f301f |
%{_datadir}/icons/hicolor/*/apps/%{name}.png
|
|
|
07f301f |
|
|
|
07f301f |
%changelog
|
|
|
7a7fdf1 |
* Thu Feb 21 2019 Dominik Mierzejewski <rpm@greysector.net> 2.6.1-1
|
|
|
7a7fdf1 |
- update to 2.6.1 (#1613593)
|
|
|
7a7fdf1 |
|
|
|
f84944d |
* Tue Mar 06 2018 Dominik Mierzejewski <rpm@greysector.net> 2.6-1
|
|
|
f84944d |
- update to 2.6 (#1524747)
|
|
|
f84944d |
- add missing pyopengl dependency to fix crash (#1546829)
|
|
|
f84944d |
- include tests and license texts from upstream repo
|
|
|
f84944d |
- switch to HTTPS URL
|
|
|
f84944d |
|
|
|
3a6d402 |
* Thu Feb 08 2018 Fedora Release Engineering <releng@fedoraproject.org> - 2.5-4
|
|
|
3a6d402 |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild
|
|
|
3a6d402 |
|
|
|
6d178ac |
* Thu Jan 18 2018 Igor Gnatenko <ignatenkobrain@fedoraproject.org> - 2.5-3
|
|
|
6d178ac |
- Remove obsolete scriptlets
|
|
|
6d178ac |
|
|
|
a12ae8d |
* Wed Jul 26 2017 Fedora Release Engineering <releng@fedoraproject.org> - 2.5-2
|
|
|
a12ae8d |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild
|
|
|
a12ae8d |
|
|
|
19cd002 |
* Thu Jun 29 2017 Dominik Mierzejewski <rpm@greysector.net> 2.5-1
|
|
|
19cd002 |
- update to 2.5 (#1465009)
|
|
|
19cd002 |
|
|
|
782bca1 |
* Tue Jun 27 2017 Dominik Mierzejewski <rpm@greysector.net> 2.4.1-2
|
|
|
782bca1 |
- make sure qt5_qtwebengine_arches macro is defined
|
|
|
782bca1 |
|
|
|
4238f82 |
* Wed Jun 21 2017 Dominik Mierzejewski <rpm@greysector.net> 2.4.1-1
|
|
|
4238f82 |
- update to 2.4.1
|
|
|
4238f82 |
- use ExclusiveArch to restrict availability to qt5_qtwebengine_arches
|
|
|
4238f82 |
- use https for Source0:
|
|
|
4238f82 |
- use name macro consistently
|
|
|
4238f82 |
- tighten file list using python3_version macro
|
|
|
4238f82 |
- force rebuild of egg-info
|
|
|
4238f82 |
|
|
|
c2bdbf1 |
* Wed Mar 22 2017 Jiri Popelka <jpopelka@redhat.com> - 2.4-4
|
|
|
c2bdbf1 |
- no python3-qt5-webengine on power64
|
|
|
c2bdbf1 |
|
|
|
834ff46 |
* Fri Feb 10 2017 Fedora Release Engineering <releng@fedoraproject.org> - 2.4-3
|
|
|
834ff46 |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild
|
|
|
834ff46 |
|
|
|
cc7f9fb |
* Thu Dec 22 2016 Miro HronĨok <mhroncok@redhat.com> - 2.4-2
|
|
|
cc7f9fb |
- Rebuild for Python 3.6
|
|
|
cc7f9fb |
|
|
|
c64ba77 |
* Tue Dec 06 2016 Jiri Popelka <jpopelka@redhat.com> - 2.4-1
|
|
|
c64ba77 |
- 2.4: Python3 & PyQt5
|
|
|
c64ba77 |
|
|
|
0b395bd |
* Tue Jul 19 2016 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2.3.6-2
|
|
|
0b395bd |
- https://fedoraproject.org/wiki/Changes/Automatic_Provides_for_Python_RPM_Packages
|
|
|
0b395bd |
|
|
|
3d431c5 |
* Tue May 03 2016 Jiri Popelka <jpopelka@redhat.com> - 2.3.6-1
|
|
|
3d431c5 |
- 2.3.6
|
|
|
3d431c5 |
|
|
|
1c24d03 |
* Fri Apr 08 2016 Jiri Popelka <jpopelka@redhat.com> - 2.3.5-4
|
|
|
1c24d03 |
- #1219556 has been fixed
|
|
|
1c24d03 |
|
|
Rex Dieter |
52e814c |
* Wed Mar 02 2016 Rex Dieter <rdieter@fedoraproject.org> 2.3.5-3
|
|
Rex Dieter |
52e814c |
- Requires: PyQt4-webkit
|
|
Rex Dieter |
52e814c |
|
|
|
92b99d6 |
* Thu Feb 04 2016 Fedora Release Engineering <releng@fedoraproject.org> - 2.3.5-2
|
|
|
92b99d6 |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild
|
|
|
92b99d6 |
|
|
|
e05ebb1 |
* Tue Dec 08 2015 Jiri Popelka <jpopelka@redhat.com> - 2.3.5-1
|
|
|
e05ebb1 |
- 2.3.5
|
|
|
e05ebb1 |
|
|
|
66b276c |
* Tue Oct 06 2015 Jiri Popelka <jpopelka@redhat.com> - 2.3.4-1
|
|
|
66b276c |
- 2.3.4
|
|
|
66b276c |
|
|
|
2600b6d |
* Wed Sep 30 2015 Jiri Popelka <jpopelka@redhat.com> - 2.3.3-4
|
|
|
98f4bd5 |
- Requires: python-matplotlib-qt5 due to bug #1219556
|
|
|
98f4bd5 |
|
|
|
8b39277 |
* Tue Aug 11 2015 Jiri Popelka <jpopelka@redhat.com> - 2.3.3-3
|
|
|
8b39277 |
- %%py2_build && %%py2_install
|
|
|
8b39277 |
|
|
|
0c8d3df |
* Wed Jun 17 2015 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2.3.3-2
|
|
|
0c8d3df |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild
|
|
|
0c8d3df |
|
|
|
a612426 |
* Tue Apr 14 2015 Jiri Popelka <jpopelka@redhat.com> - 2.3.3-1
|
|
|
a612426 |
- 2.3.3
|
|
|
a612426 |
|
|
|
ffeb1c1 |
* Wed Feb 25 2015 Jiri Popelka <jpopelka@redhat.com> - 2.3.2-1
|
|
|
ffeb1c1 |
- 2.3.2
|
|
|
ffeb1c1 |
|
|
|
4a0ca14 |
* Thu Jun 19 2014 Jiri Popelka <jpopelka@redhat.com> - 2.3.1-1
|
|
|
4a0ca14 |
- 2.3.1
|
|
|
4a0ca14 |
|
|
|
c7a6968 |
* Sat Jun 07 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2.3-2
|
|
|
c7a6968 |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild
|
|
|
c7a6968 |
|
|
|
c2c1596 |
* Thu Apr 03 2014 Jiri Popelka <jpopelka@redhat.com> - 2.3-1
|
|
|
c2c1596 |
- 2.3
|
|
|
c2c1596 |
|
|
|
57efd75 |
* Sat Aug 03 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2.2.1-2
|
|
|
57efd75 |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_20_Mass_Rebuild
|
|
|
57efd75 |
|
|
|
13ea7e2 |
* Mon Apr 15 2013 Jiri Popelka <jpopelka@redhat.com> - 2.2.1-1
|
|
|
13ea7e2 |
- updated to 2.2.1 (no LICENSE file ?)
|
|
|
13ea7e2 |
|
|
|
4553de9 |
* Mon Jan 28 2013 Jiri Popelka <jpopelka@redhat.com> - 2.2-3.a
|
|
|
4553de9 |
- python-matplotlib moved qt4 backend to -qt4 subpackage (#903760)
|
|
|
4553de9 |
|
|
|
bf73c9e |
* Fri Jan 25 2013 Jiri Popelka <jpopelka@redhat.com> - 2.2-2.a
|
|
|
bf73c9e |
- updated to 2.2a
|
|
|
bf73c9e |
|
|
|
ab838a9 |
* Wed Dec 05 2012 Jiri Popelka <jpopelka@redhat.com> - 2.2-1
|
|
|
ab838a9 |
- updated to 2.2
|
|
|
ab838a9 |
|
|
|
3e58a61 |
* Thu Sep 13 2012 Jiri Popelka <jpopelka@redhat.com> - 2.1-1
|
|
|
3e58a61 |
- updated to 2.1
|
|
|
3e58a61 |
|
|
|
b443dcb |
* Thu Aug 02 2012 Jiri Popelka <jpopelka@redhat.com> - 2.0.1-1
|
|
|
b443dcb |
- updated to 2.0.1
|
|
|
b443dcb |
|
|
|
cb41c4d |
* Fri Jul 20 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2.0-2
|
|
|
cb41c4d |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild
|
|
|
cb41c4d |
|
|
|
6bdb64b |
* Mon Jun 18 2012 Jiri Popelka <jpopelka@redhat.com> - 2.0-1
|
|
|
6bdb64b |
- updated to 2.0
|
|
|
6bdb64b |
|
|
|
62dec92 |
* Fri Jan 13 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.2.2-5
|
|
|
62dec92 |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_17_Mass_Rebuild
|
|
|
62dec92 |
|
|
|
a6312f1 |
* Tue Feb 08 2011 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.2.2-4
|
|
|
a6312f1 |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild
|
|
|
a6312f1 |
|
|
|
2d32feb |
* Wed Nov 17 2010 Jiri Popelka <jpopelka@redhat.com> - 1.2.2-3
|
|
|
2d32feb |
- requires Python Imaging Library (PIL) (bug #654291)
|
|
|
2d32feb |
|
|
|
12cb782 |
* Wed Jul 21 2010 David Malcolm <dmalcolm@redhat.com> - 1.2.2-2
|
|
|
12cb782 |
- Rebuilt for https://fedoraproject.org/wiki/Features/Python_2.7/MassRebuild
|
|
|
12cb782 |
|
|
|
67c2d6e |
* Wed Jul 07 2010 Dominik Mierzejewski <rpm@greysector.net> 1.2.2-1
|
|
|
67c2d6e |
- updated to 1.2.2
|
|
|
67c2d6e |
- upstream changelog: http://www.mnemosyne-proj.org/news.php
|
|
|
67c2d6e |
|
|
|
80f7501 |
* Wed Aug 26 2009 Dominik Mierzejewski <rpm@greysector.net> 1.2.1-1
|
|
|
80f7501 |
- updated to 1.2.1
|
|
|
80f7501 |
|
|
|
4280e9e |
* Sat Jul 25 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.2-3.r1
|
|
|
4280e9e |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_12_Mass_Rebuild
|
|
|
4280e9e |
|
|
|
edb0d42 |
* Wed Feb 25 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.2-2.r1
|
|
|
edb0d42 |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_11_Mass_Rebuild
|
|
|
edb0d42 |
|
|
|
e45906a |
* Tue Jan 27 2009 Dominik Mierzejewski <rpm@greysector.net> 1.2-1.r1
|
|
|
e45906a |
- updated to 1.2-r1, fixes https://bugs.launchpad.net/mnemosyne-proj/+bug/252152
|
|
|
e45906a |
|
|
|
07f301f |
* Tue Nov 11 2008 Dominik Mierzejewski <rpm@greysector.net> 1.1.1-3.r1
|
|
|
07f301f |
- fixed .desktop file comment to conform to GNOME HIG
|
|
|
07f301f |
- removed a redundant python setup.py install call
|
|
|
07f301f |
- moved the .desktop file category addition to the patch
|
|
|
07f301f |
- added missing hicolor-icon-theme-requires
|
|
|
07f301f |
|
|
|
07f301f |
* Fri Oct 03 2008 Dominik Mierzejewski <rpm@greysector.net> 1.1.1-2.r1
|
|
|
07f301f |
- updated to 1.1.1-r1
|
|
|
07f301f |
- dropped separate icon (fixed upstream)
|
|
|
07f301f |
|
|
|
07f301f |
* Thu Sep 11 2008 Dominik Mierzejewski <rpm@greysector.net> 1.1.1-1
|
|
|
07f301f |
- initial package
|
|
|
07f301f |
- include fixed icon from 1.1
|