2012-05-06 14:51:46 +02:00
|
|
|
#
|
|
|
|
# spec file for package trigger-rally
|
|
|
|
#
|
2016-04-10 15:47:44 +02:00
|
|
|
# Copyright (c) 2016 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
|
2016-04-10 15:47:44 +02:00
|
|
|
Version: 0.6.3
|
2012-05-06 14:51:46 +02:00
|
|
|
Release: 0
|
2012-05-07 11:32:58 +02:00
|
|
|
Summary: Fast-paced open source 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/
|
|
|
|
Source0: http://downloads.sourceforge.net/project/trigger-rally/trigger-0.6.3/trigger-rally-%{version}.tar.gz
|
2012-05-06 14:51:46 +02:00
|
|
|
Source1: %{name}.desktop
|
2016-04-10 15:47:44 +02:00
|
|
|
# PATCH-FIX-OPENSUSE Fix compilation errors with C++5.
|
|
|
|
Patch1: ftbfs.patch
|
|
|
|
BuildRequires: fdupes
|
2016-05-04 13:54:37 +02:00
|
|
|
BuildRequires: gcc5-c++
|
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
|
2016-04-10 15:47:44 +02:00
|
|
|
BuildRequires: pkgconfig(SDL_image)
|
|
|
|
BuildRequires: pkgconfig(freealut)
|
|
|
|
BuildRequires: pkgconfig(gl)
|
|
|
|
BuildRequires: pkgconfig(glew)
|
|
|
|
BuildRequires: pkgconfig(glu)
|
|
|
|
BuildRequires: pkgconfig(openal)
|
|
|
|
BuildRequires: pkgconfig(sdl)
|
2012-05-07 11:32:58 +02:00
|
|
|
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
2012-05-06 14:51:46 +02:00
|
|
|
|
|
|
|
%description
|
2016-04-10 15:47:44 +02:00
|
|
|
Trigger Rally is a fast-paced open source rally racing game.
|
2012-05-06 14:51:46 +02:00
|
|
|
|
|
|
|
%prep
|
2016-04-10 15:47:44 +02:00
|
|
|
%setup -q
|
|
|
|
%patch1 -p1
|
2012-05-06 14:51:46 +02:00
|
|
|
|
|
|
|
%build
|
2016-05-04 13:54:37 +02:00
|
|
|
CXX=g++-5 CC=gcc-5 \
|
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}
|
|
|
|
|
2012-05-06 14:51:46 +02:00
|
|
|
%suse_update_desktop_file -i %{name} Game SportsGame
|
|
|
|
|
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
|
|
|
|
|
|
|
|
%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/
|
2012-05-06 14:51:46 +02:00
|
|
|
|
|
|
|
%changelog
|