]> git.pld-linux.org Git - packages/atakks.git/blob - atakks.spec
- massive change ( validate errors warrings from desktop-file-validate)
[packages/atakks.git] / atakks.spec
1 Summary:        atakks game
2 Summary(pl.UTF-8):      Gra atakks
3 Name:           atakks
4 Version:        1.0
5 Release:        1
6 License:        GPL
7 Group:          X11/Applications/Games
8 Source0:        http://team.gcu-squad.org/~fab/down/%{name}.tgz
9 # Source0-md5:  9153c731620bf85bb60d00a1c93b621e
10 Source1:        %{name}.desktop
11 Patch0:         %{name}-dir.patch
12 URL:            http://team.gcu-squad.org/~fab/
13 BuildRequires:  SDL-devel >= 1.2.4
14 BuildRequires:  SDL_image-devel
15 Requires:       SDL >= 1.2.4
16 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
17
18 %description
19 Ataxx is some old Chinese reflexion game, like othello, and can be
20 played by two players.
21
22 %description -l pl.UTF-8
23 Ataxx to stara chińska gra umysłowa, jak otello, w którą może grać
24 dwóch graczy.
25
26 %prep
27 %setup -q -n %{name}_%{version}
28 %patch0 -p1
29
30 %build
31 rm -f atakks
32
33 LDFLAGS="%{rpmldflags} -lSDL -lpthread -L/usr/X11R6/lib"
34 CFLAGS="%{rpmcflags} -Wall -ansi -DUS -I/usr/X11R6/include"
35 %{__cc} $LDFLAGS $CFLAGS -o %{name} *.c
36
37 %install
38 rm -rf $RPM_BUILD_ROOT
39
40 install -d $RPM_BUILD_ROOT $RPM_BUILD_ROOT%{_applnkdir}/Games
41 install -d $RPM_BUILD_ROOT{%{_bindir},%{_datadir}/%{name}}
42
43 install *.bmp $RPM_BUILD_ROOT%{_datadir}/%{name}
44 install %{name} $RPM_BUILD_ROOT%{_bindir}
45
46 install %{SOURCE1} $RPM_BUILD_ROOT%{_applnkdir}/Games
47
48 %clean
49 rm -rf $RPM_BUILD_ROOT
50
51 %files
52 %defattr(644,root,root,755)
53 %doc README
54 %attr(755,root,root) %{_bindir}/*
55 %{_datadir}/%{name}
56 %{_applnkdir}/Games/*
This page took 0.052415 seconds and 3 git commands to generate.