]> git.pld-linux.org Git - packages/xbill.git/blob - xbill.spec
- release 14 (for allow upgrade from RH version),
[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:        14
5 License:        MIT
6 Group:          X11/Applications/Games
7 Group(de):      X11/Aplikacje/Spiele
8 Group(pl):      X11/Aplikacje/Gry
9 Source0:        ftp://ftp.x.org/contrib/games/%{name}-%{version}.tgz
10 Source1:        %{name}.desktop
11 Source2:        %{name}.png
12 Patch0:         %{name}-c++.patch
13 Patch1:         %{name}-imake.patch
14 Icon:           xbill.xpm
15 BuildRequires:  XFree86-devel
16 BuildRequires:  libstdc++-devel
17 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
18
19 %define         _prefix         /usr/X11R6
20 %define         _mandir         %{_prefix}/man
21
22 %description
23 The xbill game tests your reflexes as you seek out and destroy all
24 forms of Bill, establish new operating systems and boldly go where no
25 geek has gone before. Xbill has become an increasingly attractive
26 option as the Linux Age progresses, and it is very popular at Red Hat.
27
28 %prep
29 %setup -q
30 %patch0 -p1
31 %patch1 -p1
32
33 %build
34 xmkmf
35 %{__make} \
36         CXXDEBUGFLAGS="%{?debug:-g -O}%{!?debug:$RPM_OPT_FLAGS} \
37         -fno-rtti -fno-exceptions -fno-implicit-templates"
38
39 %install
40 rm -rf $RPM_BUILD_ROOT
41 install -d $RPM_BUILD_ROOT{%{_applnkdir}/Games,%{_pixmapsdir}}
42
43 %{__make} DESTDIR=$RPM_BUILD_ROOT install install.man
44
45 ( cd $RPM_BUILD_ROOT
46   install -d .%{_libdir}/xbill
47   for i in bitmaps pixmaps
48   do
49         mv -f ./var/lib/games/xbill/$i .%{_libdir}/xbill/$i
50         ln -s ../../../..%{_libdir}/xbill/$i ./var/lib/games/xbill/$i
51   done
52 )
53
54 install %{SOURCE1} $RPM_BUILD_ROOT%{_applnkdir}/Games
55 install %{SOURCE2} $RPM_BUILD_ROOT%{_pixmapsdir}
56
57 gzip -9nf README README.Ports ChangeLog
58
59 %clean
60 rm -rf $RPM_BUILD_ROOT
61
62 %files
63 %defattr(644,root,root,755)
64 %doc *.gz
65 %attr(2755,root,games) %{_bindir}/xbill
66 %attr(775,root,games)  %dir /var/lib/games/xbill
67 %attr(664,root,games)  %config /var/lib/games/xbill/scores
68 /var/lib/games/xbill/bitmaps
69 /var/lib/games/xbill/pixmaps
70 %{_mandir}/man1/*
71 %{_libdir}/xbill
72 %{_applnkdir}/Games/xbill.desktop
73 %{_pixmapsdir}/*
This page took 0.056783 seconds and 4 git commands to generate.