]> git.pld-linux.org Git - packages/crossfire-client.git/blob - crossfire-client.spec
1b16549a8387a204a680dd6807583109a262ecd4
[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):    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:  xorg-lib-libX11-devel
25 BuildRequires:  xorg-lib-libXext-devel
26 # next 2 probably unneeded
27 BuildRequires:  xorg-lib-libSM-devel
28 BuildRequires:  xorg-lib-libICE-devel
29 BuildRequires:  autoconf
30 BuildRequires:  gtk+-devel
31 BuildRequires:  gtk+2-devel
32 BuildRequires:  perl-base
33 Requires:       %{name}-common = %{version}-%{release}
34 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
35
36 %description
37 X11 client to crossfire.
38
39 Crossfire is a multiplayer graphical arcade and adventure game made
40 for the X-Window environment. There are also Windows and Java clients
41 available.
42
43 It has certain flavours from other games, especially Gauntlet (TM) and
44 Nethack/Moria.
45
46 Any number of players can move around in their own window, finding and
47 sing items and battle monsters. They can choose to cooperate or
48 compete in the same "world".
49
50 %description -l pl
51 Klient Crossfire pod X11.
52
53 Crossfire to graficzna gra przygodowa dla ¶rodowiska X-Window. S±
54 tak¿e dostêpni klienci pod Windows i w Javie. £±czy cechy z kilku
55 gier, g³ównie Gauntleta i Nethacka/Morii.
56
57 Dowolna liczba graczy mo¿e siê poruszaæ w swoich oknach, szukaj±c
58 przedmiotów i walcz±c z potworami. Mog± graæ w kooperacji lub
59 przeciwko sobie w tym samym "¶wiecie".
60
61 %package sounds
62 Summary:        Crossfire sounds
63 Summary(pl):    D¼wiêki do Crossfire
64 Group:          Applications/Games
65 Requires:       %{name}-common = %{version}-%{release}
66
67 %description sounds
68 Some sound files and the sound server for crossfire.
69
70 %description sounds -l pl
71 Pliki d¼wiêkowe i serwer d¼wiêku dla Crossfire.
72
73 %package gtk
74 Summary:        GTK+ Crossfire client
75 Summary(pl):    Klient Crossfire pod GTK+
76 Group:          Applications/Games
77 Requires:       %{name}-common = %{version}-%{release}
78
79 %description gtk
80 GTK+ client to crossfire.
81
82 Crossfire is a multiplayer graphical arcade and adventure game made
83 for the X-Window environment. There are also Windows and Java clients
84 available.
85
86 It has certain flavours from other games, especially Gauntlet (TM) and
87 Nethack/Moria.
88
89 Any number of players can move around in their own window, finding and
90 sing items and battle monsters. They can choose to cooperate or
91 compete in the same "world".
92
93 %description gtk -l pl
94 Klient Crossfire pod GTK+.
95
96 Crossfire to graficzna gra przygodowa dla ¶rodowiska X-Window. S±
97 tak¿e dostêpni klienci pod Windows i w Javie. £±czy cechy z kilku
98 gier, g³ównie Gauntleta i Nethacka/Morii.
99
100 Dowolna liczba graczy mo¿e siê poruszaæ w swoich oknach, szukaj±c
101 przedmiotów i walcz±c z potworami. Mog± graæ w kooperacji lub
102 przeciwko sobie w tym samym "¶wiecie".
103
104 %package gtk2
105 Summary:        GTK+2 Crossfire client
106 Summary(pl):    Klient Crossfire pod GTK+2
107 Group:          Applications/Games
108 Requires:       %{name}-common = %{version}-%{release}
109
110 %description gtk2
111 GTK+2 client to crossfire.
112
113 Crossfire is a multiplayer graphical arcade and adventure game made
114 for the X-Window environment. There are also Windows and Java clients
115 available.
116
117 It has certain flavours from other games, especially Gauntlet (TM) and
118 Nethack/Moria.
119
120 Any number of players can move around in their own window, finding and
121 sing items and battle monsters. They can choose to cooperate or
122 compete in the same "world".
123
124 %description gtk2 -l pl
125 Klient Crossfire pod GTK+2.
126
127 Crossfire to graficzna gra przygodowa dla ¶rodowiska X-Window. S±
128 tak¿e dostêpni klienci pod Windows i w Javie. £±czy cechy z kilku
129 gier, g³ównie Gauntleta i Nethacka/Morii.
130
131 Dowolna liczba graczy mo¿e siê poruszaæ w swoich oknach, szukaj±c
132 przedmiotów i walcz±c z potworami. Mog± graæ w kooperacji lub
133 przeciwko sobie w tym samym "¶wiecie".
134
135 %package images
136 Summary:        Crossfire images
137 Summary(pl):    Obrazki do Crossfire
138 Group:          Applications/Games
139 Requires:       %{name}-common = %{version}-%{release}
140
141 %description images
142 Some images extracted from server for Crossfire.
143
144 %description images -l pl
145 Trochê obrazków wyci±gniêtych z serwera do Crossfire.
146
147 %package common
148 Summary:        Common Crossfire clients files
149 Summary(pl):    Pliki wspólne wszystkich klientów Crossfire
150 Group:          Applications/Games
151
152 %description common
153 This package includes files common to all Crossfire clients.
154
155 %description common -l pl
156 Ten pakiet zawiera pliki wspólne dla wszystkich klientów Crossfire.
157
158 %prep
159 %setup  -q -a1
160 mv -f sounds cfsounds
161 %if %{with images}
162 install -d images
163 cd images
164 tar xzf %{SOURCE2}
165 cd ..
166 %endif
167 %patch0 -p1
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.069678 seconds and 3 git commands to generate.