]> git.pld-linux.org Git - packages/crossfire-client.git/blame - crossfire-client.spec
- release 4
[packages/crossfire-client.git] / crossfire-client.spec
CommitLineData
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 7Summary: Crossfire client
1ba7a07a 8Summary(pl.UTF-8): Klient Crossfire
507e1762 9Name: crossfire-client
d6484a04 10Version: 1.10.0
27dbf8b7 11Release: 4
507e1762
JK
12License: GPL
13Group: Applications/Games
30a11f11 14Source0: http://dl.sourceforge.net/crossfire/%{name}-%{version}.tar.gz
d6484a04 15# Source0-md5: 883296ef199cbf47334d52d8b5d61886
30a11f11 16Source1: http://dl.sourceforge.net/crossfire/%{name}-sounds-%{sndver}.tar.gz
d6484a04 17# Source1-md5: b990e5e3bf321211312cba48fb885142
30a11f11 18Source2: http://dl.sourceforge.net/crossfire/%{name}-images-%{imgver}.tar.gz
d6484a04 19# Source2-md5: 496ccabc31e773349ccc679812f66f7b
56ae3ad1 20URL: http://crossfire.real-time.com/
d6484a04 21BuildRequires: OpenGL-glut-devel
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
958ebcda 30BuildRequires: pkgconfig
31BuildRequires: xorg-lib-libICE-devel
dc617ef2
AF
32BuildRequires: xorg-lib-libX11-devel
33BuildRequires: xorg-lib-libXext-devel
ed2970f0 34Requires: %{name}-common = %{version}-%{release}
507e1762
JK
35BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
36
360ec874 37%description
507e1762
JK
38X11 client to crossfire.
39
40Crossfire is a multiplayer graphical arcade and adventure game made
56ae3ad1 41for the X-Window environment. There are also Windows and Java clients
507e1762
JK
42available.
43
44It has certain flavours from other games, especially Gauntlet (TM) and
45Nethack/Moria.
46
47Any number of players can move around in their own window, finding and
48sing items and battle monsters. They can choose to cooperate or
49compete in the same "world".
50
ba9f53e1 51%description -l pl.UTF-8
56ae3ad1
JB
52Klient Crossfire pod X11.
53
ba9f53e1
JR
54Crossfire to graficzna gra przygodowa dla środowiska X-Window. Są
55także dostępni klienci pod Windows i w Javie. Łączy cechy z kilku
56gier, głównie Gauntleta i Nethacka/Morii.
56ae3ad1 57
ba9f53e1
JR
58Dowolna liczba graczy może się poruszać w swoich oknach, szukając
59przedmiotów i walcząc z potworami. Mogą grać w kooperacji lub
60przeciwko sobie w tym samym "świecie".
56ae3ad1 61
c0b4ea9b 62%package sounds
56ae3ad1 63Summary: Crossfire sounds
1ba7a07a 64Summary(pl.UTF-8): Dźwięki do Crossfire
c0b4ea9b 65Group: Applications/Games
ed2970f0 66Requires: %{name}-common = %{version}-%{release}
c0b4ea9b
JK
67
68%description sounds
69Some sound files and the sound server for crossfire.
70
ba9f53e1
JR
71%description sounds -l pl.UTF-8
72Pliki dźwiękowe i serwer dźwięku dla Crossfire.
56ae3ad1 73
507e1762 74%package gtk
373b9223 75Summary: GTK+ Crossfire client
1ba7a07a 76Summary(pl.UTF-8): Klient Crossfire pod GTK+
507e1762 77Group: Applications/Games
ed2970f0 78Requires: %{name}-common = %{version}-%{release}
507e1762
JK
79
80%description gtk
373b9223 81GTK+ client to crossfire.
507e1762
JK
82
83Crossfire is a multiplayer graphical arcade and adventure game made
56ae3ad1 84for the X-Window environment. There are also Windows and Java clients
507e1762
JK
85available.
86
87It has certain flavours from other games, especially Gauntlet (TM) and
88Nethack/Moria.
89
90Any number of players can move around in their own window, finding and
91sing items and battle monsters. They can choose to cooperate or
92compete in the same "world".
93
ba9f53e1 94%description gtk -l pl.UTF-8
373b9223 95Klient Crossfire pod GTK+.
56ae3ad1 96
ba9f53e1
JR
97Crossfire to graficzna gra przygodowa dla środowiska X-Window. Są
98także dostępni klienci pod Windows i w Javie. Łączy cechy z kilku
99gier, głównie Gauntleta i Nethacka/Morii.
56ae3ad1 100
ba9f53e1
JR
101Dowolna liczba graczy może się poruszać w swoich oknach, szukając
102przedmiotów i walcząc z potworami. Mogą grać w kooperacji lub
103przeciwko sobie w tym samym "świecie".
56ae3ad1 104
655422b2
AF
105%package gtk2
106Summary: GTK+2 Crossfire client
1ba7a07a 107Summary(pl.UTF-8): Klient Crossfire pod GTK+2
655422b2 108Group: Applications/Games
ed2970f0 109Requires: %{name}-common = %{version}-%{release}
655422b2
AF
110
111%description gtk2
112GTK+2 client to crossfire.
113
114Crossfire is a multiplayer graphical arcade and adventure game made
115for the X-Window environment. There are also Windows and Java clients
116available.
117
118It has certain flavours from other games, especially Gauntlet (TM) and
119Nethack/Moria.
120
121Any number of players can move around in their own window, finding and
122sing items and battle monsters. They can choose to cooperate or
123compete in the same "world".
124
ba9f53e1 125%description gtk2 -l pl.UTF-8
655422b2
AF
126Klient Crossfire pod GTK+2.
127
ba9f53e1
JR
128Crossfire to graficzna gra przygodowa dla środowiska X-Window. Są
129także dostępni klienci pod Windows i w Javie. Łączy cechy z kilku
130gier, głównie Gauntleta i Nethacka/Morii.
655422b2 131
ba9f53e1
JR
132Dowolna liczba graczy może się poruszać w swoich oknach, szukając
133przedmiotów i walcząc z potworami. Mogą grać w kooperacji lub
134przeciwko sobie w tym samym "świecie".
655422b2 135
3afd6606
AF
136%package images
137Summary: Crossfire images
1ba7a07a 138Summary(pl.UTF-8): Obrazki do Crossfire
3afd6606 139Group: Applications/Games
ed2970f0 140Requires: %{name}-common = %{version}-%{release}
3afd6606
AF
141
142%description images
e6cd55f7
JB
143Some images extracted from server for Crossfire.
144
ba9f53e1
JR
145%description images -l pl.UTF-8
146Trochę obrazków wyciągniętych z serwera do Crossfire.
3afd6606
AF
147
148%package common
149Summary: Common Crossfire clients files
1ba7a07a 150Summary(pl.UTF-8): Pliki wspólne wszystkich klientów Crossfire
3afd6606
AF
151Group: Applications/Games
152
153%description common
154This package includes files common to all Crossfire clients.
155
ba9f53e1
JR
156%description common -l pl.UTF-8
157Ten pakiet zawiera pliki wspólne dla wszystkich klientów Crossfire.
e6cd55f7 158
507e1762 159%prep
3afd6606 160%setup -q -a1
56ae3ad1 161mv -f sounds cfsounds
ed2970f0 162%if %{with images}
3afd6606
AF
163install -d images
164cd images
165tar xzf %{SOURCE2}
166cd ..
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
182rm -rf $RPM_BUILD_ROOT
3afd6606 183install -d $RPM_BUILD_ROOT{%{_bindir},%{_mandir}/man1,%{_datadir}/%{name}/sounds}
703485d1 184
655422b2
AF
185%{__make} install \
186 DESTDIR=$RPM_BUILD_ROOT
3afd6606 187install cfsounds/*.raw $RPM_BUILD_ROOT%{_datadir}/%{name}/sounds/
ed2970f0 188%if %{with images}
3afd6606
AF
189install images/bmaps.client images/crossfire.base images/crossfire.clsc \
190 $RPM_BUILD_ROOT%{_datadir}/%{name}
9aeb31de 191%endif
507e1762
JK
192
193%clean
194rm -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
This page took 0.132714 seconds and 4 git commands to generate.