2008-04-30 12:50:24 +00:00
|
|
|
#
|
2011-04-25 19:35:02 +00:00
|
|
|
# spec file for package supertuxkart
|
2008-04-30 12:50:24 +00:00
|
|
|
#
|
2020-01-08 10:32:22 +00:00
|
|
|
# Copyright (c) 2020 SUSE LLC
|
2011-11-14 22:16:07 +00:00
|
|
|
#
|
|
|
|
# All modifications and additions to the file contributed by third parties
|
|
|
|
# remain the property of their copyright owners, unless otherwise agreed
|
|
|
|
# upon. The license for this file, and modifications and additions to the
|
|
|
|
# file, is the same license as for the pristine package itself (unless the
|
|
|
|
# license for the pristine package is not an Open Source License, in which
|
|
|
|
# case the license is the MIT License). An "Open Source License" is a
|
|
|
|
# license that conforms to the Open Source Definition (Version 1.9)
|
|
|
|
# published by the Open Source Initiative.
|
|
|
|
|
2019-01-09 08:56:17 +00:00
|
|
|
# Please submit bugfixes or comments via https://bugs.opensuse.org/
|
2008-04-30 12:50:24 +00:00
|
|
|
#
|
|
|
|
|
|
|
|
|
2019-04-30 08:59:57 +00:00
|
|
|
#
|
2008-04-30 12:50:24 +00:00
|
|
|
Name: supertuxkart
|
2020-01-08 10:32:22 +00:00
|
|
|
Version: 1.1
|
2012-03-24 01:19:41 +00:00
|
|
|
Release: 0
|
2010-12-21 23:28:12 +00:00
|
|
|
Summary: A 3D kart racing game
|
2018-05-07 11:30:06 +00:00
|
|
|
License: GPL-2.0-or-later AND GPL-3.0-or-later AND CC-BY-SA-3.0
|
2010-12-18 22:43:50 +00:00
|
|
|
Group: Amusements/Games/3D/Race
|
2018-05-07 11:30:06 +00:00
|
|
|
URL: http://supertuxkart.sourceforge.net/
|
2020-01-08 10:32:22 +00:00
|
|
|
Source: https://downloads.sourceforge.net/project/supertuxkart/SuperTuxKart/%{version}/supertuxkart-%{version}-src.tar.xz
|
2011-09-27 13:01:22 +00:00
|
|
|
# Geeko kart add-on (CC-BY 3.0)
|
|
|
|
Source1: http://stkaddons.net/dl/14e6ba25b17f0d.zip
|
2016-07-03 16:44:01 +00:00
|
|
|
Source9: supertuxkart.6
|
|
|
|
BuildRequires: cmake >= 3
|
2012-12-26 11:52:11 +00:00
|
|
|
BuildRequires: fdupes
|
2010-12-18 22:43:50 +00:00
|
|
|
BuildRequires: gcc-c++
|
2015-04-22 15:26:14 +00:00
|
|
|
BuildRequires: hicolor-icon-theme
|
|
|
|
BuildRequires: libjpeg-devel
|
|
|
|
BuildRequires: libpng-devel
|
2020-01-08 10:32:22 +00:00
|
|
|
BuildRequires: libraqm-devel
|
|
|
|
%if 0%{?suse_version} && 0%{?is_opensuse}
|
|
|
|
BuildRequires: mcpp-devel
|
|
|
|
%endif
|
2016-07-03 16:44:01 +00:00
|
|
|
BuildRequires: pkgconfig
|
2011-09-27 13:11:01 +00:00
|
|
|
BuildRequires: unzip
|
2011-09-27 13:25:35 +00:00
|
|
|
BuildRequires: update-desktop-files
|
2019-04-30 08:59:57 +00:00
|
|
|
BuildRequires: wiiuse-devel
|
2016-07-03 16:44:01 +00:00
|
|
|
BuildRequires: pkgconfig(bluez)
|
2016-06-16 15:14:04 +00:00
|
|
|
BuildRequires: pkgconfig(freetype2)
|
2016-07-03 16:44:01 +00:00
|
|
|
BuildRequires: pkgconfig(fribidi)
|
2012-12-12 00:14:38 +00:00
|
|
|
BuildRequires: pkgconfig(gl)
|
2019-04-30 08:59:57 +00:00
|
|
|
BuildRequires: pkgconfig(glew)
|
2016-07-03 16:44:01 +00:00
|
|
|
BuildRequires: pkgconfig(glu)
|
2020-01-08 10:32:22 +00:00
|
|
|
BuildRequires: pkgconfig(harfbuzz)
|
2016-07-03 16:44:01 +00:00
|
|
|
BuildRequires: pkgconfig(libcurl)
|
2019-04-30 08:59:57 +00:00
|
|
|
BuildRequires: pkgconfig(libenet)
|
2016-07-03 16:44:01 +00:00
|
|
|
BuildRequires: pkgconfig(ogg)
|
|
|
|
BuildRequires: pkgconfig(openal)
|
2019-04-30 08:59:57 +00:00
|
|
|
BuildRequires: pkgconfig(openssl)
|
2016-07-03 16:44:01 +00:00
|
|
|
BuildRequires: pkgconfig(vorbis)
|
|
|
|
BuildRequires: pkgconfig(xrandr)
|
2018-05-07 11:30:06 +00:00
|
|
|
Requires: %{name}-data = %{version}
|
2016-07-03 16:44:01 +00:00
|
|
|
Requires(post): hicolor-icon-theme
|
|
|
|
Requires(postun): hicolor-icon-theme
|
2015-08-14 13:25:37 +00:00
|
|
|
ExclusiveArch: %{ix86} x86_64
|
2008-04-30 12:50:24 +00:00
|
|
|
|
|
|
|
%description
|
2010-12-21 23:28:12 +00:00
|
|
|
SuperTuxKart is a Free 3d kart racing game.
|
|
|
|
|
|
|
|
The focus of the game is more to be fun than it is to be realistic.
|
|
|
|
You can play with up to 4 friends on one PC, racing against each other or just try to beat the computer.
|
|
|
|
|
|
|
|
See the great lighthouse or drive through the sand and visit the pyramids. Race underground or in space,
|
|
|
|
watching the stars passing by. Have some rest under the palms on the beach (watching the other karts
|
|
|
|
overtaking you :) ). But don't eat the bananas! Watch for bowling balls, plungers, bubble gum and cakes thrown by opponents.
|
|
|
|
|
|
|
|
You can do a single race against other karts, compete in one of several Grand Prix, try to beat the high score in time trials
|
2011-09-27 13:01:22 +00:00
|
|
|
on your own, play battle mode against your friends, and more!
|
2008-04-30 12:50:24 +00:00
|
|
|
|
2011-09-27 13:25:35 +00:00
|
|
|
%package data
|
|
|
|
Summary: Data files for SuperTuxKart
|
2012-05-02 10:41:35 +00:00
|
|
|
Group: Amusements/Games/3D/Race
|
2011-09-27 13:25:35 +00:00
|
|
|
Requires: %{name} = %{version}
|
|
|
|
BuildArch: noarch
|
|
|
|
|
|
|
|
%description data
|
2012-05-02 10:41:35 +00:00
|
|
|
Data files for SuperTuxKart a Free 3d kart racing game.
|
2011-09-27 13:25:35 +00:00
|
|
|
|
2008-04-30 12:50:24 +00:00
|
|
|
%prep
|
2020-01-08 10:32:22 +00:00
|
|
|
%setup -q -n %{name}-%{version}-src
|
2015-04-22 15:26:14 +00:00
|
|
|
find -name '*~' -delete -print
|
2019-04-30 08:59:57 +00:00
|
|
|
find -name '.git*' -type f -delete -print
|
|
|
|
rm -rfv ./.github
|
2008-04-30 12:50:24 +00:00
|
|
|
|
2020-01-08 16:02:00 +00:00
|
|
|
# fix W: non-executable-script
|
|
|
|
rm data/optimize_data.sh
|
|
|
|
rm data/po/pull_from_transifex.sh
|
|
|
|
rm data/po/update_po_authors.py
|
|
|
|
|
2008-04-30 12:50:24 +00:00
|
|
|
%build
|
2016-07-03 16:44:01 +00:00
|
|
|
mkdir build && cd build
|
|
|
|
# NOTE that %%cmake macro breaks linking.
|
|
|
|
cmake .. \
|
|
|
|
-DCMAKE_INSTALL_PREFIX=%{_prefix} \
|
|
|
|
-DCMAKE_C_FLAGS="%{optflags} -fno-strict-aliasing" \
|
|
|
|
-DCMAKE_CXX_FLAGS="%{optflags} -fno-strict-aliasing" \
|
|
|
|
-DCMAKE_VERBOSE_MAKEFILE:BOOL=ON \
|
2017-10-30 13:52:53 +00:00
|
|
|
-DBUILD_RECORDER=0 \
|
2020-01-08 10:32:22 +00:00
|
|
|
-DOpenGL_GL_PREFERENCE=GLVND \
|
2019-04-30 08:59:57 +00:00
|
|
|
-DUSE_SYSTEM_WIIUSE:BOOL=ON \
|
2016-07-03 16:44:01 +00:00
|
|
|
-DCMAKE_BUILD_TYPE=RelWithDebInfo
|
|
|
|
make V=1 %{?_smp_mflags}
|
2008-04-30 12:50:24 +00:00
|
|
|
|
|
|
|
%install
|
2016-07-03 16:44:01 +00:00
|
|
|
%cmake_install
|
2020-01-08 10:32:22 +00:00
|
|
|
|
2012-12-12 00:14:38 +00:00
|
|
|
mkdir -p %{buildroot}%{_datadir}/supertuxkart/data/karts/geeko/
|
|
|
|
cd %{buildroot}%{_datadir}/supertuxkart/data/karts/geeko/
|
2011-09-27 13:01:22 +00:00
|
|
|
unzip %{SOURCE1}
|
2009-09-03 15:43:01 +00:00
|
|
|
%fdupes %{buildroot}%{_datadir}
|
2010-12-18 22:43:50 +00:00
|
|
|
%suse_update_desktop_file supertuxkart
|
2016-07-03 16:44:01 +00:00
|
|
|
# Man page:
|
|
|
|
mkdir -p %{buildroot}%{_mandir}/man6
|
|
|
|
cp %{SOURCE9} %{buildroot}%{_mandir}/man6
|
2008-04-30 12:50:24 +00:00
|
|
|
|
2018-05-07 11:30:06 +00:00
|
|
|
%if 0%{?suse_version} < 1500
|
2015-04-22 15:26:14 +00:00
|
|
|
%post
|
2016-07-03 16:44:01 +00:00
|
|
|
%desktop_database_post
|
2015-04-22 15:26:14 +00:00
|
|
|
%icon_theme_cache_post
|
|
|
|
|
|
|
|
%postun
|
2016-07-03 16:44:01 +00:00
|
|
|
%desktop_database_postun
|
2015-04-22 15:26:14 +00:00
|
|
|
%icon_theme_cache_postun
|
2018-05-07 11:30:06 +00:00
|
|
|
%endif
|
2015-04-22 15:26:14 +00:00
|
|
|
|
2008-04-30 12:50:24 +00:00
|
|
|
%files
|
|
|
|
%defattr(-,root,root)
|
2018-05-07 11:30:06 +00:00
|
|
|
%license COPYING
|
|
|
|
%doc README.md CHANGELOG.md
|
2012-12-12 00:14:38 +00:00
|
|
|
%{_bindir}/supertuxkart
|
2016-07-03 16:44:01 +00:00
|
|
|
%{_mandir}/man?/%{name}.?.*
|
2019-04-30 08:59:57 +00:00
|
|
|
%dir %{_datadir}/metainfo
|
|
|
|
%{_datadir}/metainfo/supertuxkart.appdata.xml
|
2012-12-15 21:28:39 +00:00
|
|
|
%{_datadir}/applications/%{name}.desktop
|
2017-10-30 13:52:53 +00:00
|
|
|
%{_datadir}/pixmaps/supertuxkart.png
|
2015-04-22 15:26:14 +00:00
|
|
|
%{_datadir}/icons/hicolor/
|
2011-09-27 13:25:35 +00:00
|
|
|
|
|
|
|
%files data
|
|
|
|
%defattr(-,root,root)
|
2012-12-12 00:14:38 +00:00
|
|
|
%{_datadir}/supertuxkart/
|
2008-04-30 12:50:24 +00:00
|
|
|
|
|
|
|
%changelog
|