File trophy.spec of Package trophy

#
# spec file for package trophy
#
# Copyright (c) 2025 SUSE LLC
#
# 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 https://bugs.opensuse.org/
#


Name:           trophy
Version:        2.0.4
Release:        0
Summary:        2D Car Racing Action Game
License:        GPL-2.0-only
Group:          Amusements/Games/Action/Race
URL:            http://trophy.sourceforge.net/
Source0:        https://downloads.sourceforge.net/%{name}/%{name}-%{version}.tar.gz
BuildRequires:  gcc-c++
BuildRequires:  hicolor-icon-theme
BuildRequires:  pkgconfig(clanCore-1.0)
BuildRequires:  pkgconfig(x11)
BuildRequires:  pkgconfig(xproto)

%description
TROPHY is a car racing game with some special features like shooting
and dropping bombs.

%prep
%setup -q

%build
export LDFLAGS=-L%{_libdir}/ClanLib-1.0
export CXXFLAGS="%{optflags} -Wno-template-body"
%configure
%make_build

%install
%make_install

# Fix icon installation
mkdir -p %{buildroot}%{_datadir}/pixmaps
mv %{buildroot}%{_datadir}/icons/trophy.png %{buildroot}%{_datadir}/pixmaps

%files
%license COPYING
%doc AUTHORS ChangeLog README TODO
%{_bindir}/trophy
%{_datadir}/trophy/
%{_datadir}/pixmaps/trophy.png
%{_mandir}/man6/trophy.6%{?ext_man}
%{_datadir}/applications/trophy.desktop

%changelog
openSUSE Build Service is sponsored by