]> git.pld-linux.org Git - packages/crossfire-client.git/blame - crossfire-client.spec
- release 3 (by relup.sh)
[packages/crossfire-client.git] / crossfire-client.spec
CommitLineData
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 7Summary: Crossfire client
1ba7a07a 8Summary(pl.UTF-8): Klient Crossfire
507e1762 9Name: crossfire-client
1aa62790 10Version: 1.60.0
ef8c51ce 11Release: 3
507e1762
JK
12License: GPL
13Group: Applications/Games
f0079352 14Source0: http://downloads.sourceforge.net/crossfire/%{name}-%{version}.tar.gz
1aa62790 15# Source0-md5: 7b22bf93ebb581a5bfd5682df107af76
f0079352 16Source1: http://downloads.sourceforge.net/crossfire/%{name}-sounds-%{sndver}.tar.gz
1aa62790 17# Source1-md5: 1985fc187a7624f48a4c4e9d609208ba
f0079352 18Source2: http://downloads.sourceforge.net/crossfire/%{name}-images-%{imgver}.tar.gz
1aa62790 19# Source2-md5: e68b6f32c4d15e65af8535a346efe51a
2091c17c 20Patch0: %{name}-libpng15.patch
56ae3ad1 21URL: http://crossfire.real-time.com/
d6484a04 22BuildRequires: OpenGL-glut-devel
1e34ca0d
JK
23BuildRequires: SDL-devel
24BuildRequires: SDL_image-devel
c69ee41e
JB
25BuildRequires: autoconf
26BuildRequires: automake
27BuildRequires: gtk+-devel
28BuildRequires: gtk+2-devel
29BuildRequires: libtool
30BuildRequires: perl-base
958ebcda 31BuildRequires: pkgconfig
32BuildRequires: xorg-lib-libICE-devel
dc617ef2
AF
33BuildRequires: xorg-lib-libX11-devel
34BuildRequires: xorg-lib-libXext-devel
1aa62790 35Suggests: crossfire-client-images
f0079352
AF
36Suggests: crossfire-client-sounds
37Obsoletes: crossfire-client-common
1aa62790
AF
38Obsoletes: crossfire-client-gtk
39Obsoletes: crossfire-client-gtk2
507e1762
JK
40BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
41
360ec874 42%description
1aa62790 43GTK+2 client to crossfire.
507e1762
JK
44
45Crossfire is a multiplayer graphical arcade and adventure game made
56ae3ad1 46for the X-Window environment. There are also Windows and Java clients
507e1762
JK
47available.
48
49It has certain flavours from other games, especially Gauntlet (TM) and
50Nethack/Moria.
51
52Any number of players can move around in their own window, finding and
53sing items and battle monsters. They can choose to cooperate or
54compete in the same "world".
55
ba9f53e1 56%description -l pl.UTF-8
1aa62790 57Klient Crossfire pod GTK+2.
56ae3ad1 58
ba9f53e1
JR
59Crossfire to graficzna gra przygodowa dla środowiska X-Window. Są
60także dostępni klienci pod Windows i w Javie. Łączy cechy z kilku
61gier, głównie Gauntleta i Nethacka/Morii.
56ae3ad1 62
ba9f53e1
JR
63Dowolna liczba graczy może się poruszać w swoich oknach, szukając
64przedmiotów i walcząc z potworami. Mogą grać w kooperacji lub
65przeciwko sobie w tym samym "świecie".
56ae3ad1 66
c0b4ea9b 67%package sounds
56ae3ad1 68Summary: Crossfire sounds
1ba7a07a 69Summary(pl.UTF-8): Dźwięki do Crossfire
c0b4ea9b 70Group: Applications/Games
c0b4ea9b
JK
71
72%description sounds
73Some sound files and the sound server for crossfire.
74
ba9f53e1
JR
75%description sounds -l pl.UTF-8
76Pliki dźwiękowe i serwer dźwięku dla Crossfire.
56ae3ad1 77
3afd6606
AF
78%package images
79Summary: Crossfire images
1ba7a07a 80Summary(pl.UTF-8): Obrazki do Crossfire
3afd6606 81Group: Applications/Games
3afd6606
AF
82
83%description images
e6cd55f7
JB
84Some images extracted from server for Crossfire.
85
ba9f53e1
JR
86%description images -l pl.UTF-8
87Trochę obrazków wyciągniętych z serwera do Crossfire.
3afd6606 88
507e1762 89%prep
3afd6606 90%setup -q -a1
2091c17c 91%patch0 -p1
56ae3ad1 92mv -f sounds cfsounds
ed2970f0 93%if %{with images}
3afd6606
AF
94install -d images
95cd images
96tar xzf %{SOURCE2}
97cd ..
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
113rm -rf $RPM_BUILD_ROOT
3afd6606 114install -d $RPM_BUILD_ROOT{%{_bindir},%{_mandir}/man1,%{_datadir}/%{name}/sounds}
703485d1 115
655422b2
AF
116%{__make} install \
117 DESTDIR=$RPM_BUILD_ROOT
3afd6606 118install cfsounds/*.raw $RPM_BUILD_ROOT%{_datadir}/%{name}/sounds/
ed2970f0 119%if %{with images}
3afd6606
AF
120install images/bmaps.client images/crossfire.base images/crossfire.clsc \
121 $RPM_BUILD_ROOT%{_datadir}/%{name}
9aeb31de 122%endif
507e1762
JK
123
124%clean
125rm -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
This page took 0.113555 seconds and 4 git commands to generate.