]>
Commit | Line | Data |
---|---|---|
368c1617 | 1 | Summary: Stop Bill from loading his OS into all the computers |
f5aa9312 JR |
2 | Name: xbill |
3 | Version: 2.0 | |
8e3a7f29 | 4 | Release: 8 |
f5aa9312 | 5 | Copyright: MIT |
8e3a7f29 JB |
6 | Group: X11/Applications/Games |
7 | Group(de): X11/Applikationen/Spiele | |
8 | Group(pl): X11/Aplikacje/Gry | |
368c1617 | 9 | Source0: ftp://ftp.x.org/contrib/games/%{name}-%{version}.tgz |
8e3a7f29 JB |
10 | Patch0: %{name}-c++.patch |
11 | Patch1: %{name}-imake.patch | |
ba1c2a4b | 12 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) |
8e3a7f29 JB |
13 | BuildRequires: XFree86-devel |
14 | BuildRequires: libstdc++-devel | |
89813590 | 15 | |
368c1617 | 16 | %define _prefix /usr/X11R6 |
17 | %define _mandir %{_prefix}/man | |
18 | ||
89813590 | 19 | %description |
368c1617 | 20 | The xbill game tests your reflexes as you seek out and destroy all |
21 | forms of Bill, establish new operating systems and boldly go where no | |
22 | geek has gone before. Xbill has become an increasingly attractive | |
23 | option as the Linux Age progresses, and it is very popular at Red Hat. | |
89813590 JR |
24 | |
25 | %prep | |
26 | %setup -q | |
8e3a7f29 JB |
27 | %patch0 -p1 |
28 | %patch1 -p1 | |
89813590 JR |
29 | |
30 | %build | |
31 | xmkmf | |
8e3a7f29 JB |
32 | %{__make} \ |
33 | CXXDEBUGFLAGS="%{?debug:-g -O}%{!?debug:$RPM_OPT_FLAGS} -fno-rtti -fno-exceptions -fno-implicit-templates" | |
89813590 JR |
34 | |
35 | %install | |
36 | rm -rf $RPM_BUILD_ROOT | |
37 | ||
8c991f1e | 38 | %{__make} DESTDIR=$RPM_BUILD_ROOT install install.man |
89813590 JR |
39 | |
40 | ( cd $RPM_BUILD_ROOT | |
368c1617 | 41 | install -d .%{_libdir}/xbill |
89813590 JR |
42 | for i in bitmaps pixmaps |
43 | do | |
8e3a7f29 | 44 | mv -f ./var/lib/games/xbill/$i .%{_libdir}/xbill/$i |
368c1617 | 45 | ln -s ../../../..%{_libdir}/xbill/$i ./var/lib/games/xbill/$i |
89813590 JR |
46 | done |
47 | ||
368c1617 | 48 | install -d .%{_sysconfdir}/X11/wmconfig |
49 | cat > .%{_sysconfdir}/X11/wmconfig/xbill <<EOF | |
89813590 JR |
50 | xbill name "xbill" |
51 | xbill description "Save the world" | |
52 | xbill group Games/Video | |
53 | xbill exec "xbill &" | |
54 | EOF | |
55 | ) | |
56 | ||
8e3a7f29 JB |
57 | gzip -9nf README README.Ports ChangeLog |
58 | ||
89813590 JR |
59 | %clean |
60 | rm -rf $RPM_BUILD_ROOT | |
61 | ||
62 | %files | |
f5aa9312 | 63 | %defattr(644,root,root,755) |
8e3a7f29 | 64 | %attr(2755,root,games) %{_prefix}/bin/xbill |
7bdb56e4 JR |
65 | %attr(775,root,games) %dir /var/lib/games/xbill |
66 | %attr(664,root,games) %config /var/lib/games/xbill/scores | |
67 | /var/lib/games/xbill/bitmaps | |
68 | /var/lib/games/xbill/pixmaps | |
368c1617 | 69 | %{_libdir}/xbill |
70 | %config %{_sysconfdir}/X11/wmconfig/xbill | |
8e3a7f29 JB |
71 | %{_mandir}/man1/* |
72 | %doc *.gz |