File moon-buggy.spec of Package moon-buggy
#
# spec file for package moon-buggy
#
# Copyright (c) 2023 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: moon-buggy
Version: 1.0
Release: 0
Summary: Console based arcade game
License: GPL-2.0-only
Group: Amusements/Games/Action/Arcade
URL: https://seehuhn.de/comp/moon-buggy.html
Source: moon-buggy-%{version}.tar.bz2
Patch0: highscore.diff
BuildRequires: autoconf
BuildRequires: ncurses-devel
%description
Moon-buggy is a simple character graphics game where you drive some
kind of car across the moon's surface. Unfortunately there are dangerous
craters there. Fortunately your car can jump over them!
%prep
%setup -q
%patch0
%build
autoconf
# FIXME: you should use the %%configure macro
CFLAGS="%{optflags}" ./configure --prefix=%{_prefix} --infodir=%{_infodir} \
--mandir=%{_mandir} \
--with-socket-dir='(eff_uid ? "%{_localstatedir}/run/uscreens" : "%{_localstatedir}/run/screens")' \
--with-sys-screenrc=%{_sysconfdir}/screenrc \
--with-pty-group=5 \
--enable-locale \
--enable-telnet \
--enable-colors256 \
--verbose
%make_build
%install
%make_install
%post
%install_info --info-dir=%{_infodir} %{_infodir}/%{name}.info.gz
%postun
%install_info_delete --info-dir=%{_infodir} %{_infodir}/%{name}.info.gz
%files
%doc README THANKS
%{_bindir}/moon-buggy
%{_infodir}/moon-buggy.info%{?ext_info}
%{_mandir}/man6/moon-buggy.6%{?ext_man}
%changelog -n partimage
* Thu Feb 23 2006 - cwh@suse.de
- initial release
%changelog