1 |
Name: auralquiz |
2 |
Version: 0.6 |
3 |
Release: %mkrel 1 |
4 |
|
5 |
License: GPLv2+ |
6 |
Group: Games/Other |
7 |
URL: http://qt-apps.org/content/show.php/Auralquiz?content=139127&PHPSESSID=fbbd0bb50ef4774af4f2657b17399239 |
8 |
Source0: %{name}-%{version}.tar.gz |
9 |
|
10 |
BuildRequires: phonon-devel |
11 |
BuildRequires: qt4-devel |
12 |
|
13 |
Requires: qt4-common |
14 |
Requires: phonon-backend |
15 |
|
16 |
|
17 |
Summary: A simple music quiz game for GNU/Linux |
18 |
|
19 |
%description |
20 |
The game plays short pieces of music files from the player's chosen |
21 |
folders, and presents a question and several answers about |
22 |
the current song. |
23 |
The fastest the answer, the more points the player receives. Up to |
24 |
8 people can play, in a turn-based mode. |
25 |
The game is quite complete already, but there are more modes |
26 |
to be added, and several rough edges to polish. |
27 |
Auralquiz uses Phonon for sound output. xine-backend is recommended. |
28 |
Gstreamer-backend works mostly fine. |
29 |
VLC-backend doesn't work at this point. |
30 |
|
31 |
%prep |
32 |
%setup -q -n auralquiz-auralquiz-dev |
33 |
|
34 |
%build |
35 |
%qmake_qt4 |
36 |
|
37 |
%make |
38 |
|
39 |
%install |
40 |
rm -rf $RPM_BUILD_ROOT |
41 |
|
42 |
# menu entry |
43 |
install -d -m 755 %{buildroot}%{_datadir}/applications/ |
44 |
install -m 644 %{name}.desktop %{buildroot}%{_datadir}/applications/ |
45 |
|
46 |
# icons |
47 |
%__install -d -m755 $RPM_BUILD_ROOT/%{_datadir}/pixmaps |
48 |
convert icon/%{name}-icon.png -size 48x48 $RPM_BUILD_ROOT/%{_datadir}/pixmaps/%{name}.png |
49 |
convert icon/%{name}-icon.png -size 32x32 $RPM_BUILD_ROOT/%{_datadir}/pixmaps/%{name}.png |
50 |
convert icon/%{name}-icon.png -size 16x16 $RPM_BUILD_ROOT/%{_datadir}/pixmaps/%{name}.png |
51 |
|
52 |
#binaries |
53 |
install -d -m 755 %{buildroot}/%{_gamesbindir}/ |
54 |
install -m 755 %{name} %{buildroot}/%{_gamesbindir}/ |
55 |
|
56 |
#lang |
57 |
install -d -m 755 %{buildroot}%{_datadir}/%{name}/locale |
58 |
install -m 755 translations/*.qm %{buildroot}%{_datadir}/%{name}/locale/ |
59 |
|
60 |
%files |
61 |
%defattr(-, root, root, -) |
62 |
%doc CHANGELOG LICENSE README |
63 |
%attr(0755,root,root) %{_gamesbindir}/%{name} |
64 |
%{_datadir}/applications/%{name}.desktop |
65 |
%{_datadir}/pixmaps/* |
66 |
%{_datadir}/%{name}/locale/*qm |