6 Group: X11/Applications/Games
7 Source0: http://team.gcu-squad.org/~fab/down/atakks.tgz
8 Source1: %{name}.desktop
9 Patch0: %{name}-dir.patch
10 URL: http://team.gcu-squad.org/~fab/
11 BuildRequires: SDL-devel
12 BuildRequires: SDL_image-devel
13 Requires: SDL >= 1.2.4
14 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
16 %define _prefix /usr/X11R6
19 Ataxx is some old chinese reflexion game, like othello, and can be
20 played by two players.
23 %setup -q -n %{name}_%{version}
29 LDFLAGS="-lSDL -lpthread -s -L/usr/X11R6/lib"
30 CFLAGS="-Wall -ansi -DUS"
31 gcc $LDFLAGS $CFLAGS -o %{name} *.c -I%{_includedir}
34 rm -rf $RPM_BUILD_ROOT
36 install -d $RPM_BUILD_ROOT $RPM_BUILD_ROOT%{_applnkdir}/Games
37 install -d $RPM_BUILD_ROOT{%{_bindir},%{_datadir}/%{name}}
39 install *.bmp $RPM_BUILD_ROOT%{_datadir}/%{name}
40 install %{name} $RPM_BUILD_ROOT%{_bindir}
42 install %{SOURCE1} $RPM_BUILD_ROOT%{_applnkdir}/Games
45 rm -rf $RPM_BUILD_ROOT
48 %defattr(644,root,root,755)
50 %dir %{_datadir}/%{name}
51 %attr(755,root,root) %{_bindir}/*
52 %{_datadir}/%{name}/*.bmp