]> git.pld-linux.org Git - packages/crossfire-client.git/blob - crossfire-client.spec
- release 3 (by relup.sh)
[packages/crossfire-client.git] / crossfire-client.spec
1 #
2 # Conditional build:
3 %bcond_without  images  # don't build images package
4 #
5 %define         sndver  1.60.0
6 %define         imgver  1.60.0
7 Summary:        Crossfire client
8 Summary(pl.UTF-8):      Klient Crossfire
9 Name:           crossfire-client
10 Version:        1.60.0
11 Release:        3
12 License:        GPL
13 Group:          Applications/Games
14 Source0:        http://downloads.sourceforge.net/crossfire/%{name}-%{version}.tar.gz
15 # Source0-md5:  7b22bf93ebb581a5bfd5682df107af76
16 Source1:        http://downloads.sourceforge.net/crossfire/%{name}-sounds-%{sndver}.tar.gz
17 # Source1-md5:  1985fc187a7624f48a4c4e9d609208ba
18 Source2:        http://downloads.sourceforge.net/crossfire/%{name}-images-%{imgver}.tar.gz
19 # Source2-md5:  e68b6f32c4d15e65af8535a346efe51a
20 Patch0:         %{name}-libpng15.patch
21 URL:            http://crossfire.real-time.com/
22 BuildRequires:  OpenGL-glut-devel
23 BuildRequires:  SDL-devel
24 BuildRequires:  SDL_image-devel
25 BuildRequires:  autoconf
26 BuildRequires:  automake
27 BuildRequires:  gtk+-devel
28 BuildRequires:  gtk+2-devel
29 BuildRequires:  libtool
30 BuildRequires:  perl-base
31 BuildRequires:  pkgconfig
32 BuildRequires:  xorg-lib-libICE-devel
33 BuildRequires:  xorg-lib-libX11-devel
34 BuildRequires:  xorg-lib-libXext-devel
35 Suggests:       crossfire-client-images
36 Suggests:       crossfire-client-sounds
37 Obsoletes:      crossfire-client-common
38 Obsoletes:      crossfire-client-gtk
39 Obsoletes:      crossfire-client-gtk2
40 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
41
42 %description
43 GTK+2 client to crossfire.
44
45 Crossfire is a multiplayer graphical arcade and adventure game made
46 for the X-Window environment. There are also Windows and Java clients
47 available.
48
49 It has certain flavours from other games, especially Gauntlet (TM) and
50 Nethack/Moria.
51
52 Any number of players can move around in their own window, finding and
53 sing items and battle monsters. They can choose to cooperate or
54 compete in the same "world".
55
56 %description -l pl.UTF-8
57 Klient Crossfire pod GTK+2.
58
59 Crossfire to graficzna gra przygodowa dla środowiska X-Window. Są
60 także dostępni klienci pod Windows i w Javie. Łączy cechy z kilku
61 gier, głównie Gauntleta i Nethacka/Morii.
62
63 Dowolna liczba graczy może się poruszać w swoich oknach, szukając
64 przedmiotów i walcząc z potworami. Mogą grać w kooperacji lub
65 przeciwko sobie w tym samym "świecie".
66
67 %package sounds
68 Summary:        Crossfire sounds
69 Summary(pl.UTF-8):      Dźwięki do Crossfire
70 Group:          Applications/Games
71
72 %description sounds
73 Some sound files and the sound server for crossfire.
74
75 %description sounds -l pl.UTF-8
76 Pliki dźwiękowe i serwer dźwięku dla Crossfire.
77
78 %package images
79 Summary:        Crossfire images
80 Summary(pl.UTF-8):      Obrazki do Crossfire
81 Group:          Applications/Games
82
83 %description images
84 Some images extracted from server for Crossfire.
85
86 %description images -l pl.UTF-8
87 Trochę obrazków wyciągniętych z serwera do Crossfire.
88
89 %prep
90 %setup  -q -a1
91 %patch0 -p1
92 mv -f sounds cfsounds
93 %if %{with images}
94 install -d images
95 cd images
96 tar xzf %{SOURCE2}
97 cd ..
98 %endif
99
100 %build
101 %{__libtoolize}
102 %{__aclocal} -I macros
103 %{__autoconf}
104 %{__automake}
105 %configure \
106         %{?debug:--enable-debug} \
107         --disable-alsa \
108         --with-sound-dir=%{_datadir}/%{name}/sounds
109 %{__perl} -i -p -e 's/\#define HAVE_DMALLOC_H 1/\/\* \#undef HAVE_DMALLOC_H \*\//' common/config.h
110 %{__make}
111
112 %install
113 rm -rf $RPM_BUILD_ROOT
114 install -d $RPM_BUILD_ROOT{%{_bindir},%{_mandir}/man1,%{_datadir}/%{name}/sounds}
115
116 %{__make} install \
117         DESTDIR=$RPM_BUILD_ROOT
118 install cfsounds/*.raw $RPM_BUILD_ROOT%{_datadir}/%{name}/sounds/
119 %if %{with images}
120 install images/bmaps.client images/crossfire.base images/crossfire.clsc \
121         $RPM_BUILD_ROOT%{_datadir}/%{name}
122 %endif
123
124 %clean
125 rm -rf $RPM_BUILD_ROOT
126
127 %files
128 %defattr(644,root,root,755)
129 %doc ChangeLog README
130 %attr(755,root,root) %{_bindir}/crossfire-client-gtk2
131 %{_mandir}/man?/crossfire-client-gtk2.*
132 %dir %{_datadir}/%{name}
133 %{_datadir}/%{name}/glade-gtk2
134 %{_datadir}/%{name}/themes
135
136 %files sounds
137 %defattr(644,root,root,755)
138 %doc cfsounds/README
139 %attr(755,root,root) %{_bindir}/cfsndserv*
140 %{_datadir}/%{name}/sounds
141
142 %if %{with images}
143 %files images
144 %defattr(644,root,root,755)
145 %{_datadir}/%{name}/bmaps.client
146 %{_datadir}/%{name}/crossfire.base
147 %{_datadir}/%{name}/crossfire.clsc
148 %endif
This page took 0.046618 seconds and 4 git commands to generate.