%define scummvmdir %{_datadir}/scummvm/ Name: drascula Version: 1.0 Release: %mkrel 3 Summary: Drascula: The Vampire Strikes Back - Adventure Game Group: Games/Adventure License: Freeware URL: http://wiki.scummvm.org/index.php/Drascula:_The_Vampire_Strikes_Back Source0: http://downloads.sourceforge.net/scummvm/%{name}-%{version}.zip Source1: http://downloads.sourceforge.net/scummvm/%{name}-int-1.1.zip Source2: http://downloads.sourceforge.net/scummvm/drascula-audio-2.0.zip Source3: http://github.com/scummvm/scummvm/raw/v1.4.0/dists/engine-data/drascula.dat BuildRequires: unzip BuildArch: noarch Requires: scummvm %description You play the role of John Hacker, a British estate agent, who travels to a small village of Transylvania in order to negotiate the sale of some ground of Gibraltar with the Count Drascula. But unfortunately Hacker is not aware of who is Drascula in reality: the most terrible vampire with just one idea on his mind: DOMINATING the World demonstrating that he is even more evil than his brother Vlad. %prep %setup -q -n %{name} -c %{name} unzip -oqqj %{SOURCE1} unzip -oqqj %{SOURCE2} %install install -d -m 755 %{buildroot}%{_gamesbindir} # startscript cat > %{buildroot}%{_gamesbindir}/%{name} <<'EOF' #!/bin/bash # Basic switch of language according to locale defined in Unix systems case "$LC_MESSAGES" in de* ) language="de" ;; es* ) language="es" ;; fr* ) language="fr" ;; it* ) language="it" ;; * ) language="en" ;; esac scummvm -f -n -m 128 -p %{scummvmdir}/%{name} --language=$language %{name} EOF chmod 755 %{buildroot}%{_gamesbindir}/%{name} mkdir -p %{buildroot}/%{scummvmdir}/%{name} install -p -m 644 Packet.001 PACKET.00? *.ogg %{buildroot}/%{scummvmdir}/%{name} install -p -m 644 %{SOURCE3} %{buildroot}/%{scummvmdir}/%{name} mkdir -p %{buildroot}%{_datadir}/applications cat > %{buildroot}%{_datadir}/applications/%{name}.desktop << EOF [Desktop Entry] Encoding=UTF-8 Name=Drascula: The Vampire Strikes Back Comment=%summary Exec=%{name} Icon=%name Terminal=false Type=Application StartupNotify=true Categories=Game;AdventureGame; EOF %files %doc readme.txt drascula.doc %{_gamesbindir}/%{name} %{scummvmdir}/%{name} %{_datadir}/applications/%{name}.desktop %changelog * Thu Oct 31 2013 tmb <tmb> 1.0-3.mga4 + Revision: 548358 - Mageia 4 rebuild * Fri Jan 11 2013 umeabot <umeabot> 1.0-2.mga3.nonfree + Revision: 349100 - Mass Rebuild - https://wiki.mageia.org/en/Feature:Mageia3MassRebuild + dams <dams> - clean specfile * Sun Nov 13 2011 zezinho <zezinho> 1.0-1.mga2.nonfree + Revision: 167067 - imported package drascula