File zarch.spec of Package zarch

#
# spec file for package zarch (Version 0.92)
#
# Copyright (c) 2007 SUSE LINUX Products GmbH, Nuernberg, Germany.
# This file and all modifications and additions to the pristine
# package are under the same license as the package itself.
#
# Please submit bugfixes or comments via http://bugs.opensuse.org/
#

# norootforbuild

Name:           zarch
BuildRequires:  xdelta xorg-x11-devel
License:        Contact author
Group:          Amusements/Games/Action/Shoot
Provides:       libGL.so.3
Autoreqprov:    on
Version:        0.92
Release:        771
Summary:        A Game Known as "Virus" on the Commodore Amiga
URL:            http://thom.best.vwh.net/software.html#zarch
Source:         %{name}-%{version}.tar.bz2
Patch:          %{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
* Mon Mar 26 2007 - lmichnovic@suse.cz
- not stripping installed files
- not removing $BUILDROOT in install section
* Wed Jan 25 2006 - mls@suse.de
- converted neededforbuild to BuildRequires
* Wed Dec 14 2005 - ro@suse.de
- remove glzarch for now (unresolved dependency libMesaGLU.so.3)
* Thu Nov 10 2005 - lmichnovic@suse.cz
- changed glib2 to glib in needforbuild (xdelta is linked to libglib-1.2.so.0 in autobuild)
* Thu Oct 13 2005 - ro@suse.de
- added glib2 to nfb (for xdelta)
* Thu Sep 29 2005 - dmueller@suse.de
- add norootforbuild
* Fri Jul 05 2002 - ro@suse.de
- replace i386 by %%ix86
* Sat Apr 20 2002 - ro@suse.de
- fixed changelog
* Fri Apr 19 2002 - tcrhak@suse.cz
- patched to use libGL.so.1 instead of libGL.so.3
- moved staff to %%{_libdir}
* Fri Jan 11 2002 - ro@suse.de
- no subdirs in /usr/games
* Thu Nov 22 2001 - sndirsch@suse.de
- added glzarch to package (Bug #12283)
* Mon Nov 12 2001 - ro@suse.de
- no svgalib version
* Tue Oct 30 2001 - dan@suse.cz
- use libc6 version instead of libc5
* Fri Feb 09 2001 - pblaha@suse.cz
- needed for BFU user
- move zarch.x11 and zarch.svga to /usr/games/lib/zarch/
- for run is  scripts xzarch & szarch
* Tue Nov 28 2000 - pblaha@suse.cz
- create this package