File zarch.spec of Package zarch

# spec file for package zarch
# Copyright (c) 2012 SUSE LINUX Products GmbH, Nuernberg, Germany.
# 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

Name:           zarch
Version:        0.92
Release:        0
Summary:        A Game Known as "Virus" on the Commodore Amiga
License:        SUSE-Permissive
Group:          Amusements/Games/Action/Shoot
Source:         %{name}-%{version}.tar.bz2
Source1:        %{name}-gl-%{version}.delta
BuildRequires:  xdelta
BuildRequires:  xorg-x11-devel
ExclusiveArch:  %{ix86}
BuildRoot:      %{_tmppath}/%{name}-%{version}-build

Zarch is the classic Zarch for the Acorn Archimedes. It was maybe
better known as "Virus" on the Commodore Amiga. Linux Zarch is one of
the very few freely available 3D graphics games for UNIX/Linux that
offer very decent performance without needing 3D hardware support.

Game play is still rather simple: fly around a randomly created world
and shoot the alien ships without destroying your homeworld. Your
armament includes a powerful cannon and heat seeking missiles.

%setup -q
xdelta patch %{SOURCE1}
mv glzarch

cat > <<EOF
cd %{_libdir}/zarch
exec ./zarch.x11
cat > <<EOF
cd %{_libdir}/zarch
exec ./

install -D -m 0755 xzarch  %{buildroot}%{_libdir}/zarch/zarch.x11
#install -D -m 0755 glzarch %{buildroot}%{_libdir}/zarch/
install -m 644 *.raw %{buildroot}%{_libdir}/zarch
install world.obj %{buildroot}%{_libdir}/zarch
install sndsrv %{buildroot}%{_libdir}/zarch
install -D -m 0755  %{buildroot}%{_bindir}/xzarch
#install -D -m 0755  %{buildroot}%{_bindir}/glzarch

%doc  Changes.txt README.txt