2012-05-06 14:51:46 +02:00
|
|
|
#
|
|
|
|
# spec file for package trigger-rally
|
|
|
|
#
|
2017-02-21 21:00:12 +01:00
|
|
|
# Copyright (c) 2017 SUSE LINUX GmbH, Nuernberg, Germany.
|
2012-05-06 14:51:46 +02: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.
|
|
|
|
|
|
|
|
# Please submit bugfixes or comments via http://bugs.opensuse.org/
|
|
|
|
#
|
|
|
|
|
|
|
|
|
|
|
|
Name: trigger-rally
|
2017-02-21 21:00:12 +01:00
|
|
|
Version: 0.6.5
|
2012-05-06 14:51:46 +02:00
|
|
|
Release: 0
|
2016-08-28 10:43:04 +02:00
|
|
|
Summary: Fast-paced single-player rally racing game
|
2016-04-10 15:47:44 +02:00
|
|
|
License: GPL-2.0
|
2012-05-07 11:32:58 +02:00
|
|
|
Group: Amusements/Games/Action/Race
|
2016-04-10 15:47:44 +02:00
|
|
|
Url: http://trigger-rally.sourceforge.net/
|
2016-08-28 10:43:04 +02:00
|
|
|
Source0: http://downloads.sourceforge.net/project/trigger-rally/trigger-%{version}/trigger-rally-%{version}.tar.gz
|
|
|
|
# PATCH-FEATURE-UPSTREAM https://sourceforge.net/p/trigger-rally/patches/14/
|
2012-05-06 14:51:46 +02:00
|
|
|
Source1: %{name}.desktop
|
2016-08-28 10:43:04 +02:00
|
|
|
# PATCH-FEATURE-UPSTREAM https://sourceforge.net/p/trigger-rally/patches/15/
|
|
|
|
Source2: %{name}.appdata.xml
|
2017-02-21 21:00:12 +01:00
|
|
|
Source99: %{name}.changes
|
2016-08-28 10:43:04 +02:00
|
|
|
BuildRequires: dos2unix
|
2016-04-10 15:47:44 +02:00
|
|
|
BuildRequires: fdupes
|
2017-02-21 21:00:12 +01:00
|
|
|
%if %{?suse_version} > 1320
|
|
|
|
BuildRequires: gcc-c++ >= 5.0
|
|
|
|
%else
|
2016-05-04 13:54:37 +02:00
|
|
|
BuildRequires: gcc5-c++
|
2017-02-21 21:00:12 +01:00
|
|
|
%endif
|
2016-04-10 15:47:44 +02:00
|
|
|
BuildRequires: hicolor-icon-theme
|
2012-05-06 14:51:46 +02:00
|
|
|
BuildRequires: physfs-devel
|
|
|
|
BuildRequires: update-desktop-files
|
2017-02-21 21:00:12 +01:00
|
|
|
BuildRequires: pkgconfig(SDL2_image)
|
2016-04-10 15:47:44 +02:00
|
|
|
BuildRequires: pkgconfig(freealut)
|
|
|
|
BuildRequires: pkgconfig(gl)
|
|
|
|
BuildRequires: pkgconfig(glew)
|
|
|
|
BuildRequires: pkgconfig(glu)
|
|
|
|
BuildRequires: pkgconfig(openal)
|
2017-02-21 21:00:12 +01:00
|
|
|
BuildRequires: pkgconfig(sdl2)
|
2012-05-07 11:32:58 +02:00
|
|
|
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
2012-05-06 14:51:46 +02:00
|
|
|
|
|
|
|
%description
|
2016-08-28 10:43:04 +02:00
|
|
|
A 3D rally simulation with a physics engine for drifting, over 100 maps,
|
|
|
|
different terrain materials like dirt, asphalt, sand, ice etc. and various
|
|
|
|
weather, light and fog conditions. Most maps are equipped with spoken co-driver
|
|
|
|
notes and co-driver icons.
|
2012-05-06 14:51:46 +02:00
|
|
|
|
|
|
|
%prep
|
2016-04-10 15:47:44 +02:00
|
|
|
%setup -q
|
2016-08-28 10:43:04 +02:00
|
|
|
dos2unix doc/*.txt bin/*.defs
|
2017-02-21 21:00:12 +01:00
|
|
|
modified="$(sed -n '/^----/n;s/ - .*$//;p;q' "%{SOURCE99}")"
|
|
|
|
DATE="\"$(date -d "${modified}" "+%%b %%e %%Y")\""
|
|
|
|
TIME="\"$(date -d "${modified}" "+%%R")\""
|
|
|
|
sed -i "s/__DATE__/${DATE}/g;s/__TIME__/${TIME}/g" src/PEngine/app.cpp src/Trigger/menu.cpp
|
2012-05-06 14:51:46 +02:00
|
|
|
|
|
|
|
%build
|
2017-02-21 21:00:12 +01:00
|
|
|
%if %{?suse_version} <= 1320
|
|
|
|
export CXX=g++-5 CC=gcc-5
|
|
|
|
%endif
|
2016-04-10 15:47:44 +02:00
|
|
|
make --directory=src prefix=%{_prefix} exec_prefix=%{_prefix} bindir=%{_bindir}
|
2012-05-06 14:51:46 +02:00
|
|
|
|
|
|
|
%install
|
2016-04-10 15:47:44 +02:00
|
|
|
%make_install --directory=src prefix=%{_prefix} exec_prefix=%{_prefix} bindir=%{_bindir}
|
|
|
|
|
2016-08-28 10:43:04 +02:00
|
|
|
%suse_update_desktop_file -i %{name}
|
2012-05-06 14:51:46 +02:00
|
|
|
|
2016-04-10 15:47:44 +02:00
|
|
|
mkdir -p %{buildroot}%{_datadir}/icons/hicolor/scalable/apps/
|
|
|
|
ln -sf %{_datadir}/games/trigger-rally/icon/trigger-rally-icons.svg %{buildroot}%{_datadir}/icons/hicolor/scalable/apps/trigger-rally.svg
|
|
|
|
|
2016-08-28 10:43:04 +02:00
|
|
|
mkdir -p %{buildroot}%{_datadir}/appdata
|
|
|
|
install -Dm0644 %{S:2} %{buildroot}%{_datadir}/appdata/%{name}.appdata.xml
|
|
|
|
|
2016-04-10 15:47:44 +02:00
|
|
|
%fdupes %{buildroot}%{_datadir}
|
|
|
|
|
|
|
|
%post
|
|
|
|
%desktop_database_post
|
|
|
|
%icon_theme_cache_post
|
|
|
|
|
|
|
|
%postun
|
|
|
|
%desktop_database_postun
|
|
|
|
%icon_theme_cache_postun
|
|
|
|
|
2012-05-06 14:51:46 +02:00
|
|
|
%files
|
|
|
|
%defattr(-,root,root)
|
2016-04-10 15:47:44 +02:00
|
|
|
%{_bindir}/*
|
|
|
|
%{_datadir}/games/trigger-rally
|
|
|
|
%{_datadir}/applications/trigger-rally.desktop
|
|
|
|
%{_datadir}/icons/hicolor/scalable/apps/trigger-rally.svg
|
|
|
|
%{_datadir}/doc/trigger-rally/
|
2016-08-28 10:43:04 +02:00
|
|
|
%dir %{_datadir}/appdata/
|
|
|
|
%{_datadir}/appdata/%{name}.appdata.xml
|
2012-05-06 14:51:46 +02:00
|
|
|
|
|
|
|
%changelog
|