|
|
66e4a68 |
%{!?python_sitelib: %define python_sitelib %(%{__python} -c "from distutils.sysconfig import get_python_lib; print get_python_lib()")}
|
|
|
66e4a68 |
|
|
|
66e4a68 |
Name: anki
|
|
|
1d0c0cc |
Version: 0.9.9.8.6
|
|
|
bc05b6a |
Release: 2%{?dist}
|
|
|
66e4a68 |
Summary: Flashcard program for using space repetition learning
|
|
|
66e4a68 |
|
|
|
66e4a68 |
Group: Amusements/Games
|
|
|
66e4a68 |
# the file anki-%{version}/libanki/anki/features/chinese/unihan.db
|
|
|
66e4a68 |
# was created out of Unihan.txt from www.unicode.org (MIT license)
|
|
|
66e4a68 |
License: GPLv3+ and MIT
|
|
|
66e4a68 |
URL: http://www.ichi2.net/anki
|
|
|
1d0c0cc |
Source0: %{name}-%{version}-nosamples.tgz
|
|
|
1d0c0cc |
# anki contains samples with an unclear license
|
|
|
1d0c0cc |
# this script to remove all samples since they are not installed anyway
|
|
|
1d0c0cc |
# Download the upstream tarball and invoke this script while in the
|
|
|
1d0c0cc |
# tarball's directory:
|
|
|
1d0c0cc |
# sh generate-anki-tarball.sh 0.9.9.8.6
|
|
|
1d0c0cc |
# upstream tarball: http://anki.googlecode.com/files/%{name}-%{version}.tgz
|
|
|
1d0c0cc |
Source1: generate-anki-tarball.sh
|
|
|
5a75dcb |
|
|
|
66e4a68 |
# Config change: don't check for new updates.
|
|
|
1d0c0cc |
Patch0: anki-0.9.9.8.6-noupdate.patch
|
|
|
bc05b6a |
# https://bugzilla.redhat.com/show_bug.cgi?id=567672
|
|
|
bc05b6a |
Patch1: 0001-Fix-crash-with-enabled-sys-tray-icon.patch
|
|
|
66e4a68 |
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
|
|
|
66e4a68 |
BuildRequires: python-devel, python-setuptools, python-sqlalchemy
|
|
|
80800ca |
BuildRequires: desktop-file-utils, PyQt4
|
|
|
66e4a68 |
Requires: qt4, PyQt4
|
|
|
66e4a68 |
Requires: python-sqlalchemy, python-simplejson, python-sqlite2
|
|
|
68f63ae |
Requires: python-matplotlib
|
|
|
1d0c0cc |
Requires: pygame, python-BeautifulSoup
|
|
|
66e4a68 |
BuildArch: noarch
|
|
|
66e4a68 |
|
|
|
66e4a68 |
%description
|
|
|
66e4a68 |
Anki is a program designed to help you remember facts (such as words
|
|
|
66e4a68 |
and phrases in a foreign language) as easily, quickly and efficiently
|
|
|
66e4a68 |
as possible. Anki is based on a theory called spaced repetition.
|
|
|
66e4a68 |
|
|
|
66e4a68 |
%prep
|
|
|
1d0c0cc |
%setup -q
|
|
|
96274bb |
%patch0 -p1 -b .noupdate
|
|
|
bc05b6a |
%patch1 -p1 -b .trayicon_crash
|
|
|
66e4a68 |
|
|
|
66e4a68 |
%build
|
|
|
66e4a68 |
pushd libanki
|
|
|
66e4a68 |
%{__python} setup.py build
|
|
|
66e4a68 |
popd
|
|
|
1d0c0cc |
|
|
|
66e4a68 |
%{__python} setup.py build
|
|
|
66e4a68 |
|
|
|
66e4a68 |
|
|
|
66e4a68 |
%install
|
|
|
66e4a68 |
rm -rf %{buildroot}
|
|
|
66e4a68 |
pushd libanki
|
|
|
66e4a68 |
%{__python} setup.py install -O1 --skip-build --root %{buildroot}
|
|
|
66e4a68 |
popd
|
|
|
66e4a68 |
|
|
|
66e4a68 |
%{__python} setup.py install -O1 --skip-build --root %{buildroot}
|
|
|
66e4a68 |
|
|
|
66e4a68 |
install -d %{buildroot}%{_datadir}/applications
|
|
|
66e4a68 |
desktop-file-install \
|
|
|
66e4a68 |
--remove-category=KDE \
|
|
|
66e4a68 |
--dir %{buildroot}%{_datadir}/applications \
|
|
|
66e4a68 |
%{name}.desktop
|
|
|
66e4a68 |
|
|
|
66e4a68 |
install -d %{buildroot}%{_datadir}/pixmaps
|
|
|
66e4a68 |
install -m 644 icons/anki.png %{buildroot}%{_datadir}/pixmaps/
|
|
|
66e4a68 |
|
|
|
e0c09e2 |
find %{buildroot} -type f -o -type l|sed '
|
|
|
e0c09e2 |
s:'"%{buildroot}"'::
|
|
|
e0c09e2 |
s:\(.*/lib/python2.6/site-packages/ankiqt/locale/\)\([^/_]\+\)\(.*\.mo$\):%lang(\2) \1\2\3:
|
|
|
e0c09e2 |
s:\(.*/lib/python2.6/site-packages/anki/locale/\)\([^/_]\+\)\(.*\.mo$\):%lang(\2) \1\2\3:
|
|
|
e0c09e2 |
s:^\([^%].*\)::
|
|
|
e0c09e2 |
s:%lang(C) ::
|
|
|
e0c09e2 |
/^$/d' > anki.lang
|
|
|
e0c09e2 |
|
|
|
e0c09e2 |
|
|
|
e0c09e2 |
|
|
|
66e4a68 |
%clean
|
|
|
66e4a68 |
rm -rf %{buildroot}
|
|
|
66e4a68 |
|
|
|
66e4a68 |
|
|
|
e0c09e2 |
%files -f %{name}.lang
|
|
|
66e4a68 |
%defattr(-,root,root,-)
|
|
|
1d0c0cc |
%doc ChangeLog
|
|
|
e0c09e2 |
%doc COPYING CREDITS README*
|
|
|
66e4a68 |
# libankiqt
|
|
|
66e4a68 |
%dir %{python_sitelib}/ankiqt
|
|
|
66e4a68 |
%{python_sitelib}/ankiqt/*.py*
|
|
|
66e4a68 |
%{python_sitelib}/ankiqt/ui
|
|
|
66e4a68 |
%{python_sitelib}/ankiqt/forms
|
|
|
66e4a68 |
|
|
|
66e4a68 |
# libanki
|
|
|
66e4a68 |
%dir %{python_sitelib}/anki
|
|
|
66e4a68 |
%{python_sitelib}/anki/*.py*
|
|
|
66e4a68 |
%{python_sitelib}/anki/importing
|
|
|
66e4a68 |
|
|
|
66e4a68 |
# locale
|
|
|
66e4a68 |
%dir %{python_sitelib}/ankiqt/locale/
|
|
|
e0c09e2 |
%dir %{python_sitelib}/ankiqt/locale/*
|
|
|
e0c09e2 |
%dir %{python_sitelib}/ankiqt/locale/*/LC_MESSAGES
|
|
|
66e4a68 |
%dir %{python_sitelib}/anki/locale/
|
|
|
e0c09e2 |
%dir %{python_sitelib}/anki/locale/*
|
|
|
e0c09e2 |
%dir %{python_sitelib}/anki/locale/*/LC_MESSAGES
|
|
|
66e4a68 |
|
|
|
66e4a68 |
%{python_sitelib}/*egg-info
|
|
|
66e4a68 |
%{_bindir}/anki
|
|
|
66e4a68 |
%{_datadir}/applications/%{name}.desktop
|
|
|
66e4a68 |
%{_datadir}/pixmaps/%{name}.png
|
|
|
66e4a68 |
|
|
|
66e4a68 |
%changelog
|
|
|
bc05b6a |
* Sun Feb 28 2010 Christian Krause <chkr@fedoraproject.org> - 0.9.9.8.6-2
|
|
|
bc05b6a |
- Add a patch to fix a crash when sys tray icon is enabled (BZ 567672)
|
|
|
bc05b6a |
|
|
|
1d0c0cc |
* Fri Feb 19 2010 Christian Krause <chkr@fedoraproject.org> - 0.9.9.8.6-1
|
|
|
1d0c0cc |
- Update to new upstream version
|
|
|
1d0c0cc |
- Remove example files from upstream tarball due to unknown license
|
|
|
1d0c0cc |
- Updated noupdate patch
|
|
|
1d0c0cc |
|
|
|
e0c09e2 |
* Wed Jan 20 2010 Christian Krause <chkr@fedoraproject.org> - 0.9.9.8.5-3.git20100120
|
|
|
e0c09e2 |
- Update to git snapshot
|
|
|
e0c09e2 |
- Includes fix for BZ 546331
|
|
|
e0c09e2 |
|
|
|
a4181ed |
* Fri Jul 24 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.9.9.8.5-2
|
|
|
a4181ed |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_12_Mass_Rebuild
|
|
|
a4181ed |
|
|
|
ecbc047 |
* Sun Jul 12 2009 Christian Krause <chkr@fedoraproject.org> - 0.9.9.8.5-1
|
|
|
ecbc047 |
- Update to new upstream version 0.9.9.8.5
|
|
|
ecbc047 |
|
|
|
8c07f13 |
* Thu Jul 02 2009 Christian Krause <chkr@fedoraproject.org> - 0.9.9.8.4-1
|
|
|
8c07f13 |
- Update to new upstream version 0.9.9.8.4
|
|
|
8c07f13 |
- fix one %%lang tag
|
|
|
8c07f13 |
|
|
|
3e71278 |
* Sun May 24 2009 Christian Krause <chkr@fedoraproject.org> - 0.9.9.7.9b-1
|
|
|
3e71278 |
- Update to new upstream version 0.9.9.7.9b to fix a syncing bug
|
|
|
3e71278 |
|
|
|
ba4f4ca |
* Tue May 12 2009 Christian Krause <chkr@fedoraproject.org> - 0.9.9.7.9-1
|
|
|
ba4f4ca |
- Update to new upstream version 0.9.9.7.9 to fix an update problem of the
|
|
|
ba4f4ca |
statusbar and of the titlebar
|
|
|
ba4f4ca |
|
|
|
1281e42 |
* Thu May 07 2009 Christian Krause <chkr@fedoraproject.org> - 0.9.9.7.8-2
|
|
|
1281e42 |
- Bump release
|
|
|
1281e42 |
|
|
|
96274bb |
* Wed May 06 2009 Christian Krause <chkr@fedoraproject.org> - 0.9.9.7.8-1
|
|
|
96274bb |
- Update to new upstream version 0.9.9.7.8
|
|
|
96274bb |
|
|
|
68f63ae |
* Sat Apr 11 2009 Christian Krause <chkr@fedoraproject.org> - 0.9.9.7.4-1
|
|
|
68f63ae |
- Update to new upstream version 0.9.9.7.4 (BZ 494598)
|
|
|
68f63ae |
- Require python-matplotlib instead of numpy (BZ 495232)
|
|
|
68f63ae |
|
|
|
5a75dcb |
* Wed Apr 01 2009 Christian Krause <chkr@fedoraproject.org> - 0.9.9.7.1-1
|
|
|
5a75dcb |
- Update to new upstream version 0.9.9.7.1
|
|
|
5a75dcb |
- Drop unihaninstall patch (applied upstream)
|
|
|
5a75dcb |
- Updated noupdate patch
|
|
|
5a75dcb |
- Use original upstream tgz since upstream doesn't ship the example files
|
|
|
5a75dcb |
anymore
|
|
|
5a75dcb |
|
|
|
9234dd6 |
* Sun Mar 01 2009 Christian Krause <chkr@fedoraproject.org> - 0.9.9.6-4
|
|
|
9234dd6 |
- Bump release
|
|
|
9234dd6 |
|
|
|
6eae781 |
* Fri Feb 27 2009 Christian Krause <chkr@fedoraproject.org> - 0.9.9.6-3
|
|
|
6eae781 |
- Proper packaging of locale files
|
|
|
66e4a68 |
|
|
|
6eae781 |
* Fri Feb 13 2009 Christian Krause <chkr@fedoraproject.org> - 0.9.9.6-2
|
|
|
66e4a68 |
- Fixed license field
|
|
|
66e4a68 |
- Install unihan.db
|
|
|
66e4a68 |
|
|
|
6eae781 |
* Wed Feb 11 2009 Christian Krause <chkr@fedoraproject.org> - 0.9.9.6-1
|
|
|
6eae781 |
- First spec file for anki
|