1
0
forked from pool/trigger-rally
trigger-rally/trigger-rally.spec

82 lines
2.5 KiB
RPMSpec
Raw Normal View History

#
# spec file for package trigger-rally
#
# Copyright (c) 2016 SUSE LINUX GmbH, Nuernberg, Germany.
#
# 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
Version: 0.6.3
Release: 0
Summary: Fast-paced open source rally racing game
License: GPL-2.0
Group: Amusements/Games/Action/Race
Url: http://trigger-rally.sourceforge.net/
Source0: http://downloads.sourceforge.net/project/trigger-rally/trigger-0.6.3/trigger-rally-%{version}.tar.gz
Source1: %{name}.desktop
# PATCH-FIX-OPENSUSE Fix compilation errors with C++5.
Patch1: ftbfs.patch
BuildRequires: fdupes
BuildRequires: gcc5-c++
BuildRequires: hicolor-icon-theme
BuildRequires: physfs-devel
BuildRequires: update-desktop-files
BuildRequires: pkgconfig(SDL_image)
BuildRequires: pkgconfig(freealut)
BuildRequires: pkgconfig(gl)
BuildRequires: pkgconfig(glew)
BuildRequires: pkgconfig(glu)
BuildRequires: pkgconfig(openal)
BuildRequires: pkgconfig(sdl)
BuildRoot: %{_tmppath}/%{name}-%{version}-build
%description
Trigger Rally is a fast-paced open source rally racing game.
%prep
%setup -q
%patch1 -p1
%build
CXX=g++-5 CC=gcc-5 \
make --directory=src prefix=%{_prefix} exec_prefix=%{_prefix} bindir=%{_bindir}
%install
%make_install --directory=src prefix=%{_prefix} exec_prefix=%{_prefix} bindir=%{_bindir}
%suse_update_desktop_file -i %{name} Game SportsGame
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
%files
%defattr(-,root,root)
%{_bindir}/*
%{_datadir}/games/trigger-rally
%{_datadir}/applications/trigger-rally.desktop
%{_datadir}/icons/hicolor/scalable/apps/trigger-rally.svg
%{_datadir}/doc/trigger-rally/
%changelog