3 %bcond_without images # don't build images package
7 Summary: Crossfire client
8 Summary(pl.UTF-8): Klient Crossfire
13 Group: Applications/Games
14 Source0: http://downloads.sourceforge.net/crossfire/%{name}-%{version}.tar.gz
15 # Source0-md5: 7b22bf93ebb581a5bfd5682df107af76
16 Source1: http://downloads.sourceforge.net/crossfire/%{name}-sounds-%{sndver}.tar.gz
17 # Source1-md5: 1985fc187a7624f48a4c4e9d609208ba
18 Source2: http://downloads.sourceforge.net/crossfire/%{name}-images-%{imgver}.tar.gz
19 # Source2-md5: e68b6f32c4d15e65af8535a346efe51a
20 Patch0: %{name}-libpng15.patch
21 URL: http://crossfire.real-time.com/
22 BuildRequires: OpenGL-glut-devel
23 BuildRequires: SDL-devel
24 BuildRequires: SDL_image-devel
25 BuildRequires: autoconf
26 BuildRequires: automake
27 BuildRequires: gtk+-devel
28 BuildRequires: gtk+2-devel
29 BuildRequires: libtool
30 BuildRequires: perl-base
31 BuildRequires: pkgconfig
32 BuildRequires: xorg-lib-libICE-devel
33 BuildRequires: xorg-lib-libX11-devel
34 BuildRequires: xorg-lib-libXext-devel
35 Suggests: crossfire-client-images
36 Suggests: crossfire-client-sounds
37 Obsoletes: crossfire-client-common
38 Obsoletes: crossfire-client-gtk
39 Obsoletes: crossfire-client-gtk2
40 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
43 GTK+2 client to crossfire.
45 Crossfire is a multiplayer graphical arcade and adventure game made
46 for the X-Window environment. There are also Windows and Java clients
49 It has certain flavours from other games, especially Gauntlet (TM) and
52 Any number of players can move around in their own window, finding and
53 sing items and battle monsters. They can choose to cooperate or
54 compete in the same "world".
56 %description -l pl.UTF-8
57 Klient Crossfire pod GTK+2.
59 Crossfire to graficzna gra przygodowa dla środowiska X-Window. Są
60 także dostępni klienci pod Windows i w Javie. Łączy cechy z kilku
61 gier, głównie Gauntleta i Nethacka/Morii.
63 Dowolna liczba graczy może się poruszać w swoich oknach, szukając
64 przedmiotów i walcząc z potworami. Mogą grać w kooperacji lub
65 przeciwko sobie w tym samym "świecie".
68 Summary: Crossfire sounds
69 Summary(pl.UTF-8): Dźwięki do Crossfire
70 Group: Applications/Games
73 Some sound files and the sound server for crossfire.
75 %description sounds -l pl.UTF-8
76 Pliki dźwiękowe i serwer dźwięku dla Crossfire.
79 Summary: Crossfire images
80 Summary(pl.UTF-8): Obrazki do Crossfire
81 Group: Applications/Games
84 Some images extracted from server for Crossfire.
86 %description images -l pl.UTF-8
87 Trochę obrazków wyciągniętych z serwera do Crossfire.
102 %{__aclocal} -I macros
106 %{?debug:--enable-debug} \
108 --with-sound-dir=%{_datadir}/%{name}/sounds
109 %{__perl} -i -p -e 's/\#define HAVE_DMALLOC_H 1/\/\* \#undef HAVE_DMALLOC_H \*\//' common/config.h
113 rm -rf $RPM_BUILD_ROOT
114 install -d $RPM_BUILD_ROOT{%{_bindir},%{_mandir}/man1,%{_datadir}/%{name}/sounds}
117 DESTDIR=$RPM_BUILD_ROOT
118 install cfsounds/*.raw $RPM_BUILD_ROOT%{_datadir}/%{name}/sounds/
120 install images/bmaps.client images/crossfire.base images/crossfire.clsc \
121 $RPM_BUILD_ROOT%{_datadir}/%{name}
125 rm -rf $RPM_BUILD_ROOT
128 %defattr(644,root,root,755)
129 %doc ChangeLog README
130 %attr(755,root,root) %{_bindir}/crossfire-client-gtk2
131 %{_mandir}/man?/crossfire-client-gtk2.*
132 %dir %{_datadir}/%{name}
133 %{_datadir}/%{name}/glade-gtk2
134 %{_datadir}/%{name}/themes
137 %defattr(644,root,root,755)
139 %attr(755,root,root) %{_bindir}/cfsndserv*
140 %{_datadir}/%{name}/sounds
144 %defattr(644,root,root,755)
145 %{_datadir}/%{name}/bmaps.client
146 %{_datadir}/%{name}/crossfire.base
147 %{_datadir}/%{name}/crossfire.clsc