Name: xpired Summary: xpired - a game in the fashion of Boulder Dash or Sokoban Copyright: GPL Group: Amusements/Games/Logic Version: 1.2 Release: 0.mv.0.SuSE9.2 Packager: Martin Väth Source0: %{name}-%{version}.tar.bz2 BuildRoot: %{_tmppath}/%{name}-%{version}-build Prefix: %{_prefix} Requires: SDL_gfx SDL_mixer SDL_image SDL BuildRequires: SDL_gfx-devel SDL_image-devel SDL-devel %description XPIRED is a game in the fashion of Boulder Dash or Sokoban %prep umask 022 test -n '%{buildroot}' || { echo "Must use buildroot" ; exit 1 ; } %if %{?fake:%fake}%{!?fake:0} %setup -T -D -c %else %setup -c test -d %{name}-%{version} && mv %{name}-%{version}/* . test -d %{name} && mv %{name}/* . %endif %build umask 022 cd "$RPM_BUILD_DIR"/%{name}-%{version} %if %{?fake:%fake}%{!?fake:0} %else make PREFIX='%{_prefix}' strip xpired xpiredit %endif %install umask 022 cd "$RPM_BUILD_DIR"/%{name}-%{version} test -n '%{buildroot}' test -d '%{buildroot}' && rm -rf '%{buildroot}' make PREFIX='%{buildroot}%{_prefix}' install %clean test -n '%{buildroot}' -a -d '%{buildroot}' && rm -rf '%{buildroot}' %files %defattr(-,root,root) %{_bindir}/* %{_datadir}/* %changelog * Wed Nov 26 2003 Martin Väth - minor compatibility improvements * Sat Nov 01 2003 Martin Väth - built from scratch