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