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 http://bugs.opensuse.org/
#

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
Url:            http://thom.best.vwh.net/software.html#zarch
Source:         %{name}-%{version}.tar.bz2
Source1:        %{name}-gl-%{version}.delta
BuildRequires:  xdelta
BuildRequires:  xorg-x11-devel
ExclusiveArch:  %{ix86}
BuildRoot:      %{_tmppath}/%{name}-%{version}-build

%description
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.

%prep
%setup -q
xdelta patch %{SOURCE1}
mv glzarch.new glzarch

%build
./mkobj
cat >xzarch.sh <<EOF
#!/bin/sh
cd %{_libdir}/zarch
exec ./zarch.x11
EOF
cat >glzarch.sh <<EOF
#!/bin/sh
cd %{_libdir}/zarch
exec ./zarch.gl
EOF

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

%files
%defattr(-,root,root)
%doc  Changes.txt README.txt
%{_bindir}/xzarch
#%{_bindir}/glzarch
%{_libdir}/zarch

%changelog