]>
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 |
27dbf8b7 | 11 | Release: 4 |
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 | |
958ebcda | 30 | BuildRequires: pkgconfig |
31 | BuildRequires: xorg-lib-libICE-devel | |
dc617ef2 AF |
32 | BuildRequires: xorg-lib-libX11-devel |
33 | BuildRequires: xorg-lib-libXext-devel | |
ed2970f0 | 34 | Requires: %{name}-common = %{version}-%{release} |
507e1762 JK |
35 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) |
36 | ||
360ec874 | 37 | %description |
507e1762 JK |
38 | X11 client to crossfire. |
39 | ||
40 | Crossfire is a multiplayer graphical arcade and adventure game made | |
56ae3ad1 | 41 | for the X-Window environment. There are also Windows and Java clients |
507e1762 JK |
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 | ||
ba9f53e1 | 51 | %description -l pl.UTF-8 |
56ae3ad1 JB |
52 | Klient Crossfire pod X11. |
53 | ||
ba9f53e1 JR |
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. | |
56ae3ad1 | 57 | |
ba9f53e1 JR |
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". | |
56ae3ad1 | 61 | |
c0b4ea9b | 62 | %package sounds |
56ae3ad1 | 63 | Summary: Crossfire sounds |
1ba7a07a | 64 | Summary(pl.UTF-8): Dźwięki do Crossfire |
c0b4ea9b | 65 | Group: Applications/Games |
ed2970f0 | 66 | Requires: %{name}-common = %{version}-%{release} |
c0b4ea9b JK |
67 | |
68 | %description sounds | |
69 | Some sound files and the sound server for crossfire. | |
70 | ||
ba9f53e1 JR |
71 | %description sounds -l pl.UTF-8 |
72 | Pliki dźwiękowe i serwer dźwięku dla Crossfire. | |
56ae3ad1 | 73 | |
507e1762 | 74 | %package gtk |
373b9223 | 75 | Summary: GTK+ Crossfire client |
1ba7a07a | 76 | Summary(pl.UTF-8): Klient Crossfire pod GTK+ |
507e1762 | 77 | Group: Applications/Games |
ed2970f0 | 78 | Requires: %{name}-common = %{version}-%{release} |
507e1762 JK |
79 | |
80 | %description gtk | |
373b9223 | 81 | GTK+ client to crossfire. |
507e1762 JK |
82 | |
83 | Crossfire is a multiplayer graphical arcade and adventure game made | |
56ae3ad1 | 84 | for the X-Window environment. There are also Windows and Java clients |
507e1762 JK |
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 | ||
ba9f53e1 | 94 | %description gtk -l pl.UTF-8 |
373b9223 | 95 | Klient Crossfire pod GTK+. |
56ae3ad1 | 96 | |
ba9f53e1 JR |
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. | |
56ae3ad1 | 100 | |
ba9f53e1 JR |
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". | |
56ae3ad1 | 104 | |
655422b2 AF |
105 | %package gtk2 |
106 | Summary: GTK+2 Crossfire client | |
1ba7a07a | 107 | Summary(pl.UTF-8): Klient Crossfire pod GTK+2 |
655422b2 | 108 | Group: Applications/Games |
ed2970f0 | 109 | Requires: %{name}-common = %{version}-%{release} |
655422b2 AF |
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 | ||
ba9f53e1 | 125 | %description gtk2 -l pl.UTF-8 |
655422b2 AF |
126 | Klient Crossfire pod GTK+2. |
127 | ||
ba9f53e1 JR |
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. | |
655422b2 | 131 | |
ba9f53e1 JR |
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". | |
655422b2 | 135 | |
3afd6606 AF |
136 | %package images |
137 | Summary: Crossfire images | |
1ba7a07a | 138 | Summary(pl.UTF-8): Obrazki do Crossfire |
3afd6606 | 139 | Group: Applications/Games |
ed2970f0 | 140 | Requires: %{name}-common = %{version}-%{release} |
3afd6606 AF |
141 | |
142 | %description images | |
e6cd55f7 JB |
143 | Some images extracted from server for Crossfire. |
144 | ||
ba9f53e1 JR |
145 | %description images -l pl.UTF-8 |
146 | Trochę obrazków wyciągniętych z serwera do Crossfire. | |
3afd6606 AF |
147 | |
148 | %package common | |
149 | Summary: Common Crossfire clients files | |
1ba7a07a | 150 | Summary(pl.UTF-8): Pliki wspólne wszystkich klientów Crossfire |
3afd6606 AF |
151 | Group: Applications/Games |
152 | ||
153 | %description common | |
154 | This package includes files common to all Crossfire clients. | |
155 | ||
ba9f53e1 JR |
156 | %description common -l pl.UTF-8 |
157 | Ten pakiet zawiera pliki wspólne dla wszystkich klientów Crossfire. | |
e6cd55f7 | 158 | |
507e1762 | 159 | %prep |
3afd6606 | 160 | %setup -q -a1 |
56ae3ad1 | 161 | mv -f sounds cfsounds |
ed2970f0 | 162 | %if %{with images} |
3afd6606 AF |
163 | install -d images |
164 | cd images | |
165 | tar xzf %{SOURCE2} | |
166 | cd .. | |
9aeb31de | 167 | %endif |
507e1762 JK |
168 | |
169 | %build | |
0acf0eb0 AF |
170 | %{__libtoolize} |
171 | %{__aclocal} | |
172 | %{__autoconf} | |
173 | %{__automake} | |
507e1762 | 174 | %configure \ |
a5fa8318 | 175 | %{?debug:--enable-debug} \ |
35d2b8c8 | 176 | --disable-alsa \ |
3afd6606 | 177 | --with-sound-dir=%{_datadir}/%{name}/sounds |
26093e48 | 178 | %{__perl} -i -p -e 's/\#define HAVE_DMALLOC_H 1/\/\* \#undef HAVE_DMALLOC_H \*\//' common/config.h |
507e1762 JK |
179 | %{__make} |
180 | ||
181 | %install | |
182 | rm -rf $RPM_BUILD_ROOT | |
3afd6606 | 183 | install -d $RPM_BUILD_ROOT{%{_bindir},%{_mandir}/man1,%{_datadir}/%{name}/sounds} |
703485d1 | 184 | |
655422b2 AF |
185 | %{__make} install \ |
186 | DESTDIR=$RPM_BUILD_ROOT | |
3afd6606 | 187 | install cfsounds/*.raw $RPM_BUILD_ROOT%{_datadir}/%{name}/sounds/ |
ed2970f0 | 188 | %if %{with images} |
3afd6606 AF |
189 | install images/bmaps.client images/crossfire.base images/crossfire.clsc \ |
190 | $RPM_BUILD_ROOT%{_datadir}/%{name} | |
9aeb31de | 191 | %endif |
507e1762 JK |
192 | |
193 | %clean | |
194 | rm -rf $RPM_BUILD_ROOT | |
195 | ||
196 | %files | |
197 | %defattr(644,root,root,755) | |
c0b4ea9b | 198 | %attr(755,root,root) %{_bindir}/cfclient |
507e1762 JK |
199 | %{_mandir}/man?/cf* |
200 | ||
3afd6606 AF |
201 | %files common |
202 | %defattr(644,root,root,755) | |
655422b2 | 203 | %doc ChangeLog README |
3afd6606 AF |
204 | %dir %{_datadir}/%{name} |
205 | ||
c0b4ea9b JK |
206 | %files sounds |
207 | %defattr(644,root,root,755) | |
e62de958 | 208 | %doc cfsounds/README |
655422b2 | 209 | %attr(755,root,root) %{_bindir}/cfsndserv* |
3afd6606 AF |
210 | %{_datadir}/%{name}/sounds |
211 | ||
ed2970f0 | 212 | %if %{with images} |
3afd6606 AF |
213 | %files images |
214 | %defattr(644,root,root,755) | |
215 | %{_datadir}/%{name}/bmaps.client | |
216 | %{_datadir}/%{name}/crossfire.base | |
217 | %{_datadir}/%{name}/crossfire.clsc | |
9aeb31de | 218 | %endif |
c0b4ea9b | 219 | |
507e1762 JK |
220 | %files gtk |
221 | %defattr(644,root,root,755) | |
655422b2 AF |
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 |