File rockdodger.spec of Package rockdodger

# spec file for package rockdodger
# Copyright (c) 2020 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

Name:           rockdodger
Version:        1.1.4
Release:        0
Summary:        Addictive rock-dodging greeblie-killing platform game
License:        GPL-2.0-or-later
BuildRequires:  fdupes
BuildRequires:  pkgconfig
BuildRequires:  update-desktop-files
BuildRequires:  pkgconfig(SDL_image)
BuildRequires:  pkgconfig(SDL_mixer)
BuildRequires:  pkgconfig(sdl)

Addictive rock-dodging greeblie-killing platform game.

Dodge the rocks for as long as possible until you die. Kill greeblies to
make the universe safe for non-greeblie life once again.

%setup -q

# Correct path and highscore
sed -i -e 's|usr/local|usr|;
           s|localstatedir =|#localstatedir =|
           s|$(localstatedir)/games|$(datarootdir)/$(PACKAGENAME)|' \
       Makefile data/Makefile
sed -i '/touch $(gamesdir)/,/chmod g+rw/s/^/#/' Makefile

make %{?_smp_mflags} CC="cc %{optflags}"


# install icon
install -Dm 0644 spacerocks.xpm %{buildroot}%{_datadir}/pixmaps/%{name}.xpm

# install Desktop file
install -Dm 0644 %{name}.desktop %{buildroot}%{_datadir}/applications/%{name}.desktop

%suse_update_desktop_file %{name}
%fdupes %{buildroot}%{_prefix}

%license COPYING
%attr(0755,root,root) %{_bindir}/%{name}

openSUSE Build Service is sponsored by