]>
Commit | Line | Data |
---|---|---|
ed2970f0 JB |
1 | # |
2 | # Conditional build: | |
3 | %bcond_without images # don't build images package | |
4 | # | |
1aa62790 AF |
5 | %define sndver 1.60.0 |
6 | %define imgver 1.60.0 | |
56ae3ad1 | 7 | Summary: Crossfire client |
1ba7a07a | 8 | Summary(pl.UTF-8): Klient Crossfire |
507e1762 | 9 | Name: crossfire-client |
1aa62790 | 10 | Version: 1.60.0 |
ef8c51ce | 11 | Release: 3 |
507e1762 JK |
12 | License: GPL |
13 | Group: Applications/Games | |
f0079352 | 14 | Source0: http://downloads.sourceforge.net/crossfire/%{name}-%{version}.tar.gz |
1aa62790 | 15 | # Source0-md5: 7b22bf93ebb581a5bfd5682df107af76 |
f0079352 | 16 | Source1: http://downloads.sourceforge.net/crossfire/%{name}-sounds-%{sndver}.tar.gz |
1aa62790 | 17 | # Source1-md5: 1985fc187a7624f48a4c4e9d609208ba |
f0079352 | 18 | Source2: http://downloads.sourceforge.net/crossfire/%{name}-images-%{imgver}.tar.gz |
1aa62790 | 19 | # Source2-md5: e68b6f32c4d15e65af8535a346efe51a |
2091c17c | 20 | Patch0: %{name}-libpng15.patch |
56ae3ad1 | 21 | URL: http://crossfire.real-time.com/ |
d6484a04 | 22 | BuildRequires: OpenGL-glut-devel |
1e34ca0d JK |
23 | BuildRequires: SDL-devel |
24 | BuildRequires: SDL_image-devel | |
c69ee41e JB |
25 | BuildRequires: autoconf |
26 | BuildRequires: automake | |
27 | BuildRequires: gtk+-devel | |
28 | BuildRequires: gtk+2-devel | |
29 | BuildRequires: libtool | |
30 | BuildRequires: perl-base | |
958ebcda | 31 | BuildRequires: pkgconfig |
32 | BuildRequires: xorg-lib-libICE-devel | |
dc617ef2 AF |
33 | BuildRequires: xorg-lib-libX11-devel |
34 | BuildRequires: xorg-lib-libXext-devel | |
1aa62790 | 35 | Suggests: crossfire-client-images |
f0079352 AF |
36 | Suggests: crossfire-client-sounds |
37 | Obsoletes: crossfire-client-common | |
1aa62790 AF |
38 | Obsoletes: crossfire-client-gtk |
39 | Obsoletes: crossfire-client-gtk2 | |
507e1762 JK |
40 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) |
41 | ||
360ec874 | 42 | %description |
1aa62790 | 43 | GTK+2 client to crossfire. |
507e1762 JK |
44 | |
45 | Crossfire is a multiplayer graphical arcade and adventure game made | |
56ae3ad1 | 46 | for the X-Window environment. There are also Windows and Java clients |
507e1762 JK |
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 | ||
ba9f53e1 | 56 | %description -l pl.UTF-8 |
1aa62790 | 57 | Klient Crossfire pod GTK+2. |
56ae3ad1 | 58 | |
ba9f53e1 JR |
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. | |
56ae3ad1 | 62 | |
ba9f53e1 JR |
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". | |
56ae3ad1 | 66 | |
c0b4ea9b | 67 | %package sounds |
56ae3ad1 | 68 | Summary: Crossfire sounds |
1ba7a07a | 69 | Summary(pl.UTF-8): Dźwięki do Crossfire |
c0b4ea9b | 70 | Group: Applications/Games |
c0b4ea9b JK |
71 | |
72 | %description sounds | |
73 | Some sound files and the sound server for crossfire. | |
74 | ||
ba9f53e1 JR |
75 | %description sounds -l pl.UTF-8 |
76 | Pliki dźwiękowe i serwer dźwięku dla Crossfire. | |
56ae3ad1 | 77 | |
3afd6606 AF |
78 | %package images |
79 | Summary: Crossfire images | |
1ba7a07a | 80 | Summary(pl.UTF-8): Obrazki do Crossfire |
3afd6606 | 81 | Group: Applications/Games |
3afd6606 AF |
82 | |
83 | %description images | |
e6cd55f7 JB |
84 | Some images extracted from server for Crossfire. |
85 | ||
ba9f53e1 JR |
86 | %description images -l pl.UTF-8 |
87 | Trochę obrazków wyciągniętych z serwera do Crossfire. | |
3afd6606 | 88 | |
507e1762 | 89 | %prep |
3afd6606 | 90 | %setup -q -a1 |
2091c17c | 91 | %patch0 -p1 |
56ae3ad1 | 92 | mv -f sounds cfsounds |
ed2970f0 | 93 | %if %{with images} |
3afd6606 AF |
94 | install -d images |
95 | cd images | |
96 | tar xzf %{SOURCE2} | |
97 | cd .. | |
9aeb31de | 98 | %endif |
507e1762 JK |
99 | |
100 | %build | |
0acf0eb0 | 101 | %{__libtoolize} |
1aa62790 | 102 | %{__aclocal} -I macros |
0acf0eb0 AF |
103 | %{__autoconf} |
104 | %{__automake} | |
507e1762 | 105 | %configure \ |
a5fa8318 | 106 | %{?debug:--enable-debug} \ |
35d2b8c8 | 107 | --disable-alsa \ |
3afd6606 | 108 | --with-sound-dir=%{_datadir}/%{name}/sounds |
26093e48 | 109 | %{__perl} -i -p -e 's/\#define HAVE_DMALLOC_H 1/\/\* \#undef HAVE_DMALLOC_H \*\//' common/config.h |
507e1762 JK |
110 | %{__make} |
111 | ||
112 | %install | |
113 | rm -rf $RPM_BUILD_ROOT | |
3afd6606 | 114 | install -d $RPM_BUILD_ROOT{%{_bindir},%{_mandir}/man1,%{_datadir}/%{name}/sounds} |
703485d1 | 115 | |
655422b2 AF |
116 | %{__make} install \ |
117 | DESTDIR=$RPM_BUILD_ROOT | |
3afd6606 | 118 | install cfsounds/*.raw $RPM_BUILD_ROOT%{_datadir}/%{name}/sounds/ |
ed2970f0 | 119 | %if %{with images} |
3afd6606 AF |
120 | install images/bmaps.client images/crossfire.base images/crossfire.clsc \ |
121 | $RPM_BUILD_ROOT%{_datadir}/%{name} | |
9aeb31de | 122 | %endif |
507e1762 JK |
123 | |
124 | %clean | |
125 | rm -rf $RPM_BUILD_ROOT | |
126 | ||
127 | %files | |
128 | %defattr(644,root,root,755) | |
655422b2 | 129 | %doc ChangeLog README |
1aa62790 AF |
130 | %attr(755,root,root) %{_bindir}/crossfire-client-gtk2 |
131 | %{_mandir}/man?/crossfire-client-gtk2.* | |
3afd6606 | 132 | %dir %{_datadir}/%{name} |
1aa62790 AF |
133 | %{_datadir}/%{name}/glade-gtk2 |
134 | %{_datadir}/%{name}/themes | |
3afd6606 | 135 | |
c0b4ea9b JK |
136 | %files sounds |
137 | %defattr(644,root,root,755) | |
e62de958 | 138 | %doc cfsounds/README |
655422b2 | 139 | %attr(755,root,root) %{_bindir}/cfsndserv* |
3afd6606 AF |
140 | %{_datadir}/%{name}/sounds |
141 | ||
ed2970f0 | 142 | %if %{with images} |
3afd6606 AF |
143 | %files images |
144 | %defattr(644,root,root,755) | |
145 | %{_datadir}/%{name}/bmaps.client | |
146 | %{_datadir}/%{name}/crossfire.base | |
147 | %{_datadir}/%{name}/crossfire.clsc | |
9aeb31de | 148 | %endif |