]>
Commit | Line | Data |
---|---|---|
368c1617 | 1 | Summary: Stop Bill from loading his OS into all the computers |
772784b0 | 2 | Summary(pl): Powstrzymaj Billa przed instalowaniem jego systemu na wszystkich komputerach |
f5aa9312 JR |
3 | Name: xbill |
4 | Version: 2.0 | |
24a560dd | 5 | Release: 15 |
d8062014 | 6 | License: MIT |
8e3a7f29 | 7 | Group: X11/Applications/Games |
ef2512dd | 8 | Group(de): X11/Applikationen/Spiele |
8e3a7f29 | 9 | Group(pl): X11/Aplikacje/Gry |
368c1617 | 10 | Source0: ftp://ftp.x.org/contrib/games/%{name}-%{version}.tgz |
d8062014 | 11 | Source1: %{name}.desktop |
12 | Source2: %{name}.png | |
8e3a7f29 JB |
13 | Patch0: %{name}-c++.patch |
14 | Patch1: %{name}-imake.patch | |
d8062014 | 15 | Icon: xbill.xpm |
8e3a7f29 JB |
16 | BuildRequires: XFree86-devel |
17 | BuildRequires: libstdc++-devel | |
d8062014 | 18 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) |
89813590 | 19 | |
368c1617 | 20 | %define _prefix /usr/X11R6 |
21 | %define _mandir %{_prefix}/man | |
22 | ||
89813590 | 23 | %description |
368c1617 | 24 | The xbill game tests your reflexes as you seek out and destroy all |
25 | forms of Bill, establish new operating systems and boldly go where no | |
26 | geek has gone before. Xbill has become an increasingly attractive | |
27 | option as the Linux Age progresses, and it is very popular at Red Hat. | |
89813590 JR |
28 | |
29 | %prep | |
30 | %setup -q | |
8e3a7f29 JB |
31 | %patch0 -p1 |
32 | %patch1 -p1 | |
89813590 JR |
33 | |
34 | %build | |
35 | xmkmf | |
8e3a7f29 | 36 | %{__make} \ |
772784b0 | 37 | CXXDEBUGFLAGS="%{rpmcflags} -fno-rtti -fno-exceptions -fno-implicit-templates" |
89813590 JR |
38 | |
39 | %install | |
40 | rm -rf $RPM_BUILD_ROOT | |
d8062014 | 41 | install -d $RPM_BUILD_ROOT{%{_applnkdir}/Games,%{_pixmapsdir}} |
89813590 | 42 | |
8c991f1e | 43 | %{__make} DESTDIR=$RPM_BUILD_ROOT install install.man |
89813590 JR |
44 | |
45 | ( cd $RPM_BUILD_ROOT | |
368c1617 | 46 | install -d .%{_libdir}/xbill |
89813590 JR |
47 | for i in bitmaps pixmaps |
48 | do | |
d8062014 | 49 | mv -f ./var/lib/games/xbill/$i .%{_libdir}/xbill/$i |
772784b0 | 50 | ln -sf ../../../..%{_libdir}/xbill/$i ./var/lib/games/xbill/$i |
89813590 | 51 | done |
89813590 JR |
52 | ) |
53 | ||
d8062014 | 54 | install %{SOURCE1} $RPM_BUILD_ROOT%{_applnkdir}/Games |
55 | install %{SOURCE2} $RPM_BUILD_ROOT%{_pixmapsdir} | |
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) |
d8062014 | 64 | %doc *.gz |
4ffee726 | 65 | %attr(2755,root,games) %{_bindir}/xbill |
d8062014 | 66 | %attr(775,root,games) %dir /var/lib/games/xbill |
67 | %attr(664,root,games) %config /var/lib/games/xbill/scores | |
7bdb56e4 JR |
68 | /var/lib/games/xbill/bitmaps |
69 | /var/lib/games/xbill/pixmaps | |
8e3a7f29 | 70 | %{_mandir}/man1/* |
d8062014 | 71 | %{_libdir}/xbill |
72 | %{_applnkdir}/Games/xbill.desktop | |
73 | %{_pixmapsdir}/* |