| 1 |
Name: CriticalMass
|
| 2 |
Version: 1.0.2
|
| 3 |
Release: 7%{?dist}
|
| 4 |
Summary: SDL/OpenGL space shoot'em up game also known as critter
|
| 5 |
Group: Amusements/Games
|
| 6 |
License: GPLv2+
|
| 7 |
URL: http://criticalmass.sourceforge.net/critter.php
|
| 8 |
Source0: http://downloads.sourceforge.net/criticalmass/%{name}-%{version}.tar.bz2
|
| 9 |
Source1: %{name}.desktop
|
| 10 |
Patch0: CriticalMass-1.0.2-sys-curl.patch
|
| 11 |
Patch1: CriticalMass-1.0.2-sys-tinyxml.patch
|
| 12 |
Patch2: CriticalMass-1.0.2-gcc43.patch
|
| 13 |
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
|
| 14 |
BuildRequires: SDL_image-devel SDL_mixer-devel libpng-devel curl-devel
|
| 15 |
BuildRequires: tinyxml-devel desktop-file-utils
|
| 16 |
Requires: hicolor-icon-theme opengl-games-utils
|
| 17 |
# Also known as critter, so make "yum install critter" work
|
| 18 |
Provides: critter = %{version}-%{release}
|
| 19 |
|
| 20 |
%description
|
| 21 |
Critical Mass (aka Critter) is an SDL/OpenGL space shoot'em up game. Your
|
| 22 |
world has been infested by an aggressive army of space critters. Overrun and
|
| 23 |
unprepared, your government was unable to defend its precious resources. As
|
| 24 |
a last effort to recapture some of the "goodies", you have been placed into
|
| 25 |
a tiny spacecraft and sent after them.
|
| 26 |
|
| 27 |
|
| 28 |
%prep
|
| 29 |
%setup -q
|
| 30 |
%patch0 -p1
|
| 31 |
%patch1 -p1
|
| 32 |
%patch2 -p1
|
| 33 |
|
| 34 |
|
| 35 |
%build
|
| 36 |
%configure
|
| 37 |
# <sigh> ./configure doesn't properly pick up our CFLAGS
|
| 38 |
CFLAGS="$RPM_OPT_FLAGS -D_GNU_SOURCE=1 -D_REENTRANT -I/usr/include/SDL"
|
| 39 |
make %{?_smp_mflags} CFLAGS="$CFLAGS" CXXFLAGS="$CFLAGS -fno-exceptions"
|
| 40 |
|
| 41 |
|
| 42 |
%install
|
| 43 |
rm -rf $RPM_BUILD_ROOT
|
| 44 |
make install DESTDIR=$RPM_BUILD_ROOT
|
| 45 |
ln -s opengl-game-wrapper.sh $RPM_BUILD_ROOT%{_bindir}/critter-wrapper
|
| 46 |
|
| 47 |
# remove unwanted utility
|
| 48 |
rm $RPM_BUILD_ROOT%{_bindir}/Packer
|
| 49 |
|
| 50 |
# below is the desktop file and icon stuff.
|
| 51 |
mkdir -p $RPM_BUILD_ROOT%{_datadir}/applications
|
| 52 |
desktop-file-install --vendor fedora \
|
| 53 |
--dir $RPM_BUILD_ROOT%{_datadir}/applications \
|
| 54 |
%{SOURCE1}
|
| 55 |
mkdir -p $RPM_BUILD_ROOT%{_datadir}/icons/hicolor/48x48/apps
|
| 56 |
install -p -m 644 critter.png \
|
| 57 |
$RPM_BUILD_ROOT%{_datadir}/icons/hicolor/48x48/apps
|
| 58 |
|
| 59 |
|
| 60 |
%clean
|
| 61 |
rm -rf $RPM_BUILD_ROOT
|
| 62 |
|
| 63 |
|
| 64 |
%post
|
| 65 |
touch --no-create %{_datadir}/icons/hicolor || :
|
| 66 |
if [ -x %{_bindir}/gtk-update-icon-cache ]; then
|
| 67 |
%{_bindir}/gtk-update-icon-cache --quiet %{_datadir}/icons/hicolor || :
|
| 68 |
fi
|
| 69 |
|
| 70 |
%postun
|
| 71 |
touch --no-create %{_datadir}/icons/hicolor || :
|
| 72 |
if [ -x %{_bindir}/gtk-update-icon-cache ]; then
|
| 73 |
%{_bindir}/gtk-update-icon-cache --quiet %{_datadir}/icons/hicolor || :
|
| 74 |
fi
|
| 75 |
|
| 76 |
|
| 77 |
%files
|
| 78 |
%defattr(-,root,root,-)
|
| 79 |
%doc COPYING Readme.html TODO
|
| 80 |
%{_bindir}/critter*
|
| 81 |
%{_datadir}/Critical_Mass
|
| 82 |
%{_mandir}/man6/critter.6*
|
| 83 |
%{_datadir}/applications/fedora-%{name}.desktop
|
| 84 |
%{_datadir}/icons/hicolor/48x48/apps/critter.png
|
| 85 |
|
| 86 |
|
| 87 |
%changelog
|
| 88 |
* Fri Jul 24 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.0.2-7
|
| 89 |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_12_Mass_Rebuild
|
| 90 |
|
| 91 |
* Mon Feb 23 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.0.2-6
|
| 92 |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_11_Mass_Rebuild
|
| 93 |
|
| 94 |
* Thu Apr 3 2008 Hans de Goede <j.w.r.degoede@hhs.nl> 1.0.2-5
|
| 95 |
- Force proper use of RPM_OPT_FLAGS during build
|
| 96 |
|
| 97 |
* Tue Feb 19 2008 Fedora Release Engineering <rel-eng@fedoraproject.org> - 1.0.2-4
|
| 98 |
- Autorebuild for GCC 4.3
|
| 99 |
|
| 100 |
* Fri Jan 4 2008 Hans de Goede <j.w.r.degoede@hhs.nl> 1.0.2-3
|
| 101 |
- Fix build with gcc 4.3
|
| 102 |
|
| 103 |
* Sat Dec 1 2007 Hans de Goede <j.w.r.degoede@hhs.nl> 1.0.2-2
|
| 104 |
- Use system version of tinyxml
|
| 105 |
- Some other small specfile cleanups
|
| 106 |
- Use opengl-games-utils wrapper to show error dialog when DRI is missing
|
| 107 |
|
| 108 |
* Thu Nov 29 2007 Hans de Goede <j.w.r.degoede@hhs.nl> 1.0.2-1
|
| 109 |
- Initial Fedora Package
|