File CriticalMass.spec of Package CriticalMass

# Copyright (c) 2007 Hans de Goede <>
# Copyright (c) 2007-2008 oc2pus
# 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 to

# norootforbuild

Name:			CriticalMass
Version:		1.0.2
Release:		1
Summary:		SDL/OpenGL space shoot'em up game also known as critter
Group:			Amusements/Games/Action/Arcade
License:		GPL
Patch0:			%{name}-1.0.2-sys-curl.patch
Patch1:			%{name}-1.0.2-gcc43.patch
Patch2:			%{name}-1.0.2-tinyxml-gcc43.patch
BuildRoot:		%{_tmppath}/%{name}-%{version}-%{release}-root
BuildRequires:	curl-devel
BuildRequires:	gcc-c++
%if %suse_version <= 1120
BuildRequires:	libpng-devel
BuildRequires:	libpng12-compat-devel
BuildRequires:	Mesa-devel
BuildRequires:	libSDL_image-devel
BuildRequires:	libSDL_mixer-devel
BuildRequires:	update-desktop-files
# Also known as critter ...
Provides:		critter = %{version}-%{release}

Critical Mass (aka Critter) is an SDL/OpenGL space shoot'em up
game. Your world has been infested by an aggressive army of space
critters. Overrun and unprepared, your government was unable to
defend its precious resources. As a last effort to recapture some
of the 'goodies', you have been placed into a tiny spacecraft and
sent after them.

# %debug_package

%setup -q -n %{name}-%{version}
%patch0 -p1
%patch1 -p1
%patch2 -p1

%__make %{?jobs:-j%{jobs}}


# remove unwanted utility
%__rm %{buildroot}%{_bindir}/Packer

# icon
%__install -dm 755 %{buildroot}%{_datadir}/pixmaps
%__install -m 644 critter.png \

# menu
%__install -dm 755 %{buildroot}%{_datadir}/applications/
%__cat > %{name}.desktop << EOF
[Desktop Entry]
Name=Critical Mass
Comment=A space shoot'em up game also known as critter
%__install -m 644 %{name}.desktop \
%suse_update_desktop_file %{name} Game ArcadeGame

[ -d %{buildroot} -a "%{buildroot}" != "" ] && %__rm -rf  %{buildroot}

%doc COPYING Readme.html TODO
%dir %{_datadir}/Critical_Mass

* Fri Nov 30 2007 Toni Graffy <> -
- initial build 1.0.2 for packman based on fedora package
* Thu Nov 29 2007 Hans de Goede <> 1.0.2-1
- Initial Fedora Package