]>
Commit | Line | Data |
---|---|---|
ed2970f0 JB |
1 | # |
2 | # Conditional build: | |
3 | %bcond_without images # don't build images package | |
4 | # | |
d6484a04 AF |
5 | %define sndver 1.10.0 |
6 | %define imgver 1.10.0 | |
56ae3ad1 | 7 | Summary: Crossfire client |
1ba7a07a | 8 | Summary(pl.UTF-8): Klient Crossfire |
507e1762 | 9 | Name: crossfire-client |
d6484a04 | 10 | Version: 1.10.0 |
67d1f70f | 11 | Release: 2 |
507e1762 JK |
12 | License: GPL |
13 | Group: Applications/Games | |
30a11f11 | 14 | Source0: http://dl.sourceforge.net/crossfire/%{name}-%{version}.tar.gz |
d6484a04 | 15 | # Source0-md5: 883296ef199cbf47334d52d8b5d61886 |
30a11f11 | 16 | Source1: http://dl.sourceforge.net/crossfire/%{name}-sounds-%{sndver}.tar.gz |
d6484a04 | 17 | # Source1-md5: b990e5e3bf321211312cba48fb885142 |
30a11f11 | 18 | Source2: http://dl.sourceforge.net/crossfire/%{name}-images-%{imgver}.tar.gz |
d6484a04 | 19 | # Source2-md5: 496ccabc31e773349ccc679812f66f7b |
56ae3ad1 | 20 | URL: http://crossfire.real-time.com/ |
d6484a04 | 21 | BuildRequires: OpenGL-glut-devel |
1e34ca0d JK |
22 | BuildRequires: SDL-devel |
23 | BuildRequires: SDL_image-devel | |
c69ee41e JB |
24 | BuildRequires: autoconf |
25 | BuildRequires: automake | |
26 | BuildRequires: gtk+-devel | |
27 | BuildRequires: gtk+2-devel | |
28 | BuildRequires: libtool | |
29 | BuildRequires: perl-base | |
dc617ef2 AF |
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 | |
ed2970f0 | 35 | Requires: %{name}-common = %{version}-%{release} |
507e1762 JK |
36 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) |
37 | ||
360ec874 | 38 | %description |
507e1762 JK |
39 | X11 client to crossfire. |
40 | ||
41 | Crossfire is a multiplayer graphical arcade and adventure game made | |
56ae3ad1 | 42 | for the X-Window environment. There are also Windows and Java clients |
507e1762 JK |
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 | ||
ba9f53e1 | 52 | %description -l pl.UTF-8 |
56ae3ad1 JB |
53 | Klient Crossfire pod X11. |
54 | ||
ba9f53e1 JR |
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. | |
56ae3ad1 | 58 | |
ba9f53e1 JR |
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". | |
56ae3ad1 | 62 | |
c0b4ea9b | 63 | %package sounds |
56ae3ad1 | 64 | Summary: Crossfire sounds |
1ba7a07a | 65 | Summary(pl.UTF-8): Dźwięki do Crossfire |
c0b4ea9b | 66 | Group: Applications/Games |
ed2970f0 | 67 | Requires: %{name}-common = %{version}-%{release} |
c0b4ea9b JK |
68 | |
69 | %description sounds | |
70 | Some sound files and the sound server for crossfire. | |
71 | ||
ba9f53e1 JR |
72 | %description sounds -l pl.UTF-8 |
73 | Pliki dźwiękowe i serwer dźwięku dla Crossfire. | |
56ae3ad1 | 74 | |
507e1762 | 75 | %package gtk |
373b9223 | 76 | Summary: GTK+ Crossfire client |
1ba7a07a | 77 | Summary(pl.UTF-8): Klient Crossfire pod GTK+ |
507e1762 | 78 | Group: Applications/Games |
ed2970f0 | 79 | Requires: %{name}-common = %{version}-%{release} |
507e1762 JK |
80 | |
81 | %description gtk | |
373b9223 | 82 | GTK+ client to crossfire. |
507e1762 JK |
83 | |
84 | Crossfire is a multiplayer graphical arcade and adventure game made | |
56ae3ad1 | 85 | for the X-Window environment. There are also Windows and Java clients |
507e1762 JK |
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 | ||
ba9f53e1 | 95 | %description gtk -l pl.UTF-8 |
373b9223 | 96 | Klient Crossfire pod GTK+. |
56ae3ad1 | 97 | |
ba9f53e1 JR |
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. | |
56ae3ad1 | 101 | |
ba9f53e1 JR |
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". | |
56ae3ad1 | 105 | |
655422b2 AF |
106 | %package gtk2 |
107 | Summary: GTK+2 Crossfire client | |
1ba7a07a | 108 | Summary(pl.UTF-8): Klient Crossfire pod GTK+2 |
655422b2 | 109 | Group: Applications/Games |
ed2970f0 | 110 | Requires: %{name}-common = %{version}-%{release} |
655422b2 AF |
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 | ||
ba9f53e1 | 126 | %description gtk2 -l pl.UTF-8 |
655422b2 AF |
127 | Klient Crossfire pod GTK+2. |
128 | ||
ba9f53e1 JR |
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. | |
655422b2 | 132 | |
ba9f53e1 JR |
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". | |
655422b2 | 136 | |
3afd6606 AF |
137 | %package images |
138 | Summary: Crossfire images | |
1ba7a07a | 139 | Summary(pl.UTF-8): Obrazki do Crossfire |
3afd6606 | 140 | Group: Applications/Games |
ed2970f0 | 141 | Requires: %{name}-common = %{version}-%{release} |
3afd6606 AF |
142 | |
143 | %description images | |
e6cd55f7 JB |
144 | Some images extracted from server for Crossfire. |
145 | ||
ba9f53e1 JR |
146 | %description images -l pl.UTF-8 |
147 | Trochę obrazków wyciągniętych z serwera do Crossfire. | |
3afd6606 AF |
148 | |
149 | %package common | |
150 | Summary: Common Crossfire clients files | |
1ba7a07a | 151 | Summary(pl.UTF-8): Pliki wspólne wszystkich klientów Crossfire |
3afd6606 AF |
152 | Group: Applications/Games |
153 | ||
154 | %description common | |
155 | This package includes files common to all Crossfire clients. | |
156 | ||
ba9f53e1 JR |
157 | %description common -l pl.UTF-8 |
158 | Ten pakiet zawiera pliki wspólne dla wszystkich klientów Crossfire. | |
e6cd55f7 | 159 | |
507e1762 | 160 | %prep |
3afd6606 | 161 | %setup -q -a1 |
56ae3ad1 | 162 | mv -f sounds cfsounds |
ed2970f0 | 163 | %if %{with images} |
3afd6606 AF |
164 | install -d images |
165 | cd images | |
166 | tar xzf %{SOURCE2} | |
167 | cd .. | |
9aeb31de | 168 | %endif |
507e1762 JK |
169 | |
170 | %build | |
0acf0eb0 AF |
171 | %{__libtoolize} |
172 | %{__aclocal} | |
173 | %{__autoconf} | |
174 | %{__automake} | |
507e1762 | 175 | %configure \ |
a5fa8318 | 176 | %{?debug:--enable-debug} \ |
35d2b8c8 | 177 | --disable-alsa \ |
3afd6606 | 178 | --with-sound-dir=%{_datadir}/%{name}/sounds |
26093e48 | 179 | %{__perl} -i -p -e 's/\#define HAVE_DMALLOC_H 1/\/\* \#undef HAVE_DMALLOC_H \*\//' common/config.h |
507e1762 JK |
180 | %{__make} |
181 | ||
182 | %install | |
183 | rm -rf $RPM_BUILD_ROOT | |
3afd6606 | 184 | install -d $RPM_BUILD_ROOT{%{_bindir},%{_mandir}/man1,%{_datadir}/%{name}/sounds} |
703485d1 | 185 | |
655422b2 AF |
186 | %{__make} install \ |
187 | DESTDIR=$RPM_BUILD_ROOT | |
3afd6606 | 188 | install cfsounds/*.raw $RPM_BUILD_ROOT%{_datadir}/%{name}/sounds/ |
ed2970f0 | 189 | %if %{with images} |
3afd6606 AF |
190 | install images/bmaps.client images/crossfire.base images/crossfire.clsc \ |
191 | $RPM_BUILD_ROOT%{_datadir}/%{name} | |
9aeb31de | 192 | %endif |
507e1762 JK |
193 | |
194 | %clean | |
195 | rm -rf $RPM_BUILD_ROOT | |
196 | ||
197 | %files | |
198 | %defattr(644,root,root,755) | |
c0b4ea9b | 199 | %attr(755,root,root) %{_bindir}/cfclient |
507e1762 JK |
200 | %{_mandir}/man?/cf* |
201 | ||
3afd6606 AF |
202 | %files common |
203 | %defattr(644,root,root,755) | |
655422b2 | 204 | %doc ChangeLog README |
3afd6606 AF |
205 | %dir %{_datadir}/%{name} |
206 | ||
c0b4ea9b JK |
207 | %files sounds |
208 | %defattr(644,root,root,755) | |
e62de958 | 209 | %doc cfsounds/README |
655422b2 | 210 | %attr(755,root,root) %{_bindir}/cfsndserv* |
3afd6606 AF |
211 | %{_datadir}/%{name}/sounds |
212 | ||
ed2970f0 | 213 | %if %{with images} |
3afd6606 AF |
214 | %files images |
215 | %defattr(644,root,root,755) | |
216 | %{_datadir}/%{name}/bmaps.client | |
217 | %{_datadir}/%{name}/crossfire.base | |
218 | %{_datadir}/%{name}/crossfire.clsc | |
9aeb31de | 219 | %endif |
c0b4ea9b | 220 | |
507e1762 JK |
221 | %files gtk |
222 | %defattr(644,root,root,755) | |
655422b2 AF |
223 | %attr(755,root,root) %{_bindir}/gcfclient |
224 | %{_mandir}/man?/gcfclient.* | |
225 | ||
226 | %files gtk2 | |
227 | %defattr(644,root,root,755) | |
228 | %attr(755,root,root) %{_bindir}/gcfclient2 |