]> git.pld-linux.org Git - packages/crossfire-client.git/blob - crossfire-client.spec
- release 4
[packages/crossfire-client.git] / crossfire-client.spec
1 #
2 # Conditional build:
3 %bcond_without  images  # don't build images package
4 #
5 %define         sndver  1.10.0
6 %define         imgver  1.10.0
7 Summary:        Crossfire client
8 Summary(pl.UTF-8):      Klient Crossfire
9 Name:           crossfire-client
10 Version:        1.10.0
11 Release:        4
12 License:        GPL
13 Group:          Applications/Games
14 Source0:        http://dl.sourceforge.net/crossfire/%{name}-%{version}.tar.gz
15 # Source0-md5:  883296ef199cbf47334d52d8b5d61886
16 Source1:        http://dl.sourceforge.net/crossfire/%{name}-sounds-%{sndver}.tar.gz
17 # Source1-md5:  b990e5e3bf321211312cba48fb885142
18 Source2:        http://dl.sourceforge.net/crossfire/%{name}-images-%{imgver}.tar.gz
19 # Source2-md5:  496ccabc31e773349ccc679812f66f7b
20 URL:            http://crossfire.real-time.com/
21 BuildRequires:  OpenGL-glut-devel
22 BuildRequires:  SDL-devel
23 BuildRequires:  SDL_image-devel
24 BuildRequires:  autoconf
25 BuildRequires:  automake
26 BuildRequires:  gtk+-devel
27 BuildRequires:  gtk+2-devel
28 BuildRequires:  libtool
29 BuildRequires:  perl-base
30 BuildRequires:  pkgconfig
31 BuildRequires:  xorg-lib-libICE-devel
32 BuildRequires:  xorg-lib-libX11-devel
33 BuildRequires:  xorg-lib-libXext-devel
34 Requires:       %{name}-common = %{version}-%{release}
35 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
36
37 %description
38 X11 client to crossfire.
39
40 Crossfire is a multiplayer graphical arcade and adventure game made
41 for the X-Window environment. There are also Windows and Java clients
42 available.
43
44 It has certain flavours from other games, especially Gauntlet (TM) and
45 Nethack/Moria.
46
47 Any number of players can move around in their own window, finding and
48 sing items and battle monsters. They can choose to cooperate or
49 compete in the same "world".
50
51 %description -l pl.UTF-8
52 Klient Crossfire pod X11.
53
54 Crossfire to graficzna gra przygodowa dla środowiska X-Window. Są
55 także dostępni klienci pod Windows i w Javie. Łączy cechy z kilku
56 gier, głównie Gauntleta i Nethacka/Morii.
57
58 Dowolna liczba graczy może się poruszać w swoich oknach, szukając
59 przedmiotów i walcząc z potworami. Mogą grać w kooperacji lub
60 przeciwko sobie w tym samym "świecie".
61
62 %package sounds
63 Summary:        Crossfire sounds
64 Summary(pl.UTF-8):      Dźwięki do Crossfire
65 Group:          Applications/Games
66 Requires:       %{name}-common = %{version}-%{release}
67
68 %description sounds
69 Some sound files and the sound server for crossfire.
70
71 %description sounds -l pl.UTF-8
72 Pliki dźwiękowe i serwer dźwięku dla Crossfire.
73
74 %package gtk
75 Summary:        GTK+ Crossfire client
76 Summary(pl.UTF-8):      Klient Crossfire pod GTK+
77 Group:          Applications/Games
78 Requires:       %{name}-common = %{version}-%{release}
79
80 %description gtk
81 GTK+ client to crossfire.
82
83 Crossfire is a multiplayer graphical arcade and adventure game made
84 for the X-Window environment. There are also Windows and Java clients
85 available.
86
87 It has certain flavours from other games, especially Gauntlet (TM) and
88 Nethack/Moria.
89
90 Any number of players can move around in their own window, finding and
91 sing items and battle monsters. They can choose to cooperate or
92 compete in the same "world".
93
94 %description gtk -l pl.UTF-8
95 Klient Crossfire pod GTK+.
96
97 Crossfire to graficzna gra przygodowa dla środowiska X-Window. Są
98 także dostępni klienci pod Windows i w Javie. Łączy cechy z kilku
99 gier, głównie Gauntleta i Nethacka/Morii.
100
101 Dowolna liczba graczy może się poruszać w swoich oknach, szukając
102 przedmiotów i walcząc z potworami. Mogą grać w kooperacji lub
103 przeciwko sobie w tym samym "świecie".
104
105 %package gtk2
106 Summary:        GTK+2 Crossfire client
107 Summary(pl.UTF-8):      Klient Crossfire pod GTK+2
108 Group:          Applications/Games
109 Requires:       %{name}-common = %{version}-%{release}
110
111 %description gtk2
112 GTK+2 client to crossfire.
113
114 Crossfire is a multiplayer graphical arcade and adventure game made
115 for the X-Window environment. There are also Windows and Java clients
116 available.
117
118 It has certain flavours from other games, especially Gauntlet (TM) and
119 Nethack/Moria.
120
121 Any number of players can move around in their own window, finding and
122 sing items and battle monsters. They can choose to cooperate or
123 compete in the same "world".
124
125 %description gtk2 -l pl.UTF-8
126 Klient Crossfire pod GTK+2.
127
128 Crossfire to graficzna gra przygodowa dla środowiska X-Window. Są
129 także dostępni klienci pod Windows i w Javie. Łączy cechy z kilku
130 gier, głównie Gauntleta i Nethacka/Morii.
131
132 Dowolna liczba graczy może się poruszać w swoich oknach, szukając
133 przedmiotów i walcząc z potworami. Mogą grać w kooperacji lub
134 przeciwko sobie w tym samym "świecie".
135
136 %package images
137 Summary:        Crossfire images
138 Summary(pl.UTF-8):      Obrazki do Crossfire
139 Group:          Applications/Games
140 Requires:       %{name}-common = %{version}-%{release}
141
142 %description images
143 Some images extracted from server for Crossfire.
144
145 %description images -l pl.UTF-8
146 Trochę obrazków wyciągniętych z serwera do Crossfire.
147
148 %package common
149 Summary:        Common Crossfire clients files
150 Summary(pl.UTF-8):      Pliki wspólne wszystkich klientów Crossfire
151 Group:          Applications/Games
152
153 %description common
154 This package includes files common to all Crossfire clients.
155
156 %description common -l pl.UTF-8
157 Ten pakiet zawiera pliki wspólne dla wszystkich klientów Crossfire.
158
159 %prep
160 %setup  -q -a1
161 mv -f sounds cfsounds
162 %if %{with images}
163 install -d images
164 cd images
165 tar xzf %{SOURCE2}
166 cd ..
167 %endif
168
169 %build
170 %{__libtoolize}
171 %{__aclocal}
172 %{__autoconf}
173 %{__automake}
174 %configure \
175         %{?debug:--enable-debug} \
176         --disable-alsa \
177         --with-sound-dir=%{_datadir}/%{name}/sounds
178 %{__perl} -i -p -e 's/\#define HAVE_DMALLOC_H 1/\/\* \#undef HAVE_DMALLOC_H \*\//' common/config.h
179 %{__make}
180
181 %install
182 rm -rf $RPM_BUILD_ROOT
183 install -d $RPM_BUILD_ROOT{%{_bindir},%{_mandir}/man1,%{_datadir}/%{name}/sounds}
184
185 %{__make} install \
186         DESTDIR=$RPM_BUILD_ROOT
187 install cfsounds/*.raw $RPM_BUILD_ROOT%{_datadir}/%{name}/sounds/
188 %if %{with images}
189 install images/bmaps.client images/crossfire.base images/crossfire.clsc \
190         $RPM_BUILD_ROOT%{_datadir}/%{name}
191 %endif
192
193 %clean
194 rm -rf $RPM_BUILD_ROOT
195
196 %files
197 %defattr(644,root,root,755)
198 %attr(755,root,root) %{_bindir}/cfclient
199 %{_mandir}/man?/cf*
200
201 %files common
202 %defattr(644,root,root,755)
203 %doc ChangeLog README
204 %dir %{_datadir}/%{name}
205
206 %files sounds
207 %defattr(644,root,root,755)
208 %doc cfsounds/README
209 %attr(755,root,root) %{_bindir}/cfsndserv*
210 %{_datadir}/%{name}/sounds
211
212 %if %{with images}
213 %files images
214 %defattr(644,root,root,755)
215 %{_datadir}/%{name}/bmaps.client
216 %{_datadir}/%{name}/crossfire.base
217 %{_datadir}/%{name}/crossfire.clsc
218 %endif
219
220 %files gtk
221 %defattr(644,root,root,755)
222 %attr(755,root,root) %{_bindir}/gcfclient
223 %{_mandir}/man?/gcfclient.*
224
225 %files gtk2
226 %defattr(644,root,root,755)
227 %attr(755,root,root) %{_bindir}/gcfclient2
This page took 0.235712 seconds and 3 git commands to generate.