Igor Gnatenko 3a6169
#global rctag rc1
Igor Gnatenko 0460b4
Igor Gnatenko 0460b4
%global __global_ldflags %(echo "%{__global_ldflags} -lX11")
Igor Gnatenko 0460b4
50baac
Name:           supertuxkart
df1cd2
Version:        1.0
df1cd2
Release:        1%{?rctag:.%{rctag}}%{?dist}
50baac
Summary:        Kids 3D go-kart racing game featuring Tux
Igor Gnatenko 7cff7a
# Font licensing
Igor Gnatenko 7cff7a
# [unbundled] GNU FreeFont - GPLv3
Igor Gnatenko 7cff7a
# wqyMicroHei - GPLv3 with exception and ASL 2.0
Igor Gnatenko 7cff7a
# Noto Naskh Arabic UI - ASL 2.0
Igor Gnatenko 7cff7a
# [unbundled] Cantarell - SIL 1.1 (OFL)
Igor Gnatenko 7cff7a
# SigmarOne - SIL 1.1 (OFL)
Igor Gnatenko 7cff7a
License:        GPLv2+ and GPLv3 and CC-BY-SA and OFL and ASL 2.0
341dff
URL:            http://supertuxkart.sourceforge.net/
Igor Gnatenko 0460b4
Source0:        http://downloads.sourceforge.net/%{name}/%{name}-%{version}%{?rctag:-%{rctag}}-src.tar.xz
c9c9e8
Source1:        %{name}.6
92943d
Source2:        supertuxkart-0.7.3-license-clarification.txt
Igor Gnatenko 0460b4
Igor Gnatenko 6c8807
BuildRequires:  gcc-c++
Igor Gnatenko 02b8a3
BuildRequires:  git-core
b4937c
BuildRequires:  cmake
Igor Gnatenko 7cff7a
# For fonts rpm macro
Igor Gnatenko 7cff7a
BuildRequires:  fontpackages-devel
13a215
BuildRequires:  freetype-devel
fe59d6
BuildRequires:  libvorbis-devel freeglut-devel desktop-file-utils
e3e21e
BuildRequires:  openal-soft-devel freealut-devel >= 1.1.0-10 libtool
fa4e8d
BuildRequires:  libcurl-devel fribidi-devel
fa4e8d
BuildRequires:  pkgconfig(libenet)
66a868
BuildRequires:  wiiuse-devel bluez-libs-devel
4d3d43
BuildRequires:  libpng-devel libjpeg-turbo-devel
dd2192
BuildRequires:  libXrandr-devel
Igor Gnatenko 0460b4
BuildRequires:  angelscript-devel
fa4e8d
BuildRequires:  pkgconfig(glew)
df1cd2
BuildRequires:  openssl-devel
df1cd2
BuildRequires:  libsquish-devel
dc4f78
BuildRequires:  mesa-libEGL-devel
dc4f78
BuildRequires:  mesa-libGLES-devel
fa11dd
Requires:       hicolor-icon-theme opengl-games-utils
e3e21e
Requires:       %{name}-data = %{version}
50baac
Igor Gnatenko 0460b4
# Bundled bullet with their patch
Igor Gnatenko 0460b4
Provides:       bundled(bullet) = 2.87
3df0bb
50baac
%description
50baac
3D go-kart racing game for kids with several famous OpenSource mascots
50baac
participating. Race as Tux against 3 computer players in many different fun
50baac
race courses (Standard race track, Dessert, Mathclass, etc). Full information
50baac
on how to add your own race courses is included. During the race you can pick
50baac
up powerups such as: (homing) missiles, magnets and portable zippers.
50baac
e4cc7c
%package data
e3e21e
Summary:        %{summary}
Igor Gnatenko 7cff7a
Requires:       gnu-free-sans-fonts
Igor Gnatenko 7cff7a
Requires:       abattis-cantarell-fonts
e3e21e
Requires:       %{name} = %{version}
e3e21e
BuildArch:      noarch
e4cc7c
e4cc7c
%description data
757e14
This package contains the data files for SuperTuxKart.
50baac
50baac
%prep
02fc82
%autosetup -n %{name}-%{version}%{?rctag:-%{rctag}} -p1
e3e21e
cp -p %{SOURCE2} .
b4937c
# Delete bundled libs
df1cd2
#rm -rf lib/enet lib/wiiuse lib/angelscript lib/glew
cd0018
#sed -i -e '/setAnimationStrength/s/^/\/\//' src/karts/kart_model.cpp
Igor Gnatenko 0460b4
mkdir build
13a215
50baac
%build
Igor Gnatenko 0460b4
pushd build
fa4e8d
  %cmake ../ -DUSE_SYSTEM_ANGELSCRIPT=ON -DBUILD_RECORDER=FALSE
Igor Gnatenko 0460b4
  %make_build VERBOSE=1
Igor Gnatenko 0460b4
popd
50baac
50baac
%install
Igor Gnatenko 0460b4
pushd build
Igor Gnatenko 0460b4
  %make_install
Igor Gnatenko 0460b4
popd
df1cd2
b4937c
ln -s opengl-game-wrapper.sh %{buildroot}%{_bindir}/%{name}-wrapper
Igor Gnatenko 7cff7a
ln -sf %{_fontbasedir}/abattis-cantarell/Cantarell-Regular.otf %{buildroot}%{_datadir}/%{name}/Cantarell-Regular.otf
Igor Gnatenko 7cff7a
ln -sf %{_fontbasedir}/abattis-cantarell/Cantarell-Bold.otf %{buildroot}%{_datadir}/%{name}/Cantarell-Bold.otf
7075d7
ln -sf %{_fontbasedir}/gnu-free/FreeSans.ttf %{buildroot}%{_datadir}/%{name}/FreeSans.ttf
7075d7
ln -sf %{_fontbasedir}/gnu-free/FreeSansBold.ttf %{buildroot}%{_datadir}/%{name}/FreeSansBold.ttf
50baac
50baac
# add the manpage (courtesy of Debian)
bd15c6
mkdir -p %{buildroot}%{_mandir}/man6
bd15c6
install -p -m 644 %{SOURCE1} %{buildroot}%{_mandir}/man6
50baac
bd15c6
%check
bd15c6
desktop-file-validate %{buildroot}%{_datadir}/applications/*%{name}.desktop
bd15c6
757e14
%files
da3a19
%license COPYING supertuxkart-0.7.3-license-clarification.txt
fa4e8d
%doc CHANGELOG.md README.md
fa11dd
%{_bindir}/%{name}*
e2afc9
%{_mandir}/man6/%{name}.6*
df1cd2
%{_datadir}/metainfo/*%{name}.appdata.xml
e3e21e
%{_datadir}/applications/*%{name}.desktop
b4937c
%{_datadir}/icons/hicolor/*/apps/%{name}.png
fa4e8d
%{_datadir}/pixmaps/%{name}.png
7edf3b
%exclude %{_includedir}/wiiuse.h
7edf3b
%exclude %{_libdir}/libwiiuse.a
50baac
e4cc7c
%files data
e2afc9
%{_datadir}/%{name}/
e4cc7c
50baac
%changelog
df1cd2
* Mon Apr 22 2019 Gwyn Ciesla <gwync@protonmail.com> - 1.0-1
df1cd2
- 1.0
df1cd2
be8578
* Sun Feb 03 2019 Fedora Release Engineering <releng@fedoraproject.org> - 0.9.3-2.6
be8578
- Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild
be8578
893383
* Thu Aug 23 2018 Nicolas Chauvet <kwizart@gmail.com> - 0.9.3-2.5
893383
- Rebuilt for glew 2.1.0
893383
de7d97
* Sat Jul 14 2018 Fedora Release Engineering <releng@fedoraproject.org> - 0.9.3-2.4
de7d97
- Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild
de7d97
fc1ddc
* Wed Mar 07 2018 Adam Williamson <awilliam@redhat.com> - 0.9.3-2.3
fc1ddc
- Rebuild to fix GCC 8 mis-compilation
fc1ddc
  See https://da.gd/YJVwk ("GCC 8 ABI change on x86_64")
fc1ddc
  I don't know why we're versioning like this but what the hell
fc1ddc
8525f3
* Fri Feb 09 2018 Fedora Release Engineering <releng@fedoraproject.org> - 0.9.3-2.2
8525f3
- Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild
8525f3
e2afc9
* Fri Jan 05 2018 Igor Gnatenko <ignatenkobrain@fedoraproject.org> - 0.9.3-2.1
e2afc9
- Remove obsolete scriptlets
e2afc9
6e1c55
* Tue Jan 02 2018 Igor Gnatenko <ignatenkobrain@fedoraproject.org> - 0.9.3-2
6e1c55
- Rebuild for angelscript 2.32.0
6e1c55
fa4e8d
* Mon Nov 20 2017 Igor Gnatenko <ignatenkobrain@fedoraproject.org> - 0.9.3-1
fa4e8d
- Update to 0.9.3
fa4e8d
eb2392
* Thu Aug 03 2017 Fedora Release Engineering <releng@fedoraproject.org> - 0.9.2-6.5
eb2392
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Binutils_Mass_Rebuild
eb2392
13284e
* Thu Jul 27 2017 Fedora Release Engineering <releng@fedoraproject.org> - 0.9.2-6.4
13284e
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild
13284e
a46775
* Mon May 15 2017 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.9.2-6.3
a46775
- Rebuilt for https://fedoraproject.org/wiki/Fedora_26_27_Mass_Rebuild
a46775
f54698
* Sat Feb 11 2017 Fedora Release Engineering <releng@fedoraproject.org> - 0.9.2-6.2
f54698
- Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild
f54698
Orion Poplawski 0190b2
* Tue Jan 10 2017 Orion Poplawski <orion@cora.nwra.com> - 0.9.2-6.1
Orion Poplawski 0190b2
- Rebuild for glew 2.0.0
Orion Poplawski 0190b2
Igor Gnatenko c05949
* Sun Dec 18 2016 Igor Gnatenko <ignatenko@redhat.com> - 0.9.2-6
Igor Gnatenko c05949
- Rebuild for angelscript 2.31.2
Igor Gnatenko c05949
Igor Gnatenko f989ca
* Mon Nov 28 2016 Igor Gnatenko <i.gnatenko.brain@gmail.com> - 0.9.2-5
Igor Gnatenko f989ca
- Rebuild for angelscript soname change
Igor Gnatenko f989ca
f56fa9
* Fri Oct 14 2016 Jon Ciesla <limburgher@gmail.com> - 0.9.2-4
f56fa9
- Rebuild to fix broken deps on aarch64.
f56fa9
Igor Gnatenko 7cff7a
* Tue Jul 12 2016 Igor Gnatenko <ignatenko@redhat.com> - 0.9.2-3
Igor Gnatenko 7cff7a
- Unbundle cantarell and gnu fonts
Igor Gnatenko 7cff7a
Igor Gnatenko 861431
* Tue Jul 12 2016 Igor Gnatenko <ignatenko@redhat.com> - 0.9.2-2
Igor Gnatenko 861431
- Replace non-free ubuntu font with cantarell
Igor Gnatenko 861431
Igor Gnatenko 3a6169
* Fri Jul 01 2016 Igor Gnatenko <ignatenko@redhat.com> - 0.9.2-1
Igor Gnatenko 3a6169
- Update to 0.9.2
Igor Gnatenko 3a6169
da3a19
* Mon Jun 27 2016 Igor Gnatenko <i.gnatenko.brain@gmail.com> - 0.9.2-0.3.rc1
da3a19
- Rebuild for new angelscript
da3a19
Igor Gnatenko 0460b4
* Tue Jun 21 2016 Igor Gnatenko <ignatenko@redhat.com> - 0.9.2-0.2.rc1
Igor Gnatenko 0460b4
- Properly make an update
Igor Gnatenko 0460b4
13a215
* Mon Jun 20 2016 Pete Walter <pwalter@fedoraproject.org> - 0.9.2-0.1.rc1
13a215
- Update to 0.9.2 RC1
13a215
dc4223
* Thu Feb 25 2016 Jon Ciesla <limburgher@gmail.com> - 0.9.1-5
dc4223
- Fix FTBFS.
dc4223
c1b61c
* Fri Feb 05 2016 Fedora Release Engineering <releng@fedoraproject.org> - 0.9.1-4
c1b61c
- Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild
c1b61c
240094
* Tue Dec 15 2015 Igor Gnatenko <i.gnatenko.brain@gmail.com> - 0.9.1-3
240094
- Rebuild for new wiiuse
240094
3a667d
* Tue Oct 27 2015 Igor Gnatenko <i.gnatenko.brain@gmail.com> - 0.9.1-2
3a667d
- Rebuild for new angelscript
3a667d
ab9d9e
* Sun Oct 18 2015 Igor Gnatenko <i.gnatenko.brain@gmail.com> - 0.9.1-1
ab9d9e
- Update to 0.9.1 (RHBZ #1208136)
ab9d9e
43c638
* Fri Jun 19 2015 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.9-2
43c638
- Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild
43c638
3e7da3
* Thu Apr 23 2015 Igor Gnatenko <i.gnatenko.brain@gmail.com> - 0.9-1
3e7da3
- Update to 0.9
3e7da3
- Drop old patches
3e7da3
39ee99
* Mon Apr 06 2015 Jon Ciesla <limburgher@gmail.com> - 0.8.1-11
39ee99
- Fix FTBFS.
39ee99
Richard Hughes 01a13a
* Thu Mar 26 2015 Richard Hughes <rhughes@redhat.com> - 0.8.1-10
Richard Hughes 01a13a
- Add an AppData file for the software center
Richard Hughes 01a13a
cd0018
* Wed Oct 15 2014 Jon Ciesla <limburgher@gmail.com> - 0.8.1-9
cd0018
- Re-bundling irrlicht and bullet per FPC 459.
cd0018
369fa5
* Mon Aug 18 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.8.1-8
369fa5
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_22_Mass_Rebuild
369fa5
c00970
* Sun Jun 08 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.8.1-7
c00970
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild
c00970
bd15c6
* Sun May 25 2014 Igor Gnatenko <i.gnatenko.brain@gmail.com> - 0.8.1-6
bd15c6
- Adding a Wiimote with other one alredy placed (asked Richard Shaw)
bd15c6
2791c2
* Wed May 14 2014 Igor Gnatenko <i.gnatenko.brain@gmail.com> - 0.8.1-5
2791c2
- fix building with old bullet
2791c2
66a868
* Sun May 11 2014 Igor Gnatenko <i.gnatenko.brain@gmail.com> - 0.8.1-4
66a868
- enable wiimote support (asked in stk-owner@)
66a868
b9a53b
* Tue Apr 29 2014 Jon Ciesla <limburgher@gmail.com> - 0.8.1-3
b9a53b
- libenet rebuild.
b9a53b
47958a
* Sun Feb 09 2014 Rich Mattes <richmattes@gmail.com> - 0.8.1-2
47958a
- Rebuild for bullet-2.82
47958a
b4937c
* Wed Nov 27 2013 Igor Gnatenko <i.gnatenko.brain@gmail.com> - 0.8.1-1
b4937c
- Update to upstream 0.8.1
b4937c
211cf3
* Mon Nov 25 2013 Hans de Goede <hdegoede@redhat.com> - 0.8-2
211cf3
- Drop no longer needed SDL and mikmod BuildRequires
211cf3
e3e21e
* Mon Aug 05 2013 Hans de Goede <hdegoede@redhat.com> - 0.8-1
e3e21e
- New upstream release 0.8 (#886012)
e3e21e
f023a1
* Sun Aug 04 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.7.3-7
f023a1
- Rebuilt for https://fedoraproject.org/wiki/Fedora_20_Mass_Rebuild
f023a1
c02ccb
* Tue May 07 2013 Jon Ciesla <limburgher@gmail.com> - 0.7.3-6
c02ccb
- License clariication, BZ 891890.
c02ccb
eb2d25
* Mon Feb 11 2013 Jon Ciesla <limburgher@gmail.com> - 0.7.3-5
eb2d25
- Drop desktop vendor tag.
eb2d25
92943d
* Mon Feb 04 2013 Jon Ciesla <limburgher@gmail.com> - 0.7.3-4
92943d
- License clariication, BZ 891890.
92943d
d1aafa
* Thu Nov 15 2012 Jon Ciesla <limburgher@gmail.com> - 0.7.3-3
d1aafa
- Use irrlicht 1.8 final.
d1aafa
15b4b3
* Fri Aug 24 2012 Jon Ciesla <limburgher@gmail.com> - 0.7.3-2
15b4b3
- Post cleanup.
15b4b3
757e14
* Thu Aug 23 2012 Jon Ciesla <limburgher@gmail.com> - 0.7.3-1
757e14
- Latest upstream, using irrlicht snapshot subpackage.  BZ 697169.
757e14
3b7062
* Sat Jul 21 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.7-6
3b7062
- Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild
3b7062
e3e21e
* Tue Jun 26 2012 Jon Ciesla <limburgher@gmail.com> - 0.7-5
a79b42
- Rebuild for new irrlicht.
a79b42
547112
* Tue Feb 28 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.7-4
547112
- Rebuilt for c++ ABI breakage
547112
c1d880
* Sat Jan 14 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.7-3
c1d880
- Rebuilt for https://fedoraproject.org/wiki/Fedora_17_Mass_Rebuild
c1d880
04d336
* Wed Feb 09 2011 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.7-2
04d336
- Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild
04d336
Jon Ciesla 665d30
* Wed Dec 22 2010 Jon Ciesla <limb@jcomserv.net> - 0.7-1
Jon Ciesla 665d30
- New upstream, BZ 587194.
Jon Ciesla 665d30
93010e
* Thu Jan 14 2010 Jon Ciesla <limb@jcomserv.net> - 0.6.2-3
93010e
- Rebuild for new irrlicht.
93010e
e4cc7c
* Thu Nov 19 2009 Jon Ciesla <limb@jcomserv.net> - 0.6.2-2
e4cc7c
- Add in addon pack.
e4cc7c
- Split data to noarch subpackage.
e4cc7c
26088d
* Thu Sep 10 2009 Jon Ciesla <limb@jcomserv.net> - 0.6.2-1
26088d
- Bugfix release.
26088d
472352
* Sun Aug 16 2009 Hans de Goede <hdegoede@redhat.com> - 0.6.1a-3
472352
- Switch to openal-soft
472352
f5ff75
* Sun Jul 26 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.6.1a-2
f5ff75
- Rebuilt for https://fedoraproject.org/wiki/Fedora_12_Mass_Rebuild
f5ff75
21d9f5
* Tue Jun 16 2009 Jon Ciesla <limb@jcomserv.net> - 0.6.1a-1
21d9f5
- Patch release.
21d9f5
- Fixed symlink/dir replacement, BZ 506245.
21d9f5
24480c
* Wed Feb 25 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.6.1-2
24480c
- Rebuilt for https://fedoraproject.org/wiki/Fedora_11_Mass_Rebuild
24480c
d40821
* Mon Feb 23 2009 Hans de Goede <hdegoede@redhat.com> 0.6.1-1
d40821
- New upstream release 0.6.1
d40821
c9c9e8
* Sun Jan 25 2009 Hans de Goede <hdegoede@redhat.com> 0.6-1
c9c9e8
- New upstream release 0.6
c9c9e8
1f666e
* Sun Sep  7 2008 Hans de Goede <hdegoede@redhat.com> 0.5-2
1f666e
- Fix patch fuzz build failure
1f666e
f6bb95
* Tue Jun  3 2008 Hans de Goede <j.w.r.degoede@hhs.nl> 0.5-1
f6bb95
- New upstream release 0.5
f6bb95
ec9260
* Tue May 13 2008 Hans de Goede <j.w.r.degoede@hhs.nl> 0.4-2
ec9260
- Rebuild for new plib
ec9260
341dff
* Mon Mar 10 2008 Hans de Goede <j.w.r.degoede@hhs.nl> 0.4-1
341dff
- New upstream release 0.4
341dff
- Note this version includes a build in copy of the bullet physics library,
341dff
  this is a patched copy making use if a system version impossible
341dff
a53a19
* Tue Feb 19 2008 Fedora Release Engineering <rel-eng@fedoraproject.org> - 0.3-4
a53a19
- Autorebuild for GCC 4.3
a53a19
755f71
* Fri Jan 11 2008 Hans de Goede <j.w.r.degoede@hhs.nl> 0.3-3
755f71
- Fix compilation with gcc 4.3
755f71
fa11dd
* Mon Sep 24 2007 Hans de Goede <j.w.r.degoede@hhs.nl> 0.3-2
fa11dd
- Use opengl-games-utils wrapper to show error dialog when DRI is missing
fa11dd
af6fd2
* Wed Aug 15 2007 Hans de Goede <j.w.r.degoede@hhs.nl> 0.3-1
af6fd2
- New upstream release 0.3
af6fd2
- Drop most patches (all fixed upstream)
af6fd2
- Update License tag for new Licensing Guidelines compliance
af6fd2
50baac
* Fri Oct  6 2006 Hans de Goede <j.w.r.degoede@hhs.nl> 0.2-3
50baac
- replace some more coprighted images and sounds
50baac
- fix a bunch of joystick related bugs
50baac
50baac
* Mon Sep 25 2006 Hans de Goede <j.w.r.degoede@hhs.nl> 0.2-2
50baac
- rename images-legal.txt to supertuxkart-images-legal.txt
50baac
- add a changelog entry for the previous release (and this one)
50baac
50baac
* Mon Sep 25 2006 Hans de Goede <j.w.r.degoede@hhs.nl> 0.2-1
50baac
- initial Fedora Extras package (replacing regular tuxkart)