File zarch.spec of Package zarch

#
# spec file for package zarch (Version 0.92)
#
# Copyright (c) 2009 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/
#

# norootforbuild


Name:           zarch
BuildRequires:  xdelta xorg-x11-devel
License:        PERMISSIVE-OSI-COMPLIANT
Group:          Amusements/Games/Action/Shoot
Provides:       libGL.so.3
AutoReqProv:    on
Version:        0.92
Release:        921
Summary:        A Game Known as "Virus" on the Commodore Amiga
Url:            http://thom.best.vwh.net/software.html#zarch
Source:         %{name}-%{version}.tar.bz2
Patch0:         %{name}-gl-%{version}.delta
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.



Authors:
--------
    Thom van Os <thom@vanos.com>

%prep
%setup 
xdelta patch %{P:0}
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 $RPM_BUILD_ROOT/usr/games/
install -d $RPM_BUILD_ROOT%{_libdir}/zarch
install  xzarch  $RPM_BUILD_ROOT%{_libdir}/zarch/zarch.x11
#install -s glzarch  $RPM_BUILD_ROOT%{_libdir}/zarch/zarch.gl
install -m 644 *.raw $RPM_BUILD_ROOT%{_libdir}/zarch
install  world.obj $RPM_BUILD_ROOT%{_libdir}/zarch
install  sndsrv $RPM_BUILD_ROOT%{_libdir}/zarch
install  xzarch.sh  $RPM_BUILD_ROOT/usr/games/xzarch
#install -s glzarch.sh  $RPM_BUILD_ROOT/usr/games/glzarch

%clean
rm -rf $BUILD_ROOT

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

%changelog
openSUSE Build Service is sponsored by