Summary: 3D multi-player tank battle game Name: bzflag Version: 2.4.8 Release: 1%{?dist} License: LGPLv2 Group: Amusements/Games URL: http://bzflag.org Source0: https://download.bzflag.org/bzflag/source/%{version}/bzflag-%{version}.tar.bz2 Source1: bzflag.desktop Source2: bzflag.sysconfig Source3: bzflag.service Patch0: bzflag-2.0.12-findresolutions.patch BuildRequires: libXxf86vm-devel BuildRequires: libXext-devel BuildRequires: libSM-devel BuildRequires: libICE-devel BuildRequires: libX11-devel BuildRequires: libGL-devel BuildRequires: libGLU-devel BuildRequires: gcc-c++ BuildRequires: desktop-file-utils BuildRequires: SDL-devel BuildRequires: ncurses-devel BuildRequires: libcurl-devel BuildRequires: c-ares-devel BuildRequires: zlib-devel BuildRequires: sed BuildRequires: systemd Requires: opengl-games-utils Requires(pre): shadow-utils %description BZFlag is a 3D multi-player tank battle game that allows users to play against each other in a networked environment. There are five teams: red, green, blue, purple and rogue (rogue tanks are black). Destroying a player on another team scores a win, while being destroyed or destroying a teammate scores a loss. Rogues have no teammates (not even other rogues), so they cannot shoot teammates and they do not have a team score. There are two main styles of play: capture-the-flag and free-for-all. %package maps-sample Summary: Sample maps for bzflag Group: Amusements/Games Requires: %{name} = %{?epoch:%{epoch}:}%{version}-%{release} BuildArch: noarch %description maps-sample This package contains sample world maps for bzflag. %prep %setup -q -n %{name}-%{version} %patch0 -p1 -b .findresolutions %build # Use PIE because bzflag/bzfs are networked server applications CFLAGS='-fPIC %{optflags} -fno-strict-aliasing' \ CXXFLAGS='-fPIC %{optflags} -fno-strict-aliasing' \ LDFLAGS='-pie' \ %configure --libdir=%{_libdir}/%{name} --with-SDL=1 make %{?_smp_mflags} %install %make_install install -D -m 644 package/rpm/bzflag-m.xpm \ %{buildroot}%{_datadir}/pixmaps/bzflag.xpm install -D -m 644 misc/art/bzicon-red.svg \ %{buildroot}%{_datadir}/pixmaps/bzflag.svg mkdir -p %{buildroot}%{_datadir}/bzflag/maps install -m 644 misc/maps/*.bzw %{buildroot}%{_datadir}/bzflag/maps rm -f %{buildroot}%{_libdir}/bzflag/*.la rm -f %{buildroot}%{_datadir}/bzflag/bzflag.desktop ln -snf opengl-game-wrapper.sh %{buildroot}%{_bindir}/bzflag-wrapper sed 's:^Exec=\(.*\)$:Exec=\1-wrapper:g' < %{SOURCE1} > bzflag.desktop mkdir -p %{buildroot}%{_datadir}/applications desktop-file-install --dir %{buildroot}%{_datadir}/applications bzflag.desktop # Register as an application to be visible in the software center # # NOTE: It would be *awesome* if this file was maintained by the upstream # project, translated and installed into the right place during `make install`. # # See http://www.freedesktop.org/software/appstream/docs/ for more details. # mkdir -p $RPM_BUILD_ROOT%{_datadir}/appdata cat > $RPM_BUILD_ROOT%{_datadir}/appdata/%{name}.appdata.xml < bzflag.desktop CC0-1.0 An online multiplayer 3D tank battle game

bzflag is a multiplayer tank battle game with "retro" 3D style graphics.

http://bzflag.org http://bzflag.org/resources/screenshots/dantes_inferno_01.jpg http://bzflag.org/resources/screenshots/aa_bridge_crossing_01.jpg http://bzflag.org/resources/screenshots/pandemonium_01.jpg
EOF install -Dp -m 0644 %{SOURCE2} %{buildroot}%{_sysconfdir}/sysconfig/bzflag install -Dp -m 0644 %{SOURCE3} %{buildroot}%{_unitdir}/bzflag.service %pre getent group bzflag >/dev/null || groupadd -r bzflag getent passwd bzflag >/dev/null || \ useradd -r -g bzflag -d %{_datadir}/bzflag -s /sbin/nologin \ -c "Useful comment about the purpose of this account" bzflag exit 0 %post %systemd_post bzflag.service %preun %systemd_preun bzflag.service %postun %systemd_postun_with_restart bzflag.service %files %defattr(-, root, root, 0755) %doc AUTHORS COPYING ChangeLog README README.Linux %{_bindir}/bzadmin %{_bindir}/bzflag %{_bindir}/bzflag-wrapper %{_bindir}/bzfs %dir %{_libdir}/bzflag %{_libdir}/bzflag/*.so %{_datadir}/appdata/%{name}.appdata.xml %{_datadir}/applications/%{name}.desktop %{_datadir}/bzflag %exclude %{_datadir}/bzflag/maps/* %{_datadir}/pixmaps/bzflag.xpm %{_datadir}/pixmaps/bzflag.svg %{_mandir}/man*/* %{_sysconfdir}/sysconfig/bzflag %{_unitdir}/bzflag.service %files maps-sample %defattr(-, root, root, 0755) %{_datadir}/bzflag/maps/* %changelog * Thu Oct 13 2016 Jon Ciesla - 2.4.8-1 - 2.4.8. * Wed Jul 06 2016 Jon Ciesla - 2.4.6-3 - Run server under bzflag user. - Revert to SDL. * Tue Jun 28 2016 Jon Ciesla - 2.4.6-2 - Add unit file, BZ 198929. * Tue Jun 28 2016 Jon Ciesla - 2.4.6-1 - 2.4.6. - Use SDL2. * Sat Feb 20 2016 Jeff Makey 2.4.4-1 - version 2.4.4 - new source URL - do not run autogen.sh now that upstream uses autoconf 2.69 - remove obsolete build requirements - remove unused upstream bzflag.desktop file * Wed Feb 03 2016 Fedora Release Engineering - 2.4.2-16 - Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild * Thu Jan 14 2016 Adam Jackson - 2.4.2-15 - Rebuild for glew 1.13 * Wed Jun 17 2015 Fedora Release Engineering - 2.4.2-14 - Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild * Sat May 02 2015 Kalev Lember - 2.4.2-13 - Rebuilt for GCC 5 C++11 ABI change * Thu Mar 26 2015 Richard Hughes - 2.4.2-12 - Add an AppData file for the software center * Fri Aug 15 2014 Fedora Release Engineering - 2.4.2-11 - Rebuilt for https://fedoraproject.org/wiki/Fedora_21_22_Mass_Rebuild * Fri Jul 11 2014 Richard Hughes - 2.4.2-10 - Use the upstream SVG icon rather than the obsolete small XPM icon - This makes bzflag show up in the software center applications * Sat Jun 07 2014 Fedora Release Engineering - 2.4.2-9 - Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild * Mon Nov 18 2013 Dave Airlie - 2.4.2-8 - rebuilt for GLEW 1.10 * Sat Aug 03 2013 Fedora Release Engineering - 2.4.2-7 - Rebuilt for https://fedoraproject.org/wiki/Fedora_20_Mass_Rebuild * Sat Mar 23 2013 Jeff Makey 2.4.2-6 - run autogen.sh before configure to gain aarch64 support (#925121) - fix bogus dates in changelog * Mon Mar 11 2013 Jeff Makey 2.4.2-5 - desktop file cleanup * Thu Feb 14 2013 Rahul Sundaram - 2.4.2-4 - remove vendor tag from desktop file. https://fedorahosted.org/fpc/ticket/247 - clean up spec to follow current guidelines - drop obsolete cruft * Wed Feb 13 2013 Fedora Release Engineering - 2.4.2-3 - Rebuilt for https://fedoraproject.org/wiki/Fedora_19_Mass_Rebuild * Thu Dec 13 2012 Adam Jackson - 2.4.2-2 - Rebuild for glew 1.9.0 * Sun Jul 29 2012 Jeff Makey 2.4.2-1 - version 2.4.2 - remove BUGS and NEWS doc files which are now content free * Wed Jul 18 2012 Fedora Release Engineering - 2.4.0-5 - Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild * Tue Feb 28 2012 Fedora Release Engineering - 2.4.0-4 - Rebuilt for c++ ABI breakage * Tue Jan 10 2012 Nils Philippsen - 2.4.0-3 - rebuild for gcc 4.7 * Wed Aug 17 2011 Jeff Makey 2.4.0-2 - build require zlib-devel * Wed Aug 17 2011 Jeff Makey 2.4.0-1 - version 2.4.0 - build require glew-devel - remove obsolete --disable-static and --enable-shared configure options - set plugin directory with --libdir - use new sample maps source directory - it is no longer necessary to remove bzfquery man page * Mon Apr 04 2011 Nils Philippsen 2.0.16-3 - package sample maps in their own subpackage (#587815) * Tue Feb 08 2011 Fedora Release Engineering - 2.0.16-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild * Fri Apr 09 2010 Nils Philippsen 2.0.16-1 - version 2.0.16 - drop obsolete gold patch * Wed Mar 03 2010 Nils Philippsen 2.0.14-1 - explicitly link libraries (#565122, patch by Jeff Makey, slightly modified) * Tue Feb 16 2010 Nils Philippsen - version 2.0.14 - don't run autoreconf - remove obsolete lookup patch (see http://sourceforge.net/tracker/index.php?func=detail&aid=1197856&group_id=3248&atid=303248) - remove obsolete gcc patch - use --disable-static instead of removing *.a files - remove bzfquery man page - sanitize source URL, get rid of %%date * Fri Jul 24 2009 Fedora Release Engineering * - 2.0.12-6 - Rebuilt for https://fedoraproject.org/wiki/Fedora_12_Mass_Rebuild * Mon Mar 02 2009 Nils Philippsen 2.0.12-5 - fix building with gcc-4.4 * Mon Feb 23 2009 Fedora Release Engineering - Rebuilt for https://fedoraproject.org/wiki/Fedora_11_Mass_Rebuild * Mon Dec 22 2008 Nils Philippsen 2.0.12-4 - use autoreconf -i * Wed Jul 09 2008 Nils Philippsen 2.0.12-3 - build with SDL, but fix finding resolutions (#426011) * Tue Jul 08 2008 Nils Philippsen 2.0.12-2 - build without SDL (#426011) * Tue Jul 08 2008 Nils Philippsen 2.0.12-1 - version 2.0.12 - fix source URL - drop plugin patch - use %%bcond_with/_without macros * Fri Feb 22 2008 Nils Philippsen 2.0.10-6 - update gcc-4.3 patch (plugins, #434347) - require libcurl-devel from Fedora 9 onward * Tue Feb 19 2008 Fedora Release Engineering - 2.0.10-5 - Autorebuild for GCC 4.3 * Fri Jan 04 2008 Nils Philippsen 2.0.10-4 - fix headers for C++ with gcc-4.3 * Thu Dec 20 2007 Nils Philippsen 2.0.10-3 - fix global plugin directory * Wed Dec 19 2007 Nils Philippsen 2.0.10-2 - build and package plugins * Mon Dec 17 2007 Nils Philippsen 2.0.10-1 - version 2.0.10 * Wed Oct 17 2007 Nils Philippsen 2.0.8-8 - really use opengl-games-wrapper.sh from Fedora 7 on (#304781) * Tue Oct 16 2007 Nils Philippsen 2.0.8-7 - use opengl-games-wrapper.sh from Fedora 7 on (#304781) * Wed Sep 05 2007 Nils Philippsen 2.0.8-6 - change license tag from LGPL to LGPLv2 * Fri Jun 22 2007 Nils Philippsen - change license tag from GPL to LGPL * Mon Nov 06 2006 Jindrich Novy 2.0.8-4 - rebuild because of the new curl * Mon Aug 28 2006 Nils Philippsen 2.0.8-3 - FC6 mass rebuild * Tue Jul 11 2006 Nils Philippsen 2.0.8-2 - rebuild to pick up new c-ares version * Tue May 16 2006 Nils Philippsen 2.0.8-1 - version 2.0.8 * Fri May 12 2006 Nils Philippsen 2.0.6-1 - automatically decide between modular/traditional X depending on %%fedora * Thu May 11 2006 Nils Philippsen - version 2.0.6 - add disttag - remove upstreamed stringdos patch - adapt %%files * Fri Feb 17 2006 Nils Philippsen 2.0.4-3 - rebuild * Wed Dec 28 2005 Nils Philippsen 2.0.4-2 - don't crash on maliciously formed callsign, etc. strings (#176626, patch backported from upstream CVS) * Mon Nov 21 2005 Nils Philippsen 2.0.4-1 - version 2.0.4 - update lookup patch - build require c-ares-devel instead of adns-devel - add newly introduced libs and includes (but exclude headers and static libs, courtesy of Matthias Saou) - use -fPIC, -pie (hopefully) correctly to avoid build problems on x86_64 * Thu Nov 17 2005 Nils Philippsen 2.0.2-5 - rebuild to pick up new openssl version - prepare for modular X - appease ISO C++ * Mon May 09 2005 Nils Philippsen 2.0.2-4 - build with -fno-strict-aliasing (typo) * Mon May 09 2005 Nils Philippsen 2.0.2-3 - build with -fnostrict-aliasing * Wed Apr 06 2005 Nils Philippsen 2.0.2-2 - build with adns - build require libGL-devel and libGLU-devel to hopefully resolve building problems - apply name lookup patch * Wed Mar 23 2005 Nils Philippsen - work around missing dependency in xorg-x11-devel * Wed Mar 23 2005 Nils Philippsen - version 2.0.2 * Tue Mar 15 2005 Nils Philippsen 2.0.0-4 - buildrequire bc for curl version check * Fri Mar 04 2005 Nils Philippsen - move package over to Extras - make desktop file a file, don't generate it in %%install - use an a bit more individual build root - buildrequire curl-devel * Mon Feb 21 2005 Nils Philippsen 2.0.0-3 - fix dates in %%changelog * Fri Feb 18 2005 Nils Philippsen 2.0.0-2 - build as PIE * Fri Feb 18 2005 Nils Philippsen 2.0.0-1 - correct source URL - buildrequire ncurses-devel * Tue Jan 18 2005 Nils Philippsen 2.0.0-0.1 - version 2.0.0.20050117 - buildrequire xorg-x11-devel, not XFree86-devel * Tue Aug 10 2004 Alan Cox 1.10.6-2 - Adopted for FC3 core from Matthias Saou's freshrpms package. Thanks to Matthias for doing all the work. * Tue May 18 2004 Matthias Saou 1.10.6-1 - Update to 1.10.6. - First rebuild for Fedora Core 2. * Thu Mar 25 2004 Matthias Saou 1.10.4-2 - Removed explicit XFree86 dependency. * Mon Feb 16 2004 Matthias Saou 1.10.4-1 - Update to 1.10.4.20040125, update the included docs. - Removed no longer existing bzfls file and added bzadmin. * Fri Nov 7 2003 Matthias Saou 1.7g2-2 - Rebuild for Fedora Core 1. - Added missing gcc-c++ build dependency. * Sun Jun 22 2003 Matthias Saou - Update to 1.7g2. - Major spec changes for the new build method. * Tue Apr 1 2003 Matthias Saou - Fix the Xfree86 dependency, doh! - Clean up the confusing build. - Add a system menu entry. * Mon Mar 31 2003 Matthias Saou - Update to 1.7g0. - Rebuilt for Red Hat Linux 9. * Mon Nov 4 2002 Matthias Saou - Rebuilt for Red Hat Linux 8.0. * Wed Jun 19 2002 Matthias Saou - Update to 1.7e6. * Wed Feb 13 2002 Matthias Saou - Initial RPM release.