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