+# TODO:
+# - some python plugin can be built, but it's hardly disabled (why ?)
+# - there's lot of stuff in misc directory, some of them interesting
+# (to be compiled, moved to doc, or something else)
+# - bzfsAPI.h and other is marked ad noinst_HEADER, maybe in future it will
+# be installed too, to allow compiling plugins externall
+#
Summary: Multiplayer 3D tank battle game
-Summary(pl): Gra 3D dla wielu graczy - czo³gi
+Summary(pl.UTF-8): Gra 3D dla wielu graczy - czołgi
Name: bzflag
-Version: 2.0.0.20050117
-Release: 1
-License: GPL
+Version: 2.0.8
+Release: 2
+License: LGPL
Group: X11/Applications/Games
-Source0: http://dl.sourceforge.net/%{name}/%{name}-%{version}.tar.bz2
-# Source0-md5: 16da32cfaac130bf68ca156d0dec2b2e
+Source0: http://dl.sourceforge.net/bzflag/%{name}-%{version}.tar.bz2
+# Source0-md5: 7963cc1de7144e76a9426b6f23d7c2c8
Source1: %{name}.desktop
Source2: %{name}.png
Patch0: %{name}-etc_dir.patch
Patch1: %{name}-nolibs.patch
-Icon: bzflag.xpm
URL: http://BZFlag.org/
BuildRequires: OpenGL-devel
-BuildRequires: adns-devel
+BuildRequires: SDL-devel >= 1.2.5
BuildRequires: autoconf
BuildRequires: automake
+BuildRequires: c-ares-devel
+BuildRequires: curl-devel >= 7.9.5
+BuildRequires: libstdc++-devel
+BuildRequires: ncurses-devel
Requires: OpenGL
-Requires: %{name}-server = %{version}-%{release}
BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
%define _noautoreqdep libGL.so.1 libGLU.so.1
fast action and strategy. Free-for-all and capture-the-flag styles are
available.
-%description -l pl
-bzflag jest sieciow± gr± czo³gow± 3D, ³±cz±c± szybk± akcjê ze
-strategi±. Graæ mo¿na w wolnym stylu lub metod± "zdob±d¼ flagê".
+%description -l pl.UTF-8
+bzflag jest sieciową grą czołgową 3D, łączącą szybką akcję ze
+strategią. Grać można w wolnym stylu lub metodą "zdobądź flagę".
%package server
Summary: bzflag server and console utilities
-Summary(pl): Server bzflag i narzêdzia konsolowe
+Summary(pl.UTF-8): Server bzflag i narzędzia konsolowe
Group: X11/Applications/Games
Conflicts: bzflag < 1.10.8.20041007-1
%description server
bzflag server and console utilities.
-%description server -l pl
-Server bzflag i narzêdzia konsolowe.
+%description server -l pl.UTF-8
+Server bzflag i narzędzia konsolowe.
%prep
%setup -q
#%patch0 -p1
%patch1 -p1
+:> m4/mkdirp.m4
+:> m4/sdl.m4
+
%build
-%{__aclocal}
+CFLAGS="%{rpmcflags} -I/usr/include/ncurses"
+CPPFLAGS="%{rpmcflags} -I/usr/include/ncurses"
+export CFLAGS CPPFLAGS
+%{__aclocal} -I m4
%{__autoheader}
%{__autoconf}
%{__automake}
-%configure
+%configure \
+ --enable-threads \
+ --enable-plugins \
+ --enable-bzadmin \
+ --disable-timebomb \
+ --disable-sdltest \
+ --enable-client \
+ --enable-robots \
+ --enable-snapping
%{__make}
%files
%defattr(644,root,root,755)
-%doc README BUGS RELNOTES TODO ChangeLog
+%doc AUTHORS README README.Linux BUGS TODO ChangeLog
%attr(755,root,root) %{_bindir}/bzflag
%{_mandir}/man6/bzflag.6*
%{_desktopdir}/*.desktop
%lang(fr) %{_datadir}/%{name}/l10n/%{name}_fr.po
%lang(it) %{_datadir}/%{name}/l10n/%{name}_it.po
%lang(tlh) %{_datadir}/%{name}/l10n/%{name}_kg.po
+%lang(lt) %{_datadir}/%{name}/l10n/%{name}_lt.po
%lang(nl) %{_datadir}/%{name}/l10n/%{name}_nl.po
%lang(pt) %{_datadir}/%{name}/l10n/%{name}_pt.po
%lang(sv) %{_datadir}/%{name}/l10n/%{name}_sv.po
+#%attr(755,root,root) %{_libdir}/*.so
%files server
%defattr(644,root,root,755)
%attr(755,root,root) %{_bindir}/bzadmin
-#attr(755,root,root) %{_bindir}/bzfrelay
%attr(755,root,root) %{_bindir}/bzfs
%{_mandir}/man5/bzw.5*
%{_mandir}/man6/bzadmin.6*