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