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