1 |
%define name fillets-ng |
2 |
%define version 1.0.0 |
3 |
%define release %mkrel 1 |
4 |
|
5 |
%define dataversion 1.0.0 |
6 |
|
7 |
Summary: Fish Fillets NG |
8 |
Name: %{name} |
9 |
Version: %{version} |
10 |
Release: %{release} |
11 |
License: GPLv2+ |
12 |
Group: Games/Puzzles |
13 |
URL: http://fillets.sourceforge.net/ |
14 |
Source0: http://downloads.sourceforge.net/fillets/%{name}-%{version}.tar.gz |
15 |
Source3: %{name}-48.png |
16 |
Source4: %{name}-32.png |
17 |
Source5: %{name}-16.png |
18 |
Requires: %{name}-data = %{dataversion} |
19 |
Requires: soundwrapper |
20 |
BuildRequires: lua-devel |
21 |
BuildRequires: libSDL-devel |
22 |
BuildRequires: libSDL_mixer-devel |
23 |
BuildRequires: libSDL_image-devel |
24 |
BuildRequires: libSDL_ttf-devel |
25 |
BuildRequires: fribidi-devel |
26 |
BuildRoot: %{_tmppath}/%{name}-%{version}-buildroot |
27 |
|
28 |
%description |
29 |
Fish Fillets NG is strictly a puzzle game. The goal in every of the seventy |
30 |
levels is always the same: find a safe way out. The fish utter witty remarks |
31 |
about their surroundings, the various inhabitants of their underwater realm |
32 |
quarrel among themselves or comment on the efforts of your fish. The whole |
33 |
game is accompanied by quiet, comforting music. |
34 |
|
35 |
%prep |
36 |
%setup -q |
37 |
|
38 |
%build |
39 |
%configure2_5x --bindir=%{_gamesbindir} --datadir=%{_gamesdatadir}/%{name} |
40 |
%make |
41 |
|
42 |
%install |
43 |
rm -rf $RPM_BUILD_ROOT |
44 |
%makeinstall_std |
45 |
|
46 |
# Menu entry |
47 |
install -d %{buildroot}%{_datadir}/applications |
48 |
cat > %{buildroot}%{_datadir}/applications/mandriva-%{name}.desktop << EOF |
49 |
[Desktop Entry] |
50 |
Name=Fish Fillets NG |
51 |
Comment=Fish Fillets NG puzzle game |
52 |
Exec=soundwrapper %_gamesbindir/fillets |
53 |
Icon=%{name} |
54 |
Terminal=false |
55 |
Type=Application |
56 |
Categories=Game;LogicGame; |
57 |
EOF |
58 |
|
59 |
# Icon installation |
60 |
install -D -m 644 %{SOURCE3} $RPM_BUILD_ROOT%{_liconsdir}/%{name}.png |
61 |
install -D -m 644 %{SOURCE4} $RPM_BUILD_ROOT%{_iconsdir}/%{name}.png |
62 |
install -D -m 644 %{SOURCE5} $RPM_BUILD_ROOT%{_miconsdir}/%{name}.png |
63 |
|
64 |
%clean |
65 |
rm -rf $RPM_BUILD_ROOT |
66 |
|
67 |
%files |
68 |
%defattr(-,root,root) |
69 |
%doc AUTHORS COPYING ChangeLog INSTALL NEWS README TODO |
70 |
%{_gamesbindir}/fillets |
71 |
%{_mandir}/man6/* |
72 |
%{_liconsdir}/%{name}.png |
73 |
%{_iconsdir}/%{name}.png |
74 |
%{_miconsdir}/%{name}.png |
75 |
%{_datadir}/applications/mandriva-%{name}.desktop |
76 |
|
77 |
|
78 |
|