]> git.pld-linux.org Git - packages/atakks.git/blob - atakks.spec
- initial release
[packages/atakks.git] / atakks.spec
1 Summary:        atakks
2 Name:           atakks
3 Version:        1.0
4 Release:        1
5 License:        GPL
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)
15
16 %define         _prefix         /usr/X11R6
17
18 %description
19 Ataxx is some old chinese reflexion game, like othello, and can be
20 played by two players.
21
22 %prep
23 %setup -q -n %{name}_%{version}
24 %patch0 -p1
25
26 %build
27 rm -f atakks
28
29 LDFLAGS="-lSDL -lpthread -s -L/usr/X11R6/lib"
30 CFLAGS="-Wall -ansi -DUS"
31 gcc $LDFLAGS $CFLAGS -o %{name} *.c -I%{_includedir}
32
33 %install
34 rm -rf $RPM_BUILD_ROOT
35
36 install -d $RPM_BUILD_ROOT $RPM_BUILD_ROOT%{_applnkdir}/Games 
37 install -d $RPM_BUILD_ROOT{%{_bindir},%{_datadir}/%{name}}
38
39 install *.bmp $RPM_BUILD_ROOT%{_datadir}/%{name}
40 install %{name} $RPM_BUILD_ROOT%{_bindir}
41
42 install %{SOURCE1} $RPM_BUILD_ROOT%{_applnkdir}/Games
43
44 %clean
45 rm -rf $RPM_BUILD_ROOT
46
47 %files
48 %defattr(644,root,root,755)
49 %doc README
50 %dir %{_datadir}/%{name}
51 %attr(755,root,root) %{_bindir}/*
52 %{_datadir}/%{name}/*.bmp
53 %{_applnkdir}/Games/*
This page took 0.088647 seconds and 3 git commands to generate.