File moon-buggy.spec of Package moon-buggy

# norootforbuild

Name:         moon-buggy
URL:          https://www.seehuhn.de/pages/moon-buggy.html
Version:      1.0
Release:      0
AutoReqProv:  on
BuildRequires: ncurses-devel autoconf
Group:        Amusements/Games/Action/Arcade
Source:       moon-buggy-%{version}.tar.bz2
Patch1:        highscore.diff
BuildRoot:    %{_tmppath}/%{name}-%{version}-build
Summary:      Console based arcade game
License:      GPL-2.0

%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!


Authors:
--------
Jochen Voss <voss@seehuhn.de>

%prep
%setup
%patch -P 1

%build
autoconf
CFLAGS="$RPM_OPT_FLAGS -std=gnu99" ./configure --prefix=/usr --infodir=%{_infodir} \
                                --mandir=%{_mandir} \
                                --with-socket-dir='(eff_uid ? "/var/run/uscreens" : "/var/run/screens")' \
                                --with-sys-screenrc=/etc/screenrc \
                                --with-pty-group=5 \
                                --enable-locale \
                                --enable-telnet \
                                --enable-colors256 \
                                --verbose
make

%install
make install DESTDIR=$RPM_BUILD_ROOT

%clean
[ "$RPM_BUILD_ROOT" != "" ] && [ -d $RPM_BUILD_ROOT ] && rm -rf $RPM_BUILD_ROOT;

%post
%install_info --info-dir=%{_infodir} %{_infodir}/%{name}.info.gz

%postun
%install_info_delete --info-dir=%{_infodir} %{_infodir}/%{name}.info.gz

%files
%defattr (-,root,root)
%doc README THANKS TODO
/usr/bin/moon-buggy
%doc %{_infodir}/moon-buggy.info.gz
%doc %{_mandir}/man6/moon-buggy.6.gz
%if 0%{?fedora_version}
/usr/share/info/dir
%endif

%changelog -n partimage
* Thu Feb 23 2006 - cwh@suse.de
- initial release
openSUSE Build Service is sponsored by