6f90fe5
6f90fe5
Summary: 3D multi-player tank battle game
6f90fe5
Name: bzflag
5527851
Version: 2.4.2
2e24413
Release: 9%{?dist}
8cae1fd
License: LGPLv2
6f90fe5
Group: Amusements/Games
6f90fe5
URL: http://bzflag.org
d3b8811
Source0: http://downloads.sourceforge.net/bzflag/bzflag-%{version}.tar.bz2
6f90fe5
Source1: bzflag.desktop
d3b8811
Patch0: bzflag-2.0.12-findresolutions.patch
c1d5fcf
BuildRequires: libXxf86vm-devel
c1d5fcf
BuildRequires: libXext-devel
c1d5fcf
BuildRequires: libSM-devel
c1d5fcf
BuildRequires: libICE-devel
c1d5fcf
BuildRequires: libX11-devel
b6c1b7b
BuildRequires: libGL-devel
b6c1b7b
BuildRequires: libGLU-devel
8ac6b36
BuildRequires: gcc-c++
8ac6b36
BuildRequires: desktop-file-utils
8ac6b36
BuildRequires: SDL-devel
8ac6b36
BuildRequires: ncurses-devel
e990eaf
BuildRequires: libcurl-devel
89bd22f
BuildRequires: c-ares-devel
0524d1a
BuildRequires: glew-devel
39b9d04
BuildRequires: zlib-devel
27699b7
# for curl version checking in configure. ugh.
27699b7
BuildRequires: bc
0cf3f71
# autogen.sh needs autoconf, automake, and libtool
0cf3f71
BuildRequires: autoconf
0cf3f71
BuildRequires: automake
d0e7ef5
BuildRequires: libtool
fba08a0
BuildRequires: sed
fba08a0
Requires: opengl-games-utils
cbb62c9
6f90fe5
%description
6f90fe5
BZFlag is a 3D multi-player tank battle game  that  allows users to play
6f90fe5
against each other in a networked environment.  There are five teams: red,
6f90fe5
green, blue, purple and rogue (rogue tanks are black).  Destroying a player
6f90fe5
on another team  scores a win, while being destroyed or destroying a teammate
6f90fe5
scores a loss.  Rogues have no teammates (not even other rogues), so they
6f90fe5
cannot shoot teammates and they do not have a team score.
6f90fe5
There are two main styles of play: capture-the-flag and free-for-all.
6f90fe5
3a67779
%package maps-sample
3a67779
Summary: Sample maps for bzflag
3a67779
Group: Amusements/Games
3a67779
Requires: %{name} = %{?epoch:%{epoch}:}%{version}-%{release}
3a67779
BuildArch: noarch
3a67779
3a67779
%description maps-sample
3a67779
This package contains sample world maps for bzflag.
3a67779
6f90fe5
%prep
d3b8811
%setup -q -n %{name}-%{version}
d3b8811
%patch0 -p1 -b .findresolutions
f107b41
./autogen.sh
6f90fe5
6f90fe5
%build
6f90fe5
# Use PIE because bzflag/bzfs are networked server applications
d3b8811
CFLAGS='-fPIC %{optflags} -fno-strict-aliasing' \
d3b8811
CXXFLAGS='-fPIC %{optflags} -fno-strict-aliasing' \
d3b8811
LDFLAGS='-pie' \
a1ed3c1
%configure --libdir=%{_libdir}/%{name} 
6f90fe5
make %{?_smp_mflags}
6f90fe5
6f90fe5
%install
a1ed3c1
%make_install
6f90fe5
install -D -m 644 package/rpm/bzflag-m.xpm \
6f90fe5
    %{buildroot}%{_datadir}/pixmaps/bzflag.xpm
3a67779
mkdir -p %{buildroot}%{_datadir}/bzflag/maps
0524d1a
install -m 644 misc/maps/*.bzw %{buildroot}%{_datadir}/bzflag/maps
b427a51
rm -f %{buildroot}%{_libdir}/bzflag/*.la
6f90fe5
fba08a0
ln -snf opengl-game-wrapper.sh %{buildroot}%{_bindir}/bzflag-wrapper
fba08a0
sed 's:^Exec=\(.*\)$:Exec=\1-wrapper:g' < %{SOURCE1} > bzflag.desktop
fba08a0
6f90fe5
mkdir -p %{buildroot}%{_datadir}/applications
a1ed3c1
desktop-file-install --dir %{buildroot}%{_datadir}/applications bzflag.desktop
6f90fe5
6f90fe5
%files
6f90fe5
%defattr(-, root, root, 0755)
5527851
%doc AUTHORS COPYING ChangeLog README README.Linux
6f90fe5
%{_bindir}/bzadmin
6f90fe5
%{_bindir}/bzflag
fba08a0
%{_bindir}/bzflag-wrapper
6f90fe5
%{_bindir}/bzfs
875b7cb
%dir %{_libdir}/bzflag
b427a51
%{_libdir}/bzflag/*.so
a1ed3c1
%{_datadir}/applications/%{name}.desktop
6f90fe5
%{_datadir}/bzflag
3a67779
%exclude %{_datadir}/bzflag/maps/*
6f90fe5
%{_datadir}/pixmaps/bzflag.xpm
6f90fe5
%{_mandir}/man*/*
6f90fe5
3a67779
%files maps-sample
3a67779
%defattr(-, root, root, 0755)
3a67779
%{_datadir}/bzflag/maps/*
3a67779
6f90fe5
%changelog
2e24413
* Sat Jun 07 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2.4.2-9
2e24413
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild
2e24413
d6328a8
* Mon Nov 18 2013 Dave Airlie <airlied@redhat.com> - 2.4.2-8
d6328a8
- rebuilt for GLEW 1.10
d6328a8
2df6618
* Sat Aug 03 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2.4.2-7
2df6618
- Rebuilt for https://fedoraproject.org/wiki/Fedora_20_Mass_Rebuild
2df6618
f107b41
* Sat Mar 23 2013 Jeff Makey <jeff@makey.net> 2.4.2-6
f107b41
- run autogen.sh before configure to gain aarch64 support (#925121)
d0e7ef5
- fix bogus dates in changelog
f107b41
f36ca0a
* Mon Mar 11 2013 Jeff Makey <jeff@makey.net> 2.4.2-5
f36ca0a
- desktop file cleanup
f36ca0a
a1ed3c1
* Thu Feb 14 2013 Rahul Sundaram <sundaram@fedoraproject.org> - 2.4.2-4
a1ed3c1
- remove vendor tag from desktop file. https://fedorahosted.org/fpc/ticket/247
a1ed3c1
- clean up spec to follow current guidelines
a1ed3c1
- drop obsolete cruft
a1ed3c1
e03b457
* Wed Feb 13 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2.4.2-3
e03b457
- Rebuilt for https://fedoraproject.org/wiki/Fedora_19_Mass_Rebuild
e03b457
c33ab88
* Thu Dec 13 2012 Adam Jackson <ajax@redhat.com> - 2.4.2-2
c33ab88
- Rebuild for glew 1.9.0
c33ab88
5527851
* Sun Jul 29 2012 Jeff Makey <jeff@makey.net> 2.4.2-1
5527851
- version 2.4.2
5527851
- remove BUGS and NEWS doc files which are now content free
5527851
0418153
* Wed Jul 18 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2.4.0-5
0418153
- Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild
0418153
cd635a5
* Tue Feb 28 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2.4.0-4
cd635a5
- Rebuilt for c++ ABI breakage
cd635a5
98e94ee
* Tue Jan 10 2012 Nils Philippsen <nils@redhat.com> - 2.4.0-3
98e94ee
- rebuild for gcc 4.7
98e94ee
39b9d04
* Wed Aug 17 2011 Jeff Makey <jeff@makey.net> 2.4.0-2
39b9d04
- build require zlib-devel
39b9d04
0524d1a
* Wed Aug 17 2011 Jeff Makey <jeff@makey.net> 2.4.0-1
0524d1a
- version 2.4.0
0524d1a
- build require glew-devel
0524d1a
- remove obsolete --disable-static and --enable-shared configure options
0524d1a
- set plugin directory with --libdir
0524d1a
- use new sample maps source directory
0524d1a
- it is no longer necessary to remove bzfquery man page
0524d1a
3a67779
* Mon Apr 04 2011 Nils Philippsen <nils@redhat.com> 2.0.16-3
3a67779
- package sample maps in their own subpackage (#587815)
3a67779
060185c
* Tue Feb 08 2011 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2.0.16-2
060185c
- Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild
060185c
a54bbd8
* Fri Apr 09 2010 Nils Philippsen <nils@redhat.com> 2.0.16-1
a54bbd8
- version 2.0.16
a54bbd8
- drop obsolete gold patch
a54bbd8
d0e7ef5
* Wed Mar 03 2010 Nils Philippsen <nils@redhat.com> 2.0.14-1
d3b8811
- explicitly link libraries (#565122, patch by Jeff Makey, slightly modified)
d3b8811
d3b8811
* Tue Feb 16 2010 Nils Philippsen <nils@redhat.com>
d3b8811
- version 2.0.14
d3b8811
- don't run autoreconf
d3b8811
- remove obsolete lookup patch (see
d3b8811
  http://sourceforge.net/tracker/index.php?func=detail&aid=1197856&group_id=3248&atid=303248)
d3b8811
- remove obsolete gcc patch
d3b8811
- use --disable-static instead of removing *.a files
d3b8811
- remove bzfquery man page
d3b8811
- sanitize source URL, get rid of %%date
d3b8811
d3b8811
* Fri Jul 24 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org>
d3b8811
* - 2.0.12-6
a609fc8
- Rebuilt for https://fedoraproject.org/wiki/Fedora_12_Mass_Rebuild
a609fc8
1d4b56f
* Mon Mar 02 2009 Nils Philippsen <nils@redhat.com> 2.0.12-5
1d4b56f
- fix building with gcc-4.4
1d4b56f
1d4b56f
* Mon Feb 23 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org>
27b0989
- Rebuilt for https://fedoraproject.org/wiki/Fedora_11_Mass_Rebuild
27b0989
cbb62c9
* Mon Dec 22 2008 Nils Philippsen <nils@redhat.com> 2.0.12-4
cbb62c9
- use autoreconf -i
cbb62c9
d0e7ef5
* Wed Jul 09 2008 Nils Philippsen <nphilipp@redhat.com> 2.0.12-3
6b4c36f
- build with SDL, but fix finding resolutions (#426011)
6b4c36f
d0e7ef5
* Tue Jul 08 2008 Nils Philippsen <nphilipp@redhat.com> 2.0.12-2
0f50e8f
- build without SDL (#426011)
0f50e8f
b427a51
* Tue Jul 08 2008 Nils Philippsen <nphilipp@redhat.com> 2.0.12-1
b427a51
- version 2.0.12
b427a51
- fix source URL
b427a51
- drop plugin patch
b427a51
- use %%bcond_with/_without macros
b427a51
5be391f
* Fri Feb 22 2008 Nils Philippsen <nphilipp@redhat.com> 2.0.10-6
e990eaf
- update gcc-4.3 patch (plugins, #434347)
e990eaf
- require libcurl-devel from Fedora 9 onward
5be391f
eab645e
* Tue Feb 19 2008 Fedora Release Engineering <rel-eng@fedoraproject.org> - 2.0.10-5
eab645e
- Autorebuild for GCC 4.3
eab645e
8252f2e
* Fri Jan 04 2008 Nils Philippsen <nphilipp@redhat.com> 2.0.10-4
8252f2e
- fix headers for C++ with gcc-4.3
8252f2e
49b8328
* Thu Dec 20 2007 Nils Philippsen <nphilipp@redhat.com> 2.0.10-3
49b8328
- fix global plugin directory
49b8328
49b8328
* Wed Dec 19 2007 Nils Philippsen <nphilipp@redhat.com> 2.0.10-2
875b7cb
- build and package plugins
875b7cb
4a85b92
* Mon Dec 17 2007 Nils Philippsen <nphilipp@redhat.com> 2.0.10-1
4a85b92
- version 2.0.10
4a85b92
04780c4
* Wed Oct 17 2007 Nils Philippsen <nphilipp@redhat.com> 2.0.8-8
04780c4
- really use opengl-games-wrapper.sh from Fedora 7 on (#304781)
04780c4
04780c4
* Tue Oct 16 2007 Nils Philippsen <nphilipp@redhat.com> 2.0.8-7
fba08a0
- use opengl-games-wrapper.sh from Fedora 7 on (#304781)
fba08a0
1d48c66
* Wed Sep 05 2007 Nils Philippsen <nphilipp@redhat.com> 2.0.8-6
1d48c66
- change license tag from LGPL to LGPLv2
8cae1fd
7d96b1b
* Fri Jun 22 2007 Nils Philippsen <nphilipp@redhat.com>
7d96b1b
- change license tag from GPL to LGPL
7d96b1b
e88c552
* Mon Nov 06 2006 Jindrich Novy <jnovy@redhat.com> 2.0.8-4
e88c552
- rebuild because of the new curl
e88c552
205aed7
* Mon Aug 28 2006 Nils Philippsen <nphilipp@redhat.com> 2.0.8-3
205aed7
- FC6 mass rebuild
205aed7
b5f7675
* Tue Jul 11 2006 Nils Philippsen <nphilipp@redhat.com> 2.0.8-2
b5f7675
- rebuild to pick up new c-ares version
b5f7675
d001377
* Tue May 16 2006 Nils Philippsen <nphilipp@redhat.com> 2.0.8-1
d001377
- version 2.0.8
d001377
d001377
* Fri May 12 2006 Nils Philippsen <nphilipp@redhat.com> 2.0.6-1
bcfd411
- automatically decide between modular/traditional X depending on %%fedora
bcfd411
bcfd411
* Thu May 11 2006 Nils Philippsen <nphilipp@redhat.com>
3d8c727
- version 2.0.6
3d8c727
- add disttag
3d8c727
- remove upstreamed stringdos patch
7ace3c0
- adapt %%files
3d8c727
c30b987
* Fri Feb 17 2006 Nils Philippsen <nphilipp@redhat.com> 2.0.4-3
c30b987
- rebuild
c30b987
375abbc
* Wed Dec 28 2005 Nils Philippsen <nphilipp@redhat.com> 2.0.4-2
375abbc
- don't crash on maliciously formed callsign, etc. strings (#176626, patch
375abbc
  backported from upstream CVS)
375abbc
89bd22f
* Mon Nov 21 2005 Nils Philippsen <nphilipp@redhat.com> 2.0.4-1
89bd22f
- version 2.0.4
89bd22f
- update lookup patch
89bd22f
- build require c-ares-devel instead of adns-devel
89bd22f
- add newly introduced libs and includes (but exclude headers and static libs,
89bd22f
  courtesy of Matthias Saou)
9b1ecfd
- use -fPIC, -pie (hopefully) correctly to avoid build problems on x86_64
89bd22f
c1d5fcf
* Thu Nov 17 2005 Nils Philippsen <nphilipp@redhat.com> 2.0.2-5
c1d5fcf
- rebuild to pick up new openssl version
c1d5fcf
- prepare for modular X
8c6ca7d
- appease ISO C++
c1d5fcf
843ec88
* Mon May 09 2005 Nils Philippsen <nphilipp@redhat.com> 2.0.2-4
843ec88
- build with -fno-strict-aliasing (typo)
843ec88
3901a4d
* Mon May 09 2005 Nils Philippsen <nphilipp@redhat.com> 2.0.2-3
3901a4d
- build with -fnostrict-aliasing
3901a4d
3f7e07b
* Wed Apr 06 2005 Nils Philippsen <nphilipp@redhat.com> 2.0.2-2
7bea216
- build with adns
b6c1b7b
- build require libGL-devel and libGLU-devel to hopefully resolve building
b6c1b7b
  problems
2cca499
- apply name lookup patch
7bea216
7bea216
* Wed Mar 23 2005 Nils Philippsen <nphilipp@redhat.com>
c3e1678
- work around missing dependency in xorg-x11-devel
c3e1678
c3e1678
* Wed Mar 23 2005 Nils Philippsen <nphilipp@redhat.com>
06d7d6c
- version 2.0.2
06d7d6c
27699b7
* Tue Mar 15 2005 Nils Philippsen <nphilipp@redhat.com> 2.0.0-4
27699b7
- buildrequire bc for curl version check
27699b7
27699b7
* Fri Mar 04 2005 Nils Philippsen <nphilipp@redhat.com>
6f90fe5
- move package over to Extras
6f90fe5
- make desktop file a file, don't generate it in %%install
4b87ae4
- use an a bit more individual build root
8ac6b36
- buildrequire curl-devel
6f90fe5
6f90fe5
* Mon Feb 21 2005 Nils Philippsen <nphilipp@redhat.com> 2.0.0-3
6f90fe5
- fix dates in %%changelog
6f90fe5
6f90fe5
* Fri Feb 18 2005 Nils Philippsen <nphilipp@redhat.com> 2.0.0-2
6f90fe5
- build as PIE
6f90fe5
6f90fe5
* Fri Feb 18 2005 Nils Philippsen <nphilipp@redhat.com> 2.0.0-1
6f90fe5
- correct source URL
6f90fe5
- buildrequire ncurses-devel
6f90fe5
6f90fe5
* Tue Jan 18 2005 Nils Philippsen <nphilipp@redhat.com> 2.0.0-0.1
6f90fe5
- version 2.0.0.20050117
6f90fe5
- buildrequire xorg-x11-devel, not XFree86-devel
6f90fe5
6f90fe5
* Tue Aug 10 2004 Alan Cox <alan@redhat.com> 1.10.6-2
6f90fe5
- Adopted for FC3 core from Matthias Saou's freshrpms package. Thanks
6f90fe5
  to Matthias for doing all the work.
6f90fe5
6f90fe5
* Tue May 18 2004 Matthias Saou <http://freshrpms.net/> 1.10.6-1
6f90fe5
- Update to 1.10.6.
6f90fe5
- First rebuild for Fedora Core 2.
6f90fe5
6f90fe5
* Thu Mar 25 2004 Matthias Saou <http://freshrpms.net/> 1.10.4-2
6f90fe5
- Removed explicit XFree86 dependency.
6f90fe5
6f90fe5
* Mon Feb 16 2004 Matthias Saou <http://freshrpms.net/> 1.10.4-1
6f90fe5
- Update to 1.10.4.20040125, update the included docs.
6f90fe5
- Removed no longer existing bzfls file and added bzadmin.
6f90fe5
6f90fe5
* Fri Nov  7 2003 Matthias Saou <http://freshrpms.net/> 1.7g2-2
6f90fe5
- Rebuild for Fedora Core 1.
6f90fe5
- Added missing gcc-c++ build dependency.
6f90fe5
6f90fe5
* Sun Jun 22 2003 Matthias Saou <http://freshrpms.net/>
6f90fe5
- Update to 1.7g2.
6f90fe5
- Major spec changes for the new build method.
6f90fe5
6f90fe5
* Tue Apr  1 2003 Matthias Saou <http://freshrpms.net/>
6f90fe5
- Fix the Xfree86 dependency, doh!
6f90fe5
- Clean up the confusing build.
6f90fe5
- Add a system menu entry.
6f90fe5
6f90fe5
* Mon Mar 31 2003 Matthias Saou <http://freshrpms.net/>
6f90fe5
- Update to 1.7g0.
6f90fe5
- Rebuilt for Red Hat Linux 9.
6f90fe5
6f90fe5
* Mon Nov  4 2002 Matthias Saou <http://freshrpms.net/>
6f90fe5
- Rebuilt for Red Hat Linux 8.0.
6f90fe5
6f90fe5
* Wed Jun 19 2002 Matthias Saou <http://freshrpms.net/>
6f90fe5
- Update to 1.7e6.
6f90fe5
6f90fe5
* Wed Feb 13 2002 Matthias Saou <http://freshrpms.net/>
6f90fe5
- Initial RPM release.
6f90fe5