cvsextras a6bfccf
Name:           supertux
9318e6e
Version:        0.3.5a
4726a49
Release:        2%{?dist}
7e0f324
Summary:        Jump'n run like game
915c86a
cvsextras a6bfccf
Group:          Amusements/Games
d03598d
License:        GPLv2+
d303ab9
URL:            http://supertux.lethargik.org/
dd02e54
Source0:        https://github.com/SuperTux/%{name}/releases/download/v%{version}/%{name}-%{version}.tar.bz2
dd02e54
Patch0:         supertux-0.3.4-desktop.patch
dd02e54
Patch1:         supertux-0.3.5-system-squirrel.patch
dd02e54
# Effectively a revert of upstream commit:
dd02e54
# https://github.com/supertux/supertux/commit/bc25f6fa2616df7e905fed68ceb4e3ebc186a623
dd02e54
Patch2:         supertux-0.3.5-squirrel-printfunc.patch
915c86a
dd02e54
BuildRequires:  pkgconfig(sdl2) >= 2.0.1
dd02e54
BuildRequires:  pkgconfig(SDL2_image) >= 2.0.0
d03598d
BuildRequires:  zlib-devel
d03598d
BuildRequires:  desktop-file-utils
d03598d
BuildRequires:  libGLU-devel
d03598d
BuildRequires:  physfs-devel
d03598d
BuildRequires:  openal-devel
d03598d
BuildRequires:  libvorbis-devel
c29d99c
BuildRequires:  squirrel-devel
5aedb94
BuildRequires:  glew-devel
5aedb94
BuildRequires:  boost-devel
5aedb94
BuildRequires:  libcurl-devel
d03598d
BuildRequires:  gettext
d03598d
BuildRequires:  flex
d03598d
BuildRequires:  bison
c29d99c
BuildRequires:  cmake
d03598d
BuildRequires:  sed
24b7ce4
BuildRequires:  /usr/bin/appstream-util
c29d99c
Requires:       opengl-games-utils hicolor-icon-theme
cvsextras a6bfccf
cvsextras a6bfccf
%description
7e0f324
SuperTux is a jump'n run like game, Run and jump through multiple worlds,
7e0f324
fighting off enemies by jumping on them or bumping them from below.
7e0f324
Grabbing power-ups and other stuff on the way.
cvsextras a6bfccf
c29d99c
cvsextras a6bfccf
%prep
cvsextras a6bfccf
%setup -q
0a6cb41
%patch0 -p1 -b .desktop
0a6cb41
%patch1 -p1 -b .system-squirrel
dd02e54
%patch2 -p1 -b .squirrel-printfunc
cvsextras a6bfccf
d03598d
cvsextras a6bfccf
%build
c29d99c
export CFLAGS="$RPM_OPT_FLAGS -I/usr/include/squirrel"
c29d99c
export CXXFLAGS="$RPM_OPT_FLAGS -I/usr/include/squirrel"
c29d99c
%cmake -DINSTALL_SUBDIR_SHARE=share/supertux2 -DINSTALL_SUBDIR_BIN=bin .
c29d99c
make VERBOSE=1 %{?_smp_mflags}
c29d99c
cvsextras a6bfccf
cvsextras a6bfccf
%install
915c86a
make install DESTDIR=%{buildroot}
915c86a
rm -r %{buildroot}/usr/share/doc/supertux2
915c86a
ln -snf opengl-game-wrapper.sh %{buildroot}%{_bindir}/supertux2-wrapper
c29d99c
c29d99c
# Desktop file and icon stuff
c29d99c
desktop-file-install --vendor "" \
915c86a
  --dir %{buildroot}%{_datadir}/applications \
915c86a
  %{buildroot}%{_datadir}/applications/supertux2.desktop
915c86a
mkdir -p %{buildroot}%{_datadir}/icons/hicolor/48x48/apps
915c86a
mv %{buildroot}%{_datadir}/pixmaps/supertux.png \
915c86a
  %{buildroot}%{_datadir}/icons/hicolor/48x48/apps
915c86a
rm %{buildroot}%{_datadir}/pixmaps/supertux.xpm
915c86a
66f780b
install -Dpm 644 man/man6/supertux2.6 %{buildroot}%{_mandir}/man6/supertux2.6
66f780b
915c86a
915c86a
%check
24b7ce4
appstream-util validate-relax --nonet %{buildroot}/%{_datadir}/appdata/supertux2.appdata.xml
915c86a
desktop-file-validate %{buildroot}%{_datadir}/applications/supertux2.desktop
c29d99c
cvsextras a6bfccf
c29d99c
%post
c29d99c
touch --no-create %{_datadir}/icons/hicolor &>/dev/null || :
c29d99c
c29d99c
%postun
c29d99c
if [ $1 -eq 0 ] ; then
c29d99c
    touch --no-create %{_datadir}/icons/hicolor &>/dev/null
c29d99c
    gtk-update-icon-cache %{_datadir}/icons/hicolor &>/dev/null || :
c29d99c
fi
c29d99c
c29d99c
%posttrans
c29d99c
gtk-update-icon-cache %{_datadir}/icons/hicolor &>/dev/null || :
c29d99c
c29d99c
625ca02
%files
dd02e54
%doc README.md WHATSNEW.txt
dd02e54
%license LICENSE
c29d99c
%{_bindir}/supertux2*
c29d99c
%{_datadir}/supertux2
915c86a
%{_datadir}/appdata/supertux2.appdata.xml
c29d99c
%{_datadir}/applications/supertux2.desktop
c29d99c
%{_datadir}/icons/hicolor/48x48/apps/supertux.png
66f780b
%{_mandir}/man6/supertux2.6*
c29d99c
cvsextras a6bfccf
cvsextras a6bfccf
%changelog
4726a49
* Fri Jun 19 2015 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.3.5a-2
4726a49
- Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild
4726a49
9318e6e
* Sun May 10 2015 David King <amigadave@amigadave.com> - 0.3.5a-1
9318e6e
- Update to 0.3.5a (#1219849)
9318e6e
dd02e54
* Mon Apr 13 2015 David King <amigadave@amigadave.com> - 0.3.5-1
dd02e54
- Update to 0.3.5
24b7ce4
- Validate AppData during check
66f780b
- Install man page
dd02e54
Petr Machata 4c7ca97
* Tue Jan 27 2015 Petr Machata <pmachata@redhat.com> - 0.3.4-2
Petr Machata 4c7ca97
- Rebuild for boost 1.57.0
Petr Machata 4c7ca97
915c86a
* Tue Nov 11 2014 David King <amigadave@amigadave.com> - 0.3.4-1
915c86a
- Update to 0.3.4 (#999396)
915c86a
db91bca
* Mon Aug 18 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.3.3-17
db91bca
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_22_Mass_Rebuild
db91bca
232ed84
* Sun Jun 08 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.3.3-16
232ed84
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild
232ed84
Petr Machata 6c44028
* Fri May 23 2014 Petr Machata <pmachata@redhat.com> - 0.3.3-15
Petr Machata 6c44028
- Rebuild for boost 1.55.0
Petr Machata 6c44028
4f32fdd
* Mon Nov 18 2013 Dave Airlie <airlied@redhat.com> - 0.3.3-14
4f32fdd
- rebuilt for GLEW 1.10
4f32fdd
cec9125
* Sun Aug 04 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.3.3-13
cec9125
- Rebuilt for https://fedoraproject.org/wiki/Fedora_20_Mass_Rebuild
cec9125
Petr Machata 8909176
* Tue Jul 30 2013 Petr Machata <pmachata@redhat.com> - 0.3.3-12
Petr Machata 8909176
- Rebuild for boost 1.54.0
Petr Machata 8909176
b278fce
* Fri Feb 15 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.3.3-11
b278fce
- Rebuilt for https://fedoraproject.org/wiki/Fedora_19_Mass_Rebuild
b278fce
c7481e3
* Thu Dec 13 2012 Adam Jackson <ajax@redhat.com> - 0.3.3-10
c7481e3
- Rebuild for glew 1.9.0
c7481e3
9c118c6
* Thu Jul 26 2012 Hans de Goede <hdegoede@redhat.com> - 0.3.3-9
9c118c6
- Rebuilt for new GLEW
9c118c6
32eb970
* Sat Jul 21 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.3.3-8
32eb970
- Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild
32eb970
241e783
* Tue Feb 28 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.3.3-7
241e783
- Rebuilt for c++ ABI breakage
241e783
5d3579c
* Sun Jan 15 2012 Dan HorĂ¡k <dan@danny.cz> - 0.3.3-6
5d3579c
- rebuilt with squirrel 2.2.5
5d3579c
c4fd488
* Sat Jan 14 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.3.3-5
c4fd488
- Rebuilt for https://fedoraproject.org/wiki/Fedora_17_Mass_Rebuild
c4fd488
915c86a
* Mon Dec 05 2011 Tom Callaway <spot@fedoraproject.org> - 0.3.3-4
54c1562
- rebuild for physfs2
54c1562
cc00ea9
* Thu Jun 30 2011 Nils Philippsen <nils@redhat.com> - 0.3.3-3
cc00ea9
- include cstddef header to fix build
cc00ea9
0a6cb41
* Wed Jun 29 2011 Nils Philippsen <nils@redhat.com> - 0.3.3-3
0a6cb41
- fix building with current libcurl
0a6cb41
336772f
* Mon Jun 20 2011 ajax@redhat.com - 0.3.3-3
336772f
- Rebuild for new glew soname
336772f
422a9bd
* Wed Feb 09 2011 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.3.3-2
422a9bd
- Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild
422a9bd
c29d99c
* Tue Apr  6 2010 Hans de Goede <hdegoede@redhat.com> 0.3.3-1
c29d99c
- New upstream release 0.3.3
c29d99c
- As upstream consistently calls this supertux2, do the same
c29d99c
  (rather then renaming it to supertux)
c29d99c
- Move the icon to the FDO icon dir
c29d99c
a38c2f6
* Tue Aug 25 2009 Alex Lancaster <alexlan[AT]fedoraproject org> - 0.3.1-9
a38c2f6
- Rebuild for new openal
a38c2f6
ae63016
* Sun Jul 26 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.3.1-8
ae63016
- Rebuilt for https://fedoraproject.org/wiki/Fedora_12_Mass_Rebuild
ae63016
17946fa
* Sun Mar 01 2009 Lubomir Rintel <lkundrak@v3.sk> - 0.3.1-7
17946fa
- Fix build with GCC 4.4
17946fa
c36a64c
* Wed Feb 25 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.3.1-6
c36a64c
- Rebuilt for https://fedoraproject.org/wiki/Fedora_11_Mass_Rebuild
c36a64c
7e0f324
* Fri Jan 30 2009 Hans de Goede <hdegoede@redhat.com> 0.3.1-5
7e0f324
- Update description for new trademark guidelines
7e0f324
5d1b123
* Sun Jan 18 2009 Lubomir Rintel <lkundrak@v3.sk> 0.3.1-4
ec8c259
- Fix parsing of translations (#477497)
ec8c259
- Disable debugging console
ec8c259
feb0af3
* Thu Jul 10 2008 Hans de Goede <j.w.r.degoede@hhs.nl> 0.3.1-3
feb0af3
- Fix building with gcc-4.3 (bz 434445)
feb0af3
2bbc09c
* Tue Feb 19 2008 Fedora Release Engineering <rel-eng@fedoraproject.org> - 0.3.1-2
2bbc09c
- Autorebuild for GCC 4.3
2bbc09c
d03598d
* Tue Jan 08 2008 Steven Pritchard <steve@kspei.com> 0.3.1-1
d03598d
- Update to 0.3.1.
d03598d
- Upstream is calling this release "supertux2", so we get rid of the "2".
d03598d
- Update License.
d03598d
cf4109f
* Fri Oct 19 2007 Nils Philippsen <nphilipp@redhat.com> 0.3.0-3
cf4109f
- use opengl-games-wrapper.sh from Fedora 7 on (#335701)
cf4109f
c93b1fe
* Fri Oct 19 2007 Nils Philippsen <nphilipp@redhat.com> 0.3.0-2
c93b1fe
- use opengl-games-wrapper.sh from Fedora 8 on (#335701)
c93b1fe
f175b51
* Tue Feb 13 2007 Steven Pritchard <steve@kspei.com> 0.3.0-1
d303ab9
- Update to 0.3.0.
d303ab9
- Update URL.
d303ab9
- Drop compile fix patch.
f175b51
- BR: physfs-devel, openal-devel, libvorbis-devel.
f175b51
- BR: gettext, flex, bison, jam.
d303ab9
- Build uses jam instead of make now.
f175b51
- Update doc list.
f175b51
- Minor spec cleanup.
d303ab9
142e7e6
* Mon Aug 28 2006 Steven Pritchard <steve@kspei.com> 0.1.3-5
142e7e6
- Rebuild
142e7e6
7317f36
* Sat Jun 03 2006 Steven Pritchard <steve@kspei.com> 0.1.3-4
7317f36
- BR: libGLU-devel to fix rawhide build
7317f36
def375e
* Tue Feb 07 2006 Steven Pritchard <steve@kspei.com> 0.1.3-3
def375e
- Patch to fix compile on rawhide
def375e
9eebc31
* Tue Sep 06 2005 Steven Pritchard <steve@kspei.com> 0.1.3-2
9eebc31
- Avoid second .desktop file (#167579)
9eebc31
8c827c1
* Thu Sep 01 2005 Steven Pritchard <steve@kspei.com> 0.1.3-1
8c827c1
- Update to 0.1.3
8c827c1
4765f61
* Sun May 22 2005 Jeremy Katz <katzj@redhat.com> - 0.1.2-3
4765f61
- rebuild on all arches
4765f61
915c86a
* Fri Apr 08 2005 Michael Schwendt <mschwendt[AT]users.sf.net>
f3188a5
- rebuilt
f3188a5
b06a157
* Sun Oct 03 2004 Panu Matilainen <pmatilai@welho.com> 0:0.1.2-1
b06a157
- update to 0.1.2
b06a157
b06a157
* Sat May 15 2004 Panu Matilainen <pmatilai@welho.com> 0:0.1.1-0.fdr.2
b06a157
- add buildrequires libtiff-devel
b06a157
cvsextras a6bfccf
* Thu May 13 2004 Panu Matilainen <pmatilai@welho.com> 0:0.1.1-0.fdr.1
cvsextras a6bfccf
- Initial RPM release.