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