]> git.pld-linux.org Git - packages/anki.git/blob - anki.spec
- updated to 2.0-rc6
[packages/anki.git] / anki.spec
1 # TODO - post?
2 %define         pre     rc6
3 Summary:        SuperMemo(tm)-like program
4 Summary(pl.UTF-8):      Program podobny do SuperMemo
5 Name:           anki
6 Version:        2.0
7 Release:        0.%{pre}.0.2
8 License:        GPL v3+
9 Group:          Applications
10 Source0:        http://ankisrs.net/download/mirror/%{name}-%{version}-%{pre}.tgz
11 # Source0-md5:  ab77dc8fb1a2435771677743282bc4ab
12 URL:            http://ankisrs.net/
13 BuildRequires:  python-PyQt4
14 BuildRequires:  python-SQLAlchemy
15 BuildRequires:  python-devel
16 BuildRequires:  python-distribute
17 BuildRequires:  python-simplejson
18 BuildRequires:  python-sqlite
19 BuildRequires:  rpm-pythonprov
20 BuildRequires:  rpmbuild(macros) >= 1.219
21 %pyrequires_eq  python-modules
22 Requires:       python-BeautifulSoup >= 3.2.1
23 Requires:       python-PyQt4
24 Requires:       python-SQLAlchemy
25 Requires:       python-httplib2 >= 0.7.4
26 Requires:       python-pyaudio >= 0.2.4
27 Requires:       python-simplejson
28 BuildArch:      noarch
29 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
30
31 %description
32 A flash card program to make your review process more efficient.
33
34 %description -l pl.UTF-8
35 Program podobny w dziaƂaniu do SuperMemo(tm).
36
37 %prep
38 %setup -q
39
40 %build
41
42 %install
43 rm -rf $RPM_BUILD_ROOT
44 install -d $RPM_BUILD_ROOT{%{_desktopdir},%{_pixmapsdir},%{_mandir}/man1,%{_bindir}} \
45         $RPM_BUILD_ROOT%{_datadir}/%{name}/libanki
46
47 cp -a aqt $RPM_BUILD_ROOT%{_datadir}/%{name}
48 cp -a libanki/anki $RPM_BUILD_ROOT%{_datadir}/%{name}/libanki
49 cp -p anki $RPM_BUILD_ROOT%{_bindir}
50 cp -p anki.xpm anki.png $RPM_BUILD_ROOT%{_pixmapsdir}
51 cp -p anki.desktop $RPM_BUILD_ROOT%{_desktopdir}
52 cp -p anki.1 $RPM_BUILD_ROOT%{_mandir}/man1
53
54 %py_ocomp $RPM_BUILD_ROOT%{_datadir}/%{name}
55 %py_comp $RPM_BUILD_ROOT%{_datadir}/%{name}
56 %py_postclean
57
58 %clean
59 rm -rf $RPM_BUILD_ROOT
60
61 %if 0
62 %post
63 xdg-mime install anki.xml
64 xdg-mime default anki.desktop application/x-anki
65 xdg-mime default anki.desktop application/x-apkg
66 %endif
67
68 %files
69 %defattr(644,root,root,755)
70 %doc README*
71 %attr(755,root,root) %{_bindir}/%{name}
72 %{_datadir}/anki
73 %{_desktopdir}/*.desktop
74 %{_pixmapsdir}/*
75 %{_mandir}/man1/anki.1*
This page took 0.054728 seconds and 3 git commands to generate.