%define beta %nil %define date 20061001 Name: sarien Version: 0.8.0 %if "%beta" == "" %if "%date" == "" Release: 1ark Source: %name-%version.tar.lz %else Release: 0.%date.1ark Source: %name-%date.tar.lz %endif %else %if "%date" == "" Release: 0.%beta.1ark Source: %name-%version%beta.tar.lz %else Release: 0.%beta.0.%date.1ark Source: %name-%date.tar.lz %endif %endif Summary: AGI Emulator, allowing you to play old Sierra games on Linux URL: http://sarien.sf.net/ License: GPL Group: Applications/Emulators BuildRoot: %{_tmppath}/%{name}-root BuildRequires: alsa-lib-devel SDL-devel %description %name emulates Sierra's AGI (Adventure Game Interpreter) and allows you to play many old games, such as Space Quest 1 (original version) Space Quest 2 Police Quest 1 King's Quest 1 King's Quest 2 King's Quest 3 on Linux (assuming you have the data files). %prep %if "%date" == "" %setup -q -n %name-%version%beta %else %setup -q -n %name %endif autoconf %configure --with-sdl --with-alsa %build make %?_smp_mflags %install rm -rf $RPM_BUILD_ROOT install -D -m755 bin/sarien $RPM_BUILD_ROOT%_bindir/sarien install -D -m644 etc/sarien.cfg $RPM_BUILD_ROOT%_sysconfdir/sarien.conf %files %defattr(-,root,root) %_bindir/sarien %config %_sysconfdir/sarien.conf %clean rm -rf $RPM_BUILD_ROOT $RPM_BUILD_DIR/%{name}-%{version} %changelog * Sun Oct 01 2006 Bernhard Rosenkraenzer <bero@arklinux.org> 0.8.0-0.20061001.1ark - initial RPM