]> git.pld-linux.org Git - packages/anki.git/blob - anki.spec
- updated to 1.2.7
[packages/anki.git] / anki.spec
1 Summary:        SuperMemo(tm)-like program
2 Summary(pl.UTF-8):      Program podobny do SuperMemo
3 Name:           anki
4 Version:        1.2.7
5 Release:        1
6 License:        GPL v3+
7 Group:          Applications
8 Source0:        http://anki.googlecode.com/files/%{name}-%{version}.tgz
9 # Source0-md5:  b6f884b87cfe8265342306c593393a09
10 URL:            http://ichi2.net/anki/
11 BuildRequires:  python-PyQt4
12 BuildRequires:  python-SQLAlchemy
13 BuildRequires:  python-devel
14 BuildRequires:  python-distribute
15 BuildRequires:  python-simplejson
16 BuildRequires:  python-sqlite
17 BuildRequires:  rpm-pythonprov
18 BuildRequires:  rpmbuild(macros) >= 1.219
19 %pyrequires_eq  python-modules
20 Requires:       python-BeautifulSoup
21 Requires:       python-PyQt4
22 Requires:       python-SQLAlchemy
23 Requires:       python-simplejson
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
This page took 0.033865 seconds and 3 git commands to generate.