]> git.pld-linux.org Git - packages/crossfire-client.git/blobdiff - crossfire-client.spec
- release 5 (rebuild against libpng-1.5)
[packages/crossfire-client.git] / crossfire-client.spec
index c82fe4c82b4c4e12c02b57bb7cdb1833308c0c26..36336616199c2ff0986505c2c524e144907850a7 100644 (file)
@@ -1,24 +1,41 @@
+#
+# Conditional build:
+%bcond_without images  # don't build images package
+#
+%define                sndver  1.10.0
+%define                imgver  1.10.0
 Summary:       Crossfire client
-Summary(pl):   Klient Crossfire
+Summary(pl.UTF-8):     Klient Crossfire
 Name:          crossfire-client
-Version:       1.0.0
-Release:       1
+Version:       1.10.0
+Release:       5
 License:       GPL
 Group:         Applications/Games
-Group(de):     Applikationen/Spiele
-Group(pl):     Aplikacje/Gry
-Source0:       ftp://ftp.scruz.net/users/mwedel/public/%{name}-%{version}.tar.gz
-#Source0:      ftp://ftp.sourceforge.net/pub/sourceforge/crossfire/%{name}-%{version}.tar.gz
-Source1:       client-0.95.2-raw-sounds.tgz
+Source0:       http://dl.sourceforge.net/crossfire/%{name}-%{version}.tar.gz
+# Source0-md5: 883296ef199cbf47334d52d8b5d61886
+Source1:       http://dl.sourceforge.net/crossfire/%{name}-sounds-%{sndver}.tar.gz
+# Source1-md5: b990e5e3bf321211312cba48fb885142
+Source2:       http://dl.sourceforge.net/crossfire/%{name}-images-%{imgver}.tar.gz
+# Source2-md5: 496ccabc31e773349ccc679812f66f7b
+Patch0:                %{name}-libpng15.patch
 URL:           http://crossfire.real-time.com/
-BuildRequires: XFree86-devel
+BuildRequires: OpenGL-glut-devel
+BuildRequires: SDL-devel
+BuildRequires: SDL_image-devel
+BuildRequires: autoconf
+BuildRequires: automake
 BuildRequires: gtk+-devel
-BuildRequires: perl
+BuildRequires: gtk+2-devel
+BuildRequires: libtool
+BuildRequires: perl-base
+BuildRequires: pkgconfig
+BuildRequires: xorg-lib-libICE-devel
+BuildRequires: xorg-lib-libX11-devel
+BuildRequires: xorg-lib-libXext-devel
+Requires:      %{name}-common = %{version}-%{release}
 BuildRoot:     %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
 
-%define                _prefix         /usr/X11R6
-
-%description 
+%description
 X11 client to crossfire.
 
 Crossfire is a multiplayer graphical arcade and adventure game made
@@ -32,39 +49,37 @@ Any number of players can move around in their own window, finding and
 sing items and battle monsters. They can choose to cooperate or
 compete in the same "world".
 
-%description -l pl
+%description -l pl.UTF-8
 Klient Crossfire pod X11.
 
-Crossfire to graficzna gra przygodowa dla ¶rodowiska X-Window. S±
-tak¿e dostêpni klienci pod Windows i w Javie. £±czy cechy z kilku
-gier, g³ównie Gauntleta i Nethacka/Morii.
+Crossfire to graficzna gra przygodowa dla środowiska X-Window. Są
+także dostępni klienci pod Windows i w Javie. Łączy cechy z kilku
+gier, głównie Gauntleta i Nethacka/Morii.
 
-Dowolna liczba graczy mo¿e siê poruszaæ w swoich oknach, szukaj±c
-przedmiotów i walcz±c z potworami. Mog± graæ w kooperacji lub
-przeciwko sobie w tym samym "wiecie".
+Dowolna liczba graczy może się poruszać w swoich oknach, szukając
+przedmiotów i walcząc z potworami. Mogą grać w kooperacji lub
+przeciwko sobie w tym samym "świecie".
 
 %package sounds
 Summary:       Crossfire sounds
-Summary(pl):   D¼wiêki do Crossfire
+Summary(pl.UTF-8):     Dźwięki do Crossfire
 Group:         Applications/Games
-Group(de):     Applikationen/Spiele
-Group(pl):     Aplikacje/Gry
+Requires:      %{name}-common = %{version}-%{release}
 
 %description sounds
 Some sound files and the sound server for crossfire.
 
-%description sounds -l pl
-Pliki d¼wiêkowe i serwer d¼wiêku dla Crossfire.
+%description sounds -l pl.UTF-8
+Pliki dźwiękowe i serwer dźwięku dla Crossfire.
 
 %package gtk
-Summary:       GTK Crossfire client
-Summary(pl):   Klient Crossfire pod GTK
+Summary:       GTK+ Crossfire client
+Summary(pl.UTF-8):     Klient Crossfire pod GTK+
 Group:         Applications/Games
-Group(de):     Applikationen/Spiele
-Group(pl):     Aplikacje/Gry
+Requires:      %{name}-common = %{version}-%{release}
 
 %description gtk
-GTK client to crossfire.
+GTK+ client to crossfire.
 
 Crossfire is a multiplayer graphical arcade and adventure game made
 for the X-Window environment. There are also Windows and Java clients
@@ -77,51 +92,138 @@ Any number of players can move around in their own window, finding and
 sing items and battle monsters. They can choose to cooperate or
 compete in the same "world".
 
-%description gtk -l pl
-Klient Crossfire pod GTK.
+%description gtk -l pl.UTF-8
+Klient Crossfire pod GTK+.
+
+Crossfire to graficzna gra przygodowa dla środowiska X-Window. Są
+także dostępni klienci pod Windows i w Javie. Łączy cechy z kilku
+gier, głównie Gauntleta i Nethacka/Morii.
+
+Dowolna liczba graczy może się poruszać w swoich oknach, szukając
+przedmiotów i walcząc z potworami. Mogą grać w kooperacji lub
+przeciwko sobie w tym samym "świecie".
+
+%package gtk2
+Summary:       GTK+2 Crossfire client
+Summary(pl.UTF-8):     Klient Crossfire pod GTK+2
+Group:         Applications/Games
+Requires:      %{name}-common = %{version}-%{release}
+
+%description gtk2
+GTK+2 client to crossfire.
+
+Crossfire is a multiplayer graphical arcade and adventure game made
+for the X-Window environment. There are also Windows and Java clients
+available.
+
+It has certain flavours from other games, especially Gauntlet (TM) and
+Nethack/Moria.
+
+Any number of players can move around in their own window, finding and
+sing items and battle monsters. They can choose to cooperate or
+compete in the same "world".
 
-Crossfire to graficzna gra przygodowa dla ¶rodowiska X-Window. S±
-tak¿e dostêpni klienci pod Windows i w Javie. £±czy cechy z kilku
-gier, g³ównie Gauntleta i Nethacka/Morii.
+%description gtk2 -l pl.UTF-8
+Klient Crossfire pod GTK+2.
 
-Dowolna liczba graczy mo¿e siê poruszaæ w swoich oknach, szukaj±c
-przedmiotów i walcz±c z potworami. Mog± graæ w kooperacji lub
-przeciwko sobie w tym samym "¶wiecie".
+Crossfire to graficzna gra przygodowa dla środowiska X-Window. Są
+także dostępni klienci pod Windows i w Javie. Łączy cechy z kilku
+gier, głównie Gauntleta i Nethacka/Morii.
+
+Dowolna liczba graczy może się poruszać w swoich oknach, szukając
+przedmiotów i walcząc z potworami. Mogą grać w kooperacji lub
+przeciwko sobie w tym samym "świecie".
+
+%package images
+Summary:       Crossfire images
+Summary(pl.UTF-8):     Obrazki do Crossfire
+Group:         Applications/Games
+Requires:      %{name}-common = %{version}-%{release}
+
+%description images
+Some images extracted from server for Crossfire.
+
+%description images -l pl.UTF-8
+Trochę obrazków wyciągniętych z serwera do Crossfire.
+
+%package common
+Summary:       Common Crossfire clients files
+Summary(pl.UTF-8):     Pliki wspólne wszystkich klientów Crossfire
+Group:         Applications/Games
+
+%description common
+This package includes files common to all Crossfire clients.
+
+%description common -l pl.UTF-8
+Ten pakiet zawiera pliki wspólne dla wszystkich klientów Crossfire.
 
 %prep
-%setup -q -a1
+%setup  -q -a1
+%patch0 -p1
 mv -f sounds cfsounds
+%if %{with images}
+install -d images
+cd images
+tar xzf %{SOURCE2}
+cd ..
+%endif
 
 %build
+%{__libtoolize}
+%{__aclocal}
+%{__autoconf}
+%{__automake}
 %configure \
+       %{?debug:--enable-debug} \
        --disable-alsa \
-       --with-sound-dir=%{_datadir}/cfclient/sounds
+       --with-sound-dir=%{_datadir}/%{name}/sounds
+%{__perl} -i -p -e 's/\#define HAVE_DMALLOC_H 1/\/\* \#undef HAVE_DMALLOC_H \*\//' common/config.h
 %{__make}
 
 %install
 rm -rf $RPM_BUILD_ROOT
-install -d $RPM_BUILD_ROOT{%{_bindir},%{_mandir}/man1,%{_datadir}/cfclient/sounds}
-install cfclient gcfclient cfsndserv $RPM_BUILD_ROOT%{_bindir}
-install client.man $RPM_BUILD_ROOT%{_mandir}/man1/cfclient.1
-install client.man $RPM_BUILD_ROOT%{_mandir}/man1/gcfclient.1
-install cfsounds/*.raw $RPM_BUILD_ROOT%{_datadir}/cfclient/sounds/
+install -d $RPM_BUILD_ROOT{%{_bindir},%{_mandir}/man1,%{_datadir}/%{name}/sounds}
+
+%{__make} install \
+       DESTDIR=$RPM_BUILD_ROOT
+install cfsounds/*.raw $RPM_BUILD_ROOT%{_datadir}/%{name}/sounds/
+%if %{with images}
+install images/bmaps.client images/crossfire.base images/crossfire.clsc \
+       $RPM_BUILD_ROOT%{_datadir}/%{name}
+%endif
 
 %clean
 rm -rf $RPM_BUILD_ROOT
 
 %files
 %defattr(644,root,root,755)
-%doc CHANGES README def_keys
 %attr(755,root,root) %{_bindir}/cfclient
 %{_mandir}/man?/cf*
 
+%files common
+%defattr(644,root,root,755)
+%doc ChangeLog README
+%dir %{_datadir}/%{name}
+
 %files sounds
 %defattr(644,root,root,755)
-%doc sounds/README* sounds.dist
-%attr(755,root,root) %{_bindir}/cfsndserv
-%{_datadir}/cfclient
+%doc cfsounds/README
+%attr(755,root,root) %{_bindir}/cfsndserv*
+%{_datadir}/%{name}/sounds
+
+%if %{with images}
+%files images
+%defattr(644,root,root,755)
+%{_datadir}/%{name}/bmaps.client
+%{_datadir}/%{name}/crossfire.base
+%{_datadir}/%{name}/crossfire.clsc
+%endif
 
 %files gtk
 %defattr(644,root,root,755)
-%attr(755,root,root) %{_bindir}/g*
-%{_mandir}/man?/g*
+%attr(755,root,root) %{_bindir}/gcfclient
+%{_mandir}/man?/gcfclient.*
+
+%files gtk2
+%defattr(644,root,root,755)
+%attr(755,root,root) %{_bindir}/gcfclient2
This page took 0.090584 seconds and 4 git commands to generate.