]> git.pld-linux.org Git - packages/crossfire-client.git/blob - crossfire-client.spec
43dc6b069e07cb8bd275d91066e22754770dc12c
[packages/crossfire-client.git] / crossfire-client.spec
1 %define         sndver  1.4.0
2 %define         imgver  1.7.0
3 Summary:        Crossfire client
4 Summary(pl):    Klient Crossfire
5 Name:           crossfire-client
6 Version:        1.7.0
7 Release:        3
8 License:        GPL
9 Group:          Applications/Games
10 Source0:        http://dl.sourceforge.net/crossfire/%{name}-%{version}.tar.gz
11 # Source0-md5:  ef405f78d54be0bf22feeef6b4fc0d73
12 Source1:        http://dl.sourceforge.net/crossfire/%{name}-sounds-%{sndver}.tar.gz
13 # Source1-md5:  1b33401d9d2af0d391fee7ad04282cfd
14 Source2:        http://dl.sourceforge.net/crossfire/%{name}-images-%{imgver}.tar.gz
15 # Source2-md5:  cbf4b4480bd6fd28cf0e71a06b288127
16 Patch0:         %{name}-big_endian.patch
17 Patch1:         %{name}-memleak.patch
18 Patch2:         %{name}-sdl_free.patch
19 Patch3:         %{name}-sdl_darkness.patch
20 URL:            http://crossfire.real-time.com/
21 BuildRequires:  SDL-devel
22 BuildRequires:  SDL_image-devel
23 BuildRequires:  XFree86-devel
24 BuildRequires:  autoconf
25 BuildRequires:  gtk+-devel
26 BuildRequires:  perl
27 Requires:       %{name}-common = %{version}
28 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
29
30 %description
31 X11 client to crossfire.
32
33 Crossfire is a multiplayer graphical arcade and adventure game made
34 for the X-Window environment. There are also Windows and Java clients
35 available.
36
37 It has certain flavours from other games, especially Gauntlet (TM) and
38 Nethack/Moria.
39
40 Any number of players can move around in their own window, finding and
41 sing items and battle monsters. They can choose to cooperate or
42 compete in the same "world".
43
44 %description -l pl
45 Klient Crossfire pod X11.
46
47 Crossfire to graficzna gra przygodowa dla ¶rodowiska X-Window. S±
48 tak¿e dostêpni klienci pod Windows i w Javie. £±czy cechy z kilku
49 gier, g³ównie Gauntleta i Nethacka/Morii.
50
51 Dowolna liczba graczy mo¿e siê poruszaæ w swoich oknach, szukaj±c
52 przedmiotów i walcz±c z potworami. Mog± graæ w kooperacji lub
53 przeciwko sobie w tym samym "¶wiecie".
54
55 %package sounds
56 Summary:        Crossfire sounds
57 Summary(pl):    D¼wiêki do Crossfire
58 Group:          Applications/Games
59 Requires:       %{name}-common = %{version}
60
61 %description sounds
62 Some sound files and the sound server for crossfire.
63
64 %description sounds -l pl
65 Pliki d¼wiêkowe i serwer d¼wiêku dla Crossfire.
66
67 %package gtk
68 Summary:        GTK Crossfire client
69 Summary(pl):    Klient Crossfire pod GTK
70 Group:          Applications/Games
71 Requires:       %{name}-common = %{version}
72
73 %description gtk
74 GTK client to crossfire.
75
76 Crossfire is a multiplayer graphical arcade and adventure game made
77 for the X-Window environment. There are also Windows and Java clients
78 available.
79
80 It has certain flavours from other games, especially Gauntlet (TM) and
81 Nethack/Moria.
82
83 Any number of players can move around in their own window, finding and
84 sing items and battle monsters. They can choose to cooperate or
85 compete in the same "world".
86
87 %description gtk -l pl
88 Klient Crossfire pod GTK.
89
90 Crossfire to graficzna gra przygodowa dla ¶rodowiska X-Window. S±
91 tak¿e dostêpni klienci pod Windows i w Javie. £±czy cechy z kilku
92 gier, g³ównie Gauntleta i Nethacka/Morii.
93
94 Dowolna liczba graczy mo¿e siê poruszaæ w swoich oknach, szukaj±c
95 przedmiotów i walcz±c z potworami. Mog± graæ w kooperacji lub
96 przeciwko sobie w tym samym "¶wiecie".
97
98 %package images
99 Summary:        Crossfire images
100 Summary(pl):    Obrazki do Crossfire
101 Group:          Applications/Games
102 Requires:       %{name}-common = %{version}
103
104 %description images
105 Some images extracted from server for Crossfire.
106
107 %description images -l pl
108 Trochê obrazków wyci±gniêtych z serwera do Crossfire.
109
110 %package common
111 Summary:        Common Crossfire clients files
112 Summary(pl):    Pliki wspólne wszystkich klientów Crossfire
113 Group:          Applications/Games
114
115 %description common
116 This package includes files common to all Crossfire clients.
117
118 %description common -l pl
119 Ten pakiet zawiera pliki wspólne dla wszystkich klientów Crossfire.
120
121 %prep
122 %setup  -q -a1
123 %patch0 -p1
124 %patch1 -p0
125 %patch2 -p0
126 %patch3 -p0
127 mv -f sounds cfsounds
128 %if %{?_without_images:0}%{?!_without_images:1}
129 install -d images
130 cd images
131 tar xzf %{SOURCE2}
132 cd ..
133 %endif
134
135 %build
136 %configure \
137         %{?debug:--enable-debug} \
138         --disable-alsa \
139         --with-sound-dir=%{_datadir}/%{name}/sounds
140 perl -i -p -e 's/\#define HAVE_DMALLOC_H 1/\/\* \#undef HAVE_DMALLOC_H \*\//' common/config.h
141 %{__make}
142
143 %install
144 rm -rf $RPM_BUILD_ROOT
145 install -d $RPM_BUILD_ROOT{%{_bindir},%{_mandir}/man1,%{_datadir}/%{name}/sounds}
146
147 install x11/cfclient gtk/gcfclient sound-src/cfsndserv $RPM_BUILD_ROOT%{_bindir}
148 install x11/cfclient.man $RPM_BUILD_ROOT%{_mandir}/man1/cfclient.1
149 install gtk/gcfclient.man $RPM_BUILD_ROOT%{_mandir}/man1/gcfclient.1
150 install cfsounds/*.raw $RPM_BUILD_ROOT%{_datadir}/%{name}/sounds/
151 %if %{?_without_images:0}%{?!_without_images:1}
152 install images/bmaps.client images/crossfire.base images/crossfire.clsc \
153         $RPM_BUILD_ROOT%{_datadir}/%{name}
154 %endif
155
156 %clean
157 rm -rf $RPM_BUILD_ROOT
158
159 %files
160 %defattr(644,root,root,755)
161 %attr(755,root,root) %{_bindir}/cfclient
162 %{_mandir}/man?/cf*
163
164 %files common
165 %defattr(644,root,root,755)
166 %doc CHANGES README
167 %dir %{_datadir}/%{name}
168
169 %files sounds
170 %defattr(644,root,root,755)
171 %doc cfsounds/README
172 %attr(755,root,root) %{_bindir}/cfsndserv
173 %{_datadir}/%{name}/sounds
174
175 %if %{?_without_images:0}%{?!_without_images:1}
176 %files images
177 %defattr(644,root,root,755)
178 %{_datadir}/%{name}/bmaps.client
179 %{_datadir}/%{name}/crossfire.base
180 %{_datadir}/%{name}/crossfire.clsc
181 %endif
182
183 %files gtk
184 %defattr(644,root,root,755)
185 %attr(755,root,root) %{_bindir}/g*
186 %{_mandir}/man?/g*
This page took 0.088173 seconds and 3 git commands to generate.