]> git.pld-linux.org Git - packages/xbill.git/blob - xbill.spec
- more %%{__make} macros.
[packages/xbill.git] / xbill.spec
1 Summary:        Stop Bill from loading his OS into all the computers
2 Name:           xbill
3 Version:        2.0
4 Release:        7
5 Copyright:      MIT
6 Group:          X11/Games
7 Group(pl):      X11/Gry
8 Source0:        ftp://ftp.x.org/contrib/games/%{name}-%{version}.tgz
9 Patch0:         xbill-2.0-rh.patch
10 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
11
12 %define         _prefix         /usr/X11R6
13 %define         _mandir         %{_prefix}/man
14
15 %description
16 The xbill game tests your reflexes as you seek out and destroy all
17 forms of Bill, establish new operating systems and boldly go where no
18 geek has gone before. Xbill has become an increasingly attractive
19 option as the Linux Age progresses, and it is very popular at Red Hat.
20
21 %prep
22 %setup -q
23 %patch -p1
24
25 %build
26 xmkmf
27 %{__make}
28
29 %install
30 rm -rf $RPM_BUILD_ROOT
31
32 %{__make} DESTDIR=$RPM_BUILD_ROOT install install.man
33
34 ( cd $RPM_BUILD_ROOT
35   install -d .%{_libdir}/xbill
36   for i in bitmaps pixmaps
37   do
38     mv ./var/lib/games/xbill/$i .%{_libdir}/xbill/$i
39     ln -s ../../../..%{_libdir}/xbill/$i ./var/lib/games/xbill/$i
40   done
41
42 install -d .%{_sysconfdir}/X11/wmconfig
43 cat > .%{_sysconfdir}/X11/wmconfig/xbill <<EOF
44 xbill name "xbill"
45 xbill description "Save the world"
46 xbill group Games/Video
47 xbill exec "xbill &"
48 EOF
49 )
50
51 %clean
52 rm -rf $RPM_BUILD_ROOT
53
54 %files
55 %defattr(644,root,root,755)
56 %attr(2755,root,games) %{_prefix}/X11R6/bin/xbill
57 %attr(775,root,games)   %dir /var/lib/games/xbill
58 %attr(664,root,games)   %config /var/lib/games/xbill/scores
59 /var/lib/games/xbill/bitmaps
60 /var/lib/games/xbill/pixmaps
61 %{_libdir}/xbill
62 %config %{_sysconfdir}/X11/wmconfig/xbill
This page took 0.098709 seconds and 4 git commands to generate.