File freenukum.spec of Package freenukum
#
# spec file for package freenukum
#
# Copyright (c) 2018, Martin Hauke <mardnh@gmx.de>
#
# 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: freenukum
Version: 0.2.10
Release: 0
Summary: Clone of the original Duke Nukum 1 Jump'n Run game
License: GPL-3.0-or-later
Group: Amusements/Games/Action/Arcade
URL: https://launchpad.net/freenukum/
Source: https://launchpad.net/freenukum/trunk/0.2/+download/%{name}-%{version}.tar.gz
Patch0: freenukum-fix-build.patch
BuildRequires: autoconf
BuildRequires: automake
BuildRequires: hicolor-icon-theme
BuildRequires: pkgconfig
BuildRequires: update-desktop-files
BuildRequires: pkgconfig(SDL_ttf)
BuildRequires: pkgconfig(sdl)
%description
The Freenukum Jump'n Run game is a clone of the old EGA graphics based
2D game Duke Nukem.
You need the original Duke Nukem level and graphics files to play the
game.
%prep
%setup -q
%patch0 -p1
rm -f configure Makefile.in src/Makefile.in
%build
autoreconf -fiv
%configure --enable-sdl-ttf=yes
make %{?_smp_mflags}
%install
%make_install
%suse_update_desktop_file -c %{name} %{name} "Clone of the original Duke Nukum 1 Jump'n Run game" %{name} %{name} Game ArcadeGame
%if 0%{?suse_version} < 1330
%post
%desktop_database_post
%icon_theme_cache_post
%postun
%desktop_database_postun
%icon_theme_cache_postun
%endif
%files
%doc AUTHORS README
%license COPYING
%{_bindir}/%{name}
%{_datadir}/applications/%{name}.desktop
%{_mandir}/man6/%{name}.6%{?ext_man}
%{_datadir}/icons/hicolor/scalable/apps/%{name}.svg
%changelog