]> git.pld-linux.org Git - packages/bzflag.git/blob - bzflag.spec
- fix for broken gethostbyname() timeout handling
[packages/bzflag.git] / bzflag.spec
1 Summary:        multiplayer 3D tank battle game
2 Name:           bzflag
3 Version:        1.7e1
4 Release:        1
5 Copyright:      Chris Schoeneman 1993-1999
6 Group:          X11/Games/Video
7 Group(pl):      X11/Gry/Wideo
8 Source0:        ftp://ftp.sourceforge.net/pub/sourceforge/bzflag/%{name}_%{version}.tar.gz
9 Patch1:         bzflag-paths.patch
10 Patch2:         bzflag-opts.patch
11 Patch3:         bzflag-reuse_addr.patch
12 Patch4:         bzflag-printscore.patch
13 URL:            http://bzflag.org/
14 BuildRequires:  XFree86-OpenGL-devel
15 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
16
17 %define         _prefix         /usr/X11R6
18
19 %description
20 bzflag is a networked multiplayer 3D tank battle game, combining both
21 fast action and strategy. Free-for-all and capture-the-flag styles are
22 available.
23
24 %description -l pl
25 bzflag jest sieciow± gr± czo³gow± 3D, ³±cz±c± szybk± akcjê ze
26 strategi±. Graæ mo¿na w wolnym stylu lub metod± "zdob±d¼ flagê".
27
28 %prep
29 %setup -qn bzflag
30 %patch1 -p1
31 %patch2 -p1
32 %patch3 -p1
33 %patch4 -p1
34
35 %build
36 %{__make} linux # other, arch-dependent targets differ only in optymalisation flags
37
38 COPTIMIZER="-DNDEBUG $RPM_OPT_FLAGS" \
39 CXXOPTIMIZER="-DNDEBUG $RPM_OPT_FLAGS" \
40 %{__make}
41
42 %install
43 rm -rf $RPM_BUILD_ROOT
44 install -d ${RPM_BUILD_ROOT}{%{_bindir},%{_datadir}/bzflag,%{_mandir}/man6}
45 install bin/* ${RPM_BUILD_ROOT}%{_bindir}
46 install man/*.6s ${RPM_BUILD_ROOT}%{_mandir}/man6
47 install data/* ${RPM_BUILD_ROOT}%{_datadir}/bzflag
48
49 gzip -9nf README BUGS RELNOTES TODO || :
50 gzip -9nf ${RPM_BUILD_ROOT}%{_mandir}/man6/*
51
52 %clean
53 rm -rf $RPM_BUILD_ROOT
54
55 %files
56 %defattr(644,root,root,755)
57 %doc README.gz BUGS.gz RELNOTES.gz TODO.gz 
58 %attr(755,root,root) %{_bindir}/*
59 %{_mandir}/man6/*
60 %{_datadir}/bzflag
This page took 0.055362 seconds and 3 git commands to generate.