Sophie

Sophie

distrib > Mandriva > 10.2 > x86_64 > by-pkgid > 7e2fd339cda0217b872ed4c40d7e2bea > files > 5

xtux-20030306-4mdk.src.rpm

%define name	xtux
%define version	20030306
%define release	4mdk

Summary:	A multiplayer arcade game featuring open-source mascots
Name:		%{name}
Version:	%{version}
Release:	%{release}
Epoch:		0
Group:		Games/Arcade
License:	GPL
URL:		http://xtux.sourceforge.net/
Source0:	http://downloads.sourceforge.net/%{name}/%{name}-src-%{version}.tar.bz2
Source1:	%{name}-16.png.bz2
Source2:	%{name}-32.png.bz2
Source3:	%{name}-48.png.bz2
BuildRequires:	xpm-devel
BuildRequires:	X11-devel
BuildRoot:	%{_tmppath}/%{name}-%{version}-root

%description
2005: Microsoft finally releases Windows2000. The few remaining in line
from midnight December 31, 1999 expecting Microsoft to deliver "on time"
were slightly annoyed, but otherwise the response was extremely
enthusiastic.

...

You must Battle through hoards of Evil Microsoft lusers, Certified Peons
and Bugs while collecting computer processors. Using these, construct a
massive Beowulf machine capable of cracking the security on Microsofts
secret database. Upload yourself into the internet, liberate friendly
Linux sites, then battle your way into microsoft.com destroying all you
can find. Only then can you turn your wrath towards your nemisis, the
evil lord Gates. 

%prep
%setup -n %{name}
bzcat %{SOURCE1} > %{name}-16.png
bzcat %{SOURCE2} > %{name}-32.png
bzcat %{SOURCE3} > %{name}-48.png
%__perl -p -i -e 's|./tux_serv|%{_gamesbindir}/tux_serv|;' src/client/menu.c

%build
%make CC="%__cc %optflags" DATADIR="%{_gamesdatadir}/%{name}"

%install
%__mkdir_p %{buildroot}%{_gamesbindir}
%__install -m 755 %{name} %{buildroot}%{_gamesbindir}
%__mkdir_p %{buildroot}%{_sbindir}
%__install -m 755 tux_serv %{buildroot}%{_gamesbindir}

%__mkdir_p %{buildroot}%{_gamesdatadir}/%{name}
%__cp -a data/* %{buildroot}%{_gamesdatadir}/%{name}

# icons
%__install -D -m 644 %{name}-48.png %{buildroot}%{_liconsdir}/%{name}.png
%__install -D -m 644 %{name}-32.png %{buildroot}%{_iconsdir}/%{name}.png
%__install -D -m 644 %{name}-16.png %{buildroot}%{_miconsdir}/%{name}.png

# menus
%__mkdir_p %{buildroot}%{_menudir}
%__cat > %{buildroot}%{_menudir}/%{name} << EOF
?package(%{name}): \
needs="x11" \
section="Amusement/Arcade" \
title="X-Tux" \
longtitle="X-Tux" \
command="%{_gamesbindir}/%{name}" \
icon="%{name}.png"
EOF

find %{buildroot}%{_gamesdatadir}/%{name}/images -type d -name ".xvpics" | xargs rm -rf

%clean
rm -rf %{buildroot}

%post
%{update_menus}
 
%postun
%{clean_menus}

%files
%defattr(0644,root,root,0755)
%doc AUTHORS CHANGELOG COPYING README README.GGZ doc/*
%attr(0755,root,root) %{_gamesbindir}/%{name}
%attr(0755,root,root) %{_gamesbindir}/tux_serv
%{_gamesdatadir}/%{name}
%{_menudir}/%{name}
%{_iconsdir}/%{name}.png
%{_miconsdir}/%{name}.png
%{_liconsdir}/%{name}.png

%changelog
* Sat Dec 04 2004 Franck Villaume <fvill@freesurf.fr> 0:20030306-4mdk
- fix buildrequires

* Sat Oct 23 2004 David Walluck <walluck@mandrake.org> 0:20030306-3mdk
- rebuild

* Thu Apr 17 2003 David Walluck <david@anti-microsoft.org> 0:20030306-2plf
- really update description
- update summary

* Thu Apr 17 2003 David Walluck <david@anti-microsoft.org> 0:20030306-1plf
- 20030306
- add epoch
- add menu icons and update menus
- add description
- fix path to tux_serv when launching through the game's menu

* Sat Feb 08 2003 David Walluck <david@anti-microsoft.org> 20030207-1plf
- 20030207

* Thu Apr 25 2002 David Walluck <david@anti-microsoft.org> 20010601-2plf 
- cleanup

* Mon Apr 22 2002 David Walluck <david@anti-microsoft.org> 20010601-1plf
- release