Name: DiggerReloaded Version: 1.00 Release: 1%{?dist} Summary: Digger strategy game. Group: Games/Strategy License: GNU GPL URL: http://www.os2world.com/games Vendor: Andrey Vasilkin Obsoletes: DiggerReloaded < %{version}-%{release} Provides: DiggerReloaded = %{version}-%{release} BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) BuildArch: i686 %description Digger is a game originally created by Windmill software in 1983 and remastered by Andrew Jenner in 1998. Digger Reloaded is an open source version of the original Digger. The player is placed in an underground maze and can dig horizontal and vertical tunnels through it. At least one tunnel already exists at the start of play. At various points on the board are emeralds (usually in clusters) and bags of gold. Monsters (initially in the "nobbin" form) appear at the top right-hand corner. If earth is excavated from under a gold bag, then the bag will wobble for a few seconds and then drop; if it falls more than one row, it will break open after falling, releasing gold, which can be collected. Bags can be pushed left or right into vertical paths, with similar results. Falling bags will squash monsters, but they will also squash the digger. The digger has a weapon, which fires in a straight line, but takes several seconds to recharge (taking longer as the levels go higher). %install rm -rf $RPM_BUILD_ROOT mkdir -p $RPM_BUILD_ROOT/@unixroot/usr/bin mkdir -p $RPM_BUILD_ROOT/@unixroot/usr/share/doc/%{name}-%{version} mkdir -p $RPM_BUILD_ROOT/@unixroot/usr/share/licenses/%{name}-%{version} mkdir -p $RPM_BUILD_ROOT/@unixroot/home/.config/%{name} cp -p *.exe $RPM_BUILD_ROOT/@unixroot/usr/bin cp -p digger.txt $RPM_BUILD_ROOT/@unixroot/usr/share/doc/%{name}-%{version} cp -p readme.txt $RPM_BUILD_ROOT/@unixroot/usr/share/doc/%{name}-%{version} cp -p copyright.txt $RPM_BUILD_ROOT/@unixroot/usr/share/licenses/%{name}-%{version} cp -p digger.sco $RPM_BUILD_ROOT/@unixroot/home/.config/%{name} %files %{_bindir}/*.exe %doc digger.txt readme.txt %license copyright.txt ???????????/*.sco %post if [ "$1" -ge 1 ]; then # (upon update) %wps_object_delete_all fi %wps_object_create_begin DIGGERR_EXE:WPProgram|Digger Reloaded||EXENAME=((%{_bindir}/Digger.exe));STARTUPDIR=((home/.config/%{name})) %wps_object_create_end %postun if [ "$1" -eq 0 ]; then # (upon removal) %wps_object_delete_all fi