Accepting request 298640 from home:dimstar:Factory

- Update to version 0.9:
  + An immense amount of work went into the big release. Most
    noteworthy are:
    - A new rendering engine. It is still based on irrlich, but now
      uses a modern OpenGL shader based backend.
    - This release contains two completely new designed
      high-quality tracks.
- Drop supertuxkart.appdata.xml: it's now shipped by upstream.
- Drop upstream resolved patches:
  + 0001-fix_opengl_driver.patch
  + 0002-fix_implicit_definitions.patch
  + supertuxkart-cmake-3.2.patch

- Added CFLAGS and CXXFLAGS to clear warnings about not using RPM_OPT_FLAGS, and gcc compatibility, using -fno-strict-aliasing going forward

OBS-URL: https://build.opensuse.org/request/show/298640
OBS-URL: https://build.opensuse.org/package/show/games/supertuxkart?expand=0&rev=60
This commit is contained in:
2015-04-22 15:26:14 +00:00
committed by Git OBS Bridge
parent eb64670cbd
commit a1103fe4bd
8 changed files with 37 additions and 168 deletions

View File

@@ -17,30 +17,27 @@
Name: supertuxkart
Version: 0.8.1
Version: 0.9
Release: 0
Summary: A 3D kart racing game
License: GPL-2.0+ and GPL-3.0+ and CC-BY-SA-3.0
Group: Amusements/Games/3D/Race
Url: http://supertuxkart.sourceforge.net/
Source: http://sourceforge.net/projects/supertuxkart/files/SuperTuxKart/%{version}/%{name}-%{version}-src.tar.bz2
Source: http://sourceforge.net/projects/supertuxkart/files/SuperTuxKart/%{version}/%{name}-%{version}-src.tar.xz
# Geeko kart add-on (CC-BY 3.0)
Source1: http://stkaddons.net/dl/14e6ba25b17f0d.zip
# appdata file, to show in gnome-software
Source2: supertuxkart.appdata.xml
# PATCH-FIX-UPSTREAM 0001-fix_opengl_driver.patch sfalken@opensuse.org -- Patch to fix building against Mesa >10.0
Patch0: 0001-fix_opengl_driver.patch
# PATCH-FIX-OPENSUSE 0002-fix_implicit_definitions.patch sfalken@opensuse.org -- Patch fixes implicit definitions warning from rpmlint
Patch1: 0002-fix_implicit_definitions.patch
# PATCH-FIX-UPSTREAM supertuxkart-cmake-3.2.patch dimstar@opensuse.org -- Fix build with cmake 3.2
Patch2: supertuxkart-cmake-3.2.patch
BuildRequires: bluez-devel
BuildRequires: cmake
BuildRequires: curl-devel
BuildRequires: fdupes
BuildRequires: fribidi-devel
BuildRequires: gcc-c++
BuildRequires: glu-devel
BuildRequires: hicolor-icon-theme
BuildRequires: libXrandr-devel
BuildRequires: libjpeg-devel
BuildRequires: libogg-devel
BuildRequires: libpng-devel
%if 0%{?suse_version} <= 1220
BuildRequires: libopenal1
%endif
@@ -75,22 +72,12 @@ BuildArch: noarch
Data files for SuperTuxKart a Free 3d kart racing game.
%prep
%setup -q -n SuperTuxKart-%{version}
%patch0 -p1
%patch1 -p1
%patch2 -p1
# If we're building against Mesa 10.0 (gl), then we want to use system glext.h and glxext.h
if pkg-config --atleast-version 10.0 gl; then
cp /usr/include/GL/{glext,glxext}.h lib/irrlicht/source/Irrlicht/
fi
%setup -q
find -name '*~' -delete -print
%build
export CFLAGS="%{optflags} -fno-strict-aliasing"
export CXXFLAGS="$CFLAGS"
# We need an internal version of Irrlicht...
pushd lib/irrlicht/source/Irrlicht
NDEBUG=1 make %{?_smp_mflags}
popd
mkdir cmake_build
cd cmake_build
cmake -DCMAKE_INSTALL_PREFIX=%{_prefix} ..
@@ -102,19 +89,24 @@ make DESTDIR=%{buildroot} install
mkdir -p %{buildroot}%{_datadir}/supertuxkart/data/karts/geeko/
cd %{buildroot}%{_datadir}/supertuxkart/data/karts/geeko/
unzip %{SOURCE1}
mkdir -p %{buildroot}%{_datadir}/appdata/
cp %{S:2} %{buildroot}%{_datadir}/appdata/
%fdupes %{buildroot}%{_datadir}
%suse_update_desktop_file supertuxkart
%post
%icon_theme_cache_post
%postun
%icon_theme_cache_postun
%files
%defattr(-,root,root)
%doc AUTHORS COPYING README TODO ChangeLog
%doc AUTHORS COPYING README.md TODO.md CHANGELOG.md
%{_bindir}/supertuxkart
%dir %{_datadir}/appdata
%{_datadir}/appdata/supertuxkart.appdata.xml
%{_datadir}/applications/%{name}.desktop
%{_datadir}/pixmaps/%{name}_*.png
%{_datadir}/icons/hicolor/
%files data
%defattr(-,root,root)