]>
Commit | Line | Data |
---|---|---|
e7fdf229 | 1 | Summary: SuperMemo(tm)-like program |
ddcbc2cb | 2 | Summary(pl.UTF-8): Program podobny do SuperMemo |
3 | Name: anki | |
fd2cf21f | 4 | Version: 1.2.11 |
ddcbc2cb | 5 | Release: 1 |
6 | License: GPL v3+ | |
7 | Group: Applications | |
8 | Source0: http://anki.googlecode.com/files/%{name}-%{version}.tgz | |
fd2cf21f | 9 | # Source0-md5: dcd43787bed2dbe63ffb6d153ee9dbe5 |
ddcbc2cb | 10 | URL: http://ichi2.net/anki/ |
e7fdf229 | 11 | BuildRequires: python-PyQt4 |
12 | BuildRequires: python-SQLAlchemy | |
13 | BuildRequires: python-devel | |
14 | BuildRequires: python-distribute | |
473ff244 | 15 | BuildRequires: python-simplejson |
e7fdf229 | 16 | BuildRequires: python-sqlite |
ddcbc2cb | 17 | BuildRequires: rpm-pythonprov |
18 | BuildRequires: rpmbuild(macros) >= 1.219 | |
19 | %pyrequires_eq python-modules | |
20 | Requires: python-BeautifulSoup | |
e7fdf229 | 21 | Requires: python-PyQt4 |
ddcbc2cb | 22 | Requires: python-SQLAlchemy |
23 | Requires: python-simplejson | |
ddcbc2cb | 24 | BuildArch: noarch |
25 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) | |
26 | ||
27 | %description | |
28 | A flash card program to make your review process more efficient. | |
29 | ||
30 | %description -l pl.UTF-8 | |
31 | Program podobny w działaniu do SuperMemo(tm). | |
32 | ||
33 | %prep | |
34 | %setup -q | |
35 | ||
36 | %build | |
37 | cd libanki | |
38 | %{__python} setup.py build | |
39 | cd .. | |
40 | %{__python} setup.py build | |
41 | ||
42 | %install | |
43 | rm -rf $RPM_BUILD_ROOT | |
44 | install -d $RPM_BUILD_ROOT%{_desktopdir} | |
45 | cd libanki | |
46 | %{__python} setup.py install \ | |
47 | --optimize=2 \ | |
48 | --root=$RPM_BUILD_ROOT | |
49 | cd .. | |
50 | %{__python} setup.py install \ | |
51 | --optimize=2 \ | |
52 | --root=$RPM_BUILD_ROOT | |
53 | ||
54 | %py_postclean | |
55 | install anki.desktop $RPM_BUILD_ROOT%{_desktopdir} | |
56 | ||
57 | %clean | |
58 | rm -rf $RPM_BUILD_ROOT | |
59 | ||
60 | %files | |
61 | %defattr(644,root,root,755) | |
62 | %doc CREDITS ChangeLog README* | |
63 | %attr(755,root,root) %{_bindir}/%{name} | |
64 | %{py_sitescriptdir}/anki | |
65 | %{py_sitescriptdir}/ankiqt | |
66 | %{py_sitescriptdir}/*.egg-info | |
67 | %{_desktopdir}/*.desktop |