1 |
%define version 0.6.5 |
2 |
%define release %mkrel 9 |
3 |
%define name typespeed |
4 |
|
5 |
|
6 |
|
7 |
|
8 |
Name: %name |
9 |
Summary: Type words that are flying by from left to right as fast as you can |
10 |
License: GPLv2+ |
11 |
URL: http://tobias.eyedacor.org/typespeed/ |
12 |
BuildRoot: %{_tmppath}/%{name}-%{version}-root |
13 |
Source: http://tobias.eyedacor.org/typespeed/%{name}-%{version}.tar.gz |
14 |
Group: Games/Other |
15 |
Version: %version |
16 |
Release: %release |
17 |
BuildRequires: ncurses-devel, gettext-devel |
18 |
|
19 |
%description |
20 |
Typespeed gives your fingers' cps (total and correct), typoratio and |
21 |
some points to compare with your friends. |
22 |
|
23 |
Typespeed's idea is ripped from ztspeed (a dos game made by Zorlim). |
24 |
Idea of the game should be clear to anyone, just type and type it fast |
25 |
or be a loser. |
26 |
|
27 |
%prep |
28 |
%setup -q |
29 |
|
30 |
%build |
31 |
%configure --with-highscoredir=%{_localstatedir}/lib/games |
32 |
%make |
33 |
|
34 |
%install |
35 |
%makeinstall highscoredir=$RPM_BUILD_ROOT%{_localstatedir}/lib/games |
36 |
rm -f $RPM_BUILD_ROOT%{_datadir}/doc/%{name}/README |
37 |
mkdir -p $RPM_BUILD_ROOT%{_datadir}/applications |
38 |
cat > $RPM_BUILD_ROOT%{_datadir}/applications/mandriva-%{name}.desktop <<EOF |
39 |
[Desktop Entry] |
40 |
Name=Typespeed |
41 |
Comment=Test your typing speed |
42 |
Exec=/usr/bin/typespeed |
43 |
Type=Application |
44 |
Terminal=true |
45 |
Categories=X-MandrivaLinux-MoreApplications-Games-Other;Game;Application; |
46 |
X-Desktop-File-Install-Version=0.9 |
47 |
EOF |
48 |
|
49 |
%clean |
50 |
%{__rm} -Rf %{buildroot} |
51 |
|
52 |
%files |
53 |
%defattr(-,root,root) |
54 |
%doc doc/README COPYING NEWS TODO BUGS AUTHORS |
55 |
%config(noreplace) %{_sysconfdir}/typespeedrc |
56 |
%attr(2755,root,games) %{_bindir}/%{name} |
57 |
%attr(775,root,games) %{_localstatedir}/lib/games/%{name}.score |
58 |
%{_datadir}/%{name} |
59 |
%{_mandir}/man6/%{name}.6* |
60 |
%{_datadir}/locale/de_DE/LC_MESSAGES/%{name}.mo |
61 |
%{_datadir}/locale/fr_FR/LC_MESSAGES/%{name}.mo |
62 |
%{_datadir}/locale/it/LC_MESSAGES/%{name}.mo |
63 |
%{_datadir}/applications/mandriva-%{name}.desktop |
64 |
|
65 |
|
66 |
|