swt2c / rpms / scorched3d

Forked from rpms/scorched3d 5 years ago
Clone
cvsextras 7cfd316
Name:           scorched3d
f3e30fd
Version:        44
f2a2564
Release:        5%{?dist}
f39547f
Summary:        Game based loosely on the classic DOS game Scorched Earth
cvsextras 7cfd316
Group:          Amusements/Games
f3e30fd
License:        GPLv2+ and CC-BY-SA
cvsextras 7cfd316
URL:            http://www.scorched3d.co.uk/
f3e30fd
Source0:        http://downloads.sourceforge.net/%{name}/Scorched3D-%{version}-src.tar.gz
cvsextras 7cfd316
Source1:        %{name}.desktop
25c6757
# Fake openal-config as openal-soft doesn't have it
25c6757
Source2:        openal-config
f976dce
Patch1:         %{name}-syslibs.patch
8880161
Patch2:         %{name}-help.patch
f3e30fd
Patch3:         %{name}-freetype-buildfix.patch
f3e30fd
Patch4:         %{name}-sys-lua.patch
25c6757
BuildRequires:  wxGTK-devel SDL_net-devel libGLU-devel
81053e7
BuildRequires:  expat-devel libvorbis-devel glew-devel fftw-devel libjpeg-devel
f3e30fd
BuildRequires:  freetype-devel openal-soft-devel freealut-devel >= 1.1.0-10
f3e30fd
BuildRequires:  lua-devel libtool autoconf automake
8880161
BuildRequires:  ImageMagick desktop-file-utils
3539e34
Requires:       hicolor-icon-theme opengl-games-utils
13e50ac
Requires:       dejavu-sans-fonts dejavu-sans-mono-fonts
cvsextras 7cfd316
# Upstream naming compatibility
f39547f
Provides:       Scorched3D = %{version}-%{release}
cvsextras 7cfd316
cvsextras 7cfd316
%description
cvsextras 7cfd316
Scorched 3D is a game based on the classic DOS game Scorched Earth
cvsextras 7cfd316
"The Mother Of All Games".  Scorched 3D adds amongst other new
cvsextras 7cfd316
features a 3D island environment and LAN and internet play.  At its
cvsextras 7cfd316
lowest level, Scorched 3D is just an artillery game with two+ tanks
cvsextras 7cfd316
taking turns to destroy opponents in an arena.  Choose the angle,
cvsextras 7cfd316
direction and power of each shot, launch your weapon, and try to blow
cvsextras 7cfd316
up other tanks.  But Scorched 3D can be a lot more complex than that,
cvsextras 7cfd316
if you want it to be.  You can earn money from successful battles and
cvsextras 7cfd316
use it to invest in additional weapons and accessories.  You can play
cvsextras 7cfd316
with up to twenty four other players at a time, mixing computer
cvsextras 7cfd316
players with humans.  There's a variety of changing environmental
cvsextras 7cfd316
conditions and terrains to be dealt with.
cvsextras 7cfd316
cvsextras 7cfd316
cvsextras 7cfd316
%prep
f3e30fd
%setup -q -c
f3e30fd
pushd scorched
f3e30fd
%patch1 -p1
f3e30fd
%patch2 -p1
649d5ef
%if 0%{?fedora} >= 21
f3e30fd
%patch3 -p1
649d5ef
%endif
e8b21ad
%patch4 -p1
f3e30fd
touch NEWS AUTHORS ChangeLog
f3e30fd
autoreconf -ivf
25c6757
install -m 755 %{SOURCE2} .
f3e30fd
# for %%doc
f3e30fd
mkdir apoc
f3e30fd
cp -a data/globalmods/apoc/*.txt apoc
f3e30fd
# ensure we use the system versions of these
f3e30fd
rm src/common/common/snprintf.c
f3e30fd
rm src/common/lua/l*.{cpp,h}
f3e30fd
rm src/common/lua/print.cpp
f3e30fd
popd
cvsextras 7cfd316
cvsextras 7cfd316
cvsextras 7cfd316
%build
f3e30fd
pushd scorched
25c6757
export OPENAL_CONFIG=$PWD/openal-config
9baf1e9
%configure --disable-dependency-tracking --datadir=%{_datadir}/%{name}
9405707
make %{?_smp_mflags}
cvsextras 7cfd316
443388e
# Note that tank2.ico has 48x48 and 32x32 icons embedded in it.
443388e
# The 48x48 icon ends up in tank2-0.png
443388e
convert data/images/tank2.ico tank2.png
f3e30fd
popd
cvsextras 7cfd316
9baf1e9
cvsextras 7cfd316
%install
f3e30fd
pushd scorched
f3e30fd
%make_install
3539e34
ln -s opengl-game-wrapper.sh $RPM_BUILD_ROOT%{_bindir}/%{name}-wrapper
3cfd9fb
1de5e9b
ln -f -s ../../../fonts/dejavu/DejaVuSans.ttf \
5f6a6e8
  $RPM_BUILD_ROOT%{_datadir}/%{name}/data/fonts/dejavusans.ttf
5f6a6e8
ln -f -s ../../../fonts/dejavu/DejaVuSansCondensed-Bold.ttf \
5f6a6e8
  $RPM_BUILD_ROOT%{_datadir}/%{name}/data/fonts/dejavusconbd.ttf
1de5e9b
ln -f -s ../../../fonts/dejavu/DejaVuSansMono-Bold.ttf \
5f6a6e8
  $RPM_BUILD_ROOT%{_datadir}/%{name}/data/fonts/dejavusmobd.ttf
1de5e9b
3cc5ce8
# below is the desktop file and icon stuff.
3cc5ce8
mkdir -p $RPM_BUILD_ROOT%{_datadir}/applications
8efa9a6
desktop-file-install \
cvsextras 7cfd316
  --dir $RPM_BUILD_ROOT%{_datadir}/applications \
cvsextras 7cfd316
  %{SOURCE1}
443388e
mkdir -p $RPM_BUILD_ROOT%{_datadir}/icons/hicolor/48x48/apps
443388e
install -p -m 644 tank2-0.png \
443388e
  $RPM_BUILD_ROOT%{_datadir}/icons/hicolor/48x48/apps/%{name}.png
f3e30fd
popd
cvsextras 7cfd316
Richard Hughes 0589841
# Register as an application to be visible in the software center
Richard Hughes 0589841
#
Richard Hughes 0589841
# NOTE: It would be *awesome* if this file was maintained by the upstream
Richard Hughes 0589841
# project, translated and installed into the right place during `make install`.
Richard Hughes 0589841
#
Richard Hughes 0589841
# See http://www.freedesktop.org/software/appstream/docs/ for more details.
Richard Hughes 0589841
#
Richard Hughes 0589841
mkdir -p $RPM_BUILD_ROOT%{_datadir}/appdata
Richard Hughes 0589841
cat > $RPM_BUILD_ROOT%{_datadir}/appdata/%{name}.appdata.xml <
Richard Hughes 0589841
Richard Hughes 0589841
Richard Hughes 0589841
Richard Hughes 0589841
BugReportURL: http://www.scorched3d.co.uk/mantisbt/view.php?id=209
Richard Hughes 0589841
SentUpstream: 2014-09-25
Richard Hughes 0589841
-->
Richard Hughes 0589841
<application>
Richard Hughes 0589841
  <id type="desktop">scorched3d.desktop</id>
Richard Hughes 0589841
  <metadata_license>CC0-1.0</metadata_license>
Richard Hughes 0589841
  <summary>Turn based 3D artillery game</summary>
Richard Hughes 0589841
  <description>
Richard Hughes 0589841
    

Richard Hughes 0589841
      Scorched 3D is a turn-based 3D artillery game where you take control of a
Richard Hughes 0589841
      tank and attack your opponents in a 3D landscape with a range of weapons.
Richard Hughes 0589841
      It also features some real-time elements allowing you to counter opponents
Richard Hughes 0589841
      attacks, and also features online multiplayer modes.
Richard Hughes 0589841
    

Richard Hughes 0589841
  </description>
Richard Hughes 0589841
  <screenshots>
Richard Hughes 0589841
    <screenshot type="default">http://www.scorched3d.co.uk/phpBB3/gallery/image.php?album_id=8&image_id=61&view=no_count</screenshot>
Richard Hughes 0589841
    <screenshot>http://www.scorched3d.co.uk/phpBB3/gallery/image.php?album_id=3&image_id=4&view=no_count</screenshot>
Richard Hughes 0589841
  </screenshots>
Richard Hughes 0589841
  <url type="homepage">http://www.scorched3d.co.uk/</url>
Richard Hughes 0589841
</application>
Richard Hughes 0589841
EOF
cvsextras 7cfd316
3cfd9fb
%post
e8b21ad
touch --no-create %{_datadir}/icons/hicolor &>/dev/null || :
3cfd9fb
3cfd9fb
%postun
e8b21ad
if [ $1 -eq 0 ] ; then
e8b21ad
    touch --no-create %{_datadir}/icons/hicolor &>/dev/null
e8b21ad
    gtk-update-icon-cache %{_datadir}/icons/hicolor &>/dev/null || :
3cc5ce8
fi
3cfd9fb
e8b21ad
%posttrans
e8b21ad
gtk-update-icon-cache %{_datadir}/icons/hicolor &>/dev/null || :
e8b21ad
3cfd9fb
cvsextras 7cfd316
%files
f3e30fd
%doc scorched/COPYING scorched/apoc
3539e34
%{_bindir}/%{name}*
3cc5ce8
%{_datadir}/%{name}
Richard Hughes 0589841
%{_datadir}/appdata/%{name}.appdata.xml
8efa9a6
%{_datadir}/applications/%{name}.desktop
443388e
%{_datadir}/icons/hicolor/48x48/apps/%{name}.png
cvsextras 7cfd316
cvsextras 7cfd316
cvsextras 7cfd316
%changelog
f2a2564
* Fri Jun 19 2015 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 44-5
f2a2564
- Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild
f2a2564
14d6926
* Sat May 02 2015 Kalev Lember <kalevlember@gmail.com> - 44-4
14d6926
- Rebuilt for GCC 5 C++11 ABI change
14d6926
Richard Hughes 0589841
* Thu Mar 26 2015 Richard Hughes <rhughes@redhat.com> - 44-3
Richard Hughes 0589841
- Add an AppData file for the software center
Richard Hughes 0589841
649d5ef
* Sat Aug 30 2014 Hans de Goede <hdegoede@redhat.com> - 44-2
649d5ef
- Fix build on F-20
649d5ef
f3e30fd
* Sat Aug 30 2014 Hans de Goede <hdegoede@redhat.com> - 44-1
f3e30fd
- Update to 44 release
f3e30fd
- Fix FTBFS (rhbz#1107285)
f3e30fd
- Use system lua (rhbz#1077728)
f3e30fd
7539664
* Mon Aug 18 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 43.3d-12
7539664
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_22_Mass_Rebuild
7539664
7576a45
* Sun Jun 08 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 43.3d-11
7576a45
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild
7576a45
056e9b6
* Mon Nov 18 2013 Dave Airlie <airlied@redhat.com> - 43.3d-10
056e9b6
- rebuilt for GLEW 1.10
056e9b6
9baf1e9
* Sun Sep 15 2013 Hans de Goede <hdegoede@redhat.com> - 43.3d-9
9baf1e9
- Remove unused docdir stuff (rhbz#993874)
9baf1e9
f30d801
* Sun Aug 04 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 43.3d-8
f30d801
- Rebuilt for https://fedoraproject.org/wiki/Fedora_20_Mass_Rebuild
f30d801
e2329f6
* Wed Jun 26 2013 Ville Skyttä <ville.skytta@iki.fi> - 43.3d-7
e2329f6
- Compress tarball with xz -e.
e2329f6
8efa9a6
* Tue Feb 12 2013 Jon Ciesla <limburgher@gmail.com> - 43.3d-6
8efa9a6
- Drop desktop vendor tag.
8efa9a6
Adam Tkac 17affcc
* Mon Jan 21 2013 Adam Tkac <atkac redhat com> - 43.3d-5
Adam Tkac 17affcc
- rebuild due to "jpeg8-ABI" feature drop
Adam Tkac 17affcc
5699cb5
* Thu Dec 13 2012 Adam Jackson <ajax@redhat.com> - 43.3d-4
5699cb5
- Rebuild for glew 1.9.0
5699cb5
0a797ec
* Fri Jul 27 2012 Bruno Wolff III <bruno@wolff.to> - 43.3d-3
0a797ec
- Rebuild for libGLEW soname bump
0a797ec
8ee4571
* Sat Jul 21 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 43.3d-2
8ee4571
- Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild
8ee4571
2b70352
* Sat Jun 30 2012 Bruno Wolff III <bruno@wolff.to> - 43.3d-1
2b70352
- Lots of minor bugfixes, but incompatible with 43.3.
2b70352
- 43.3d release announcement: http://www.scorched3d.co.uk/phpBB3/viewtopic.php?t=6594
2b70352
fece41a
* Tue Feb 07 2012 Jon Ciesla <limburgher@gmail.com> - 43.3-1
fece41a
- New upstream.
fece41a
9baf1e9
* Tue Jan 17 2012 Hans de Goede <hdegoede@redhat.com> - 43.2a-7
e8b21ad
- Fix building with gcc-4.7
e8b21ad
e36c040
* Sat Jan 14 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 43.2a-6
e36c040
- Rebuilt for https://fedoraproject.org/wiki/Fedora_17_Mass_Rebuild
e36c040
cf46693
* Sun Nov 06 2011 Bruno Wolff III <bruno@wolff.to> - 43.2a-5
cf46693
- Fix broken fix for broken fix
cf46693
6d9903a
* Sun Nov 06 2011 Bruno Wolff III <bruno@wolff.to> - 43.2a-4
6d9903a
- Fix broken palette fix
6d9903a
c44211b
* Sun Nov 06 2011 Bruno Wolff III <bruno@wolff.to> - 43.2a-3
c44211b
- Rebuild for libpng 1.5
59cb001
- Make sure all direct png struct references are through accessors
c44211b
443388e
* Tue Jun 21 2011 Bruno Wolff III <bruno@wolff.to> - 43.2a-2
443388e
- Extract a 48x48 png to use as the icon
443388e
14bfb80
* Mon Jun 20 2011 Bruno Wolff III <bruno@wolff.to> - 43.2a-1
eb1959f
- Update to upstream 43.2a
eb1959f
- Release anouncement for 43.2a http://www.scorched3d.co.uk/phpBB3/viewtopic.php?t=6340
eb1959f
- Release anouncement for 43.2 http://www.scorched3d.co.uk/phpBB3/viewtopic.php?t=6330
eb1959f
- Release anouncement for 43.1c http://www.scorched3d.co.uk/phpBB3/viewtopic.php?t=6184
eb1959f
- Release anouncement for 43.1b http://www.scorched3d.co.uk/phpBB3/viewtopic.php?t=6129
eb1959f
- Release anouncement for 43 http://www.scorched3d.co.uk/phpBB3/viewtopic.php?t=6128
696667e
- Use included png image instead of converting icon
eb1959f
86f1ae3
* Mon Jun 20 2011 ajax@redhat.com - 42.1-6
86f1ae3
- Rebuild for new glew soname
86f1ae3
829441f
* Wed Feb 09 2011 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 42.1-5
829441f
- Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild
829441f
229505a
* Wed Jul 14 2010 Dan Horák <dan@danny.cz> - 42.1-4
229505a
- rebuilt against wxGTK-2.8.11-2
229505a
25c6757
* Sun Aug 16 2009 Hans de Goede <hdegoede@redhat.com> 42.1-3
25c6757
- Switch to openal-soft
25c6757
5d23868
* Sun Jul 26 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 42.1-2
5d23868
- Rebuilt for https://fedoraproject.org/wiki/Fedora_12_Mass_Rebuild
5d23868
3ac3b93
* Sun Mar  8 2009 Hans de Goede <hdegoede@redhat.com> 42.1-1
3ac3b93
- New upstream release 42.1
3ac3b93
0f02c04
* Wed Feb 25 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 42-2
0f02c04
- Rebuilt for https://fedoraproject.org/wiki/Fedora_11_Mass_Rebuild
0f02c04
5f6a6e8
* Mon Feb 16 2009 Hans de Goede <hdegoede@redhat.com> 42-1
5f6a6e8
- New upstream release 42
5f6a6e8
13e50ac
* Tue Jan 20 2009 Hans de Goede <hdegoede@redhat.com> 41.3-5
13e50ac
- Adjust font requires for font rename (rh 480471)
13e50ac
1de5e9b
* Sat Dec 27 2008 Hans de Goede <hdegoede@redhat.com> 41.3-4
1de5e9b
- Replace included vera font with symlinks to dejavu (rh 477454)
1de5e9b
29e776c
* Sun Sep  7 2008 Hans de Goede <hdegoede@redhat.com> 41.3-3
29e776c
- Fix patch fuzz build failure
29e776c
1250d75
* Tue Feb 19 2008 Fedora Release Engineering <rel-eng@fedoraproject.org> - 41.3-2
1250d75
- Autorebuild for GCC 4.3
1250d75
61384e0
* Mon Jan 21 2008 Hans de Goede <j.w.r.degoede@hhs.nl> 41.3-1
61384e0
- New upstream release 41.3
61384e0
- Rebuild for new glew
61384e0
9405707
* Wed Jan 16 2008 Hans de Goede <j.w.r.degoede@hhs.nl> 41.2-1
9405707
- New upstream release 41.2
9405707
- No longer uses ode so stop BuildRequiring and linking to it
9405707
6fda689
* Fri Jan 11 2008 Hans de Goede <j.w.r.degoede@hhs.nl> 41.1-2
6fda689
- Fix compilation with gcc 4.3
6fda689
8880161
* Tue Nov  6 2007 Hans de Goede <j.w.r.degoede@hhs.nl> 41.1-1
8880161
- New upstream release 41.1
8880161
3539e34
* Mon Sep 24 2007 Hans de Goede <j.w.r.degoede@hhs.nl> 40.1d-6
3539e34
- Use opengl-games-utils wrapper to show error dialog when DRI is missing
3539e34
ddc8b38
* Tue Aug 28 2007 Hans de Goede <j.w.r.degoede@hhs.nl> 40.1d-5
ddc8b38
- Rebuild for new expat 2.0
ddc8b38
72f7047
* Wed Aug 15 2007 Hans de Goede <j.w.r.degoede@hhs.nl> 40.1d-4
72f7047
- Update License tag for new Licensing Guidelines compliance
72f7047
a2e3299
* Wed Apr 18 2007 Hans de Goede <j.w.r.degoede@hhs.nl> 40.1d-3
a2e3299
- Fix build with new ODE, scorched3d tries to force a double build of (its own
a2e3299
  included version of) ODE, however we use the system version which is compiled
a2e3299
  with single precision. With the new ODE the header files throw an #error
a2e3299
  because this causes both dSINGLE and dDOUBLE to be defined. This is fixed by
a2e3299
  patching scorched3d's configure to not add -DdDOUBLE to the CFLAGS
a2e3299
aab8abc
* Wed Dec 20 2006 Hans de Goede <j.w.r.degoede@hhs.nl> 40.1d-2
aab8abc
- Rebuild for new wxGTK 2.8
aab8abc
280f243
* Sat Nov 18 2006 Hans de Goede <j.w.r.degoede@hhs.nl> 40.1d-1
280f243
- New upstream release 40.1d
280f243
89e8572
* Fri Nov  3 2006 Hans de Goede <j.w.r.degoede@hhs.nl> 40.1c-2
89e8572
- Add libvorbis-devel BR so that ogg/vorbis support gets build in
89e8572
89e8572
* Thu Nov  2 2006 Hans de Goede <j.w.r.degoede@hhs.nl> 40.1c-1
3cc5ce8
- New upstream release 40.1c
3cc5ce8
- Drop 64 bit patch (integrated upstream)
3cc5ce8
- Don't install our data files in /usr/share/games, but in /usr/share
3cc5ce8
- Some minor specfile cleanups
3cc5ce8
1b637f5
* Tue Aug 29 2006 Hans de Goede <j.w.r.degoede@hhs.nl> 40-2
1b637f5
- FE6 Rebuild
1b637f5
9baf1e9
* Sat Jul 15 2006 Hans de Goede <j.w.r.degoede@hhs.nl> 40-1
c414640
- New upstream release 40
c414640
- Drop many upstreamed patches
c414640
- Use system ode library instead of included one
c414640
01068c3
* Thu Feb 23 2006 Hans de Goede <j.w.r.degoede@hhs.nl> - 39.1-5
01068c3
- Patch included apoc mod version 3.1 to the 3.1 version as distributed by
01068c3
  the ApocHQ servers for a smooth (no download required) experience joining
01068c3
  apoc-mod using games on the internet. Also not entirely unimportant this
01068c3
  fixes bz 182166, making the apoc mod actually usuable for local games.
01068c3
69e16ab
* Mon Feb 13 2006 Hans de Goede <j.w.r.degoede@hhs.nl> - 39.1-4
69e16ab
- Bump release and rebuild for new gcc4.1 and glibc.
69e16ab
52028d1
* Sun Feb 12 2006 <j.w.r.degoede@hhs.nl> - 39.1-3
52028d1
- fix server crashing with certain landscape types (patch 13)
52028d1
9ac4ae0
* Sat Feb 11 2006 <j.w.r.degoede@hhs.nl> - 39.1-2
1656ca3
- upgrade to CVS snapshot of 20050929, as Debian does, but not to
9ac4ae0
  the newer apoc version as this causes problems playing online (patch 0)
9ac4ae0
- fix gcc41 compilation (patch 3)
9ac4ae0
- fix 64 bit compilation (bz 158646) (patch 4)
9ac4ae0
- fix compile with openal-0.9 (patch 5)
4c2521f
- use htmlview for helpfile viewing instead of hardcoded mozilla,
9ac4ae0
  run this in background so the game doesn't freeze (patch 6)
9ac4ae0
- fix all the security issues reported on the fulldisclosure mailinglist:
9ac4ae0
  http://seclists.org/lists/fulldisclosure/2005/Nov/0079.html
9ac4ae0
  (bz 161694) (patch 7, 8, 9, 10)
9ac4ae0
- fix 2 additonal security issues found while fixing the above (patch 11, 12)
9ac4ae0
- this release also fixes bz 161694
4c2521f
3cfd9fb
* Sat Oct  8 2005 Ville Skyttä <ville.skytta at iki.fi> - 39.1-1
3cfd9fb
- 39.1.
3cfd9fb
- Avoid aclocal >= 1.8 warnings.
3cfd9fb
- Install icon into icons/hicolor.
3cfd9fb
- Clean up build dependencies.
3cfd9fb
9218d0d
* Sun May 22 2005 Jeremy Katz <katzj@redhat.com> - 37.2-3
9218d0d
- rebuild on all arches
9218d0d
9baf1e9
* Thu Apr  7 2005 Michael Schwendt <mschwendt[AT]users.sf.net> - 37.2-2
a20e6eb
- rebuilt
a20e6eb
cvsextras 7cfd316
* Mon Aug 16 2004 Ville Skyttä <ville.skytta at iki.fi> - 0:37.2-0.fdr.1
cvsextras 7cfd316
- Update to 37.2.
cvsextras 7cfd316
cvsextras 7cfd316
* Mon Aug  4 2003 Ville Skyttä <ville.skytta at iki.fi> - 0:0.33.9.35-0.fdr.1
cvsextras 7cfd316
- First build.