File crack-attack.spec of Package crack-attack
#
# spec file for package crack-attack (Version 1.1.14)
#
# 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: crack-attack
BuildRequires: Mesa-devel SDL_mixer-devel freeglut-devel gcc-c++ gtk2-devel libdrm-devel update-desktop-files
License: GPL v2 or later
Group: Amusements/Games/Action/Other
AutoReqProv: on
Version: 1.1.14
Release: 124
Provides: Attack
Obsoletes: Attack
Summary: Clone of the Nintendo Classic 'Tetris Attack'
Url: http://www.nongnu.org/crack-attack/
Source0: %name-%version.tar.bz2
Source1: %name.desktop
Patch: %name-%version-glutInit.diff
Patch1: %{name}-%{version}_missing-includes.patch
BuildRoot: %{_tmppath}/%{name}-%{version}-build
%description
A free OpenGL Linux game based on the Super Nintendo classic Tetris
Attack.
Authors:
--------
Daniel Nelson <nelson@aluminumangel.org>
R. Andrew Sayman <lorien420@myrealbox.com>
%prep
%setup -q -n %name-%version
%patch
%patch1
%build
%{?suse_update_config:%{suse_update_config -f}}
autoreconf -f -i
./configure \
--prefix=%_prefix \
--bindir=%_prefix/games \
--mandir=%_mandir \
--datadir=%_datadir/games \
--enable-sound=yes
make %{?jobs:-j%jobs} CXXFLAGS="$RPM_OPT_FLAGS" CFLAGS="$RPM_OPT_FLAGS"
%install
make "DESTDIR=$RPM_BUILD_ROOT" install
mkdir $RPM_BUILD_ROOT/usr/share/pixmaps
install -m 644 data/crack-attack.xpm $RPM_BUILD_ROOT/usr/share/pixmaps/crack-attack.xpm
%suse_update_desktop_file -i %name Game ArcadeGame
%clean
rm -rf $RPM_BUILD_ROOT
%files
%defattr(-,root,root)
%doc AUTHORS COPYING COPYRIGHT ChangeLog doc/*.{html,jpg,xpm}
%doc %_mandir/man6/crack-attack.6.gz
%_prefix/games/crack-attack
%_datadir/games/crack-attack/
/usr/share/applications/%name.desktop
/usr/share/pixmaps/%name.xpm
%changelog
* Mon Oct 15 2007 - pgajdos@suse.cz
- added missing includes
* missing_includes.patch
* Thu Jan 25 2007 - anicka@suse.cz
- build all files with $RPM_OPT_FLAGS
* Tue Sep 12 2006 - anicka@suse.cz
- enable sound support
* Mon Jan 30 2006 - ro@suse.de
- added gcc-c++ to BuildRequires
* Wed Jan 25 2006 - mls@suse.de
- converted neededforbuild to BuildRequires
* Fri Sep 16 2005 - anicka@suse.cz
- package desktop icon
* Mon Aug 29 2005 - pmladek@suse.cz
- added missing glutInit call, so the game can be started again; thanks to
abauer@suse.de for patch [#113074]
* Wed Jul 20 2005 - pmladek@suse.cz
- updated to version 1.1.14:
* totally redesigned GUI
* bumped the networking version to 1.1.14; essentially, the compatibility
has been messed up
* fixed stones hanging in mid-air
* added a command-line switch to change the resolution --res
* added sound and music patches (currently unsupported)
- removed obsolete patch, which had fixed compiler warnings and errors
- enabled parallel build
- packaged COPYRIGHT
* Thu Apr 14 2005 - mcihar@suse.cz
- update to 1.1.12-r1
- drop second desktop file as game now has configuration window
* Thu Jan 06 2005 - mcihar@suse.cz
- fix path in desktop files (bug #49626)
* Mon Mar 01 2004 - mcihar@suse.cz
- update to 1.1.10
* Sat Jan 10 2004 - adrian@suse.de
- build as user
* Tue Oct 14 2003 - mcihar@suse.cz
- updated to 1.1.9:
- Removed uses of deprecated ostrstream.
- Updated old C-style header file names.
- removed obsolete patches
- moved to /usr/games
* Tue Aug 12 2003 - mcihar@suse.cz
- added .desktop files
* Mon Aug 11 2003 - mcihar@suse.cz
- use autoreconf
* Mon Nov 18 2002 - mcihar@suse.cz
- fixed compilation warnings (gcc 3.2) and errors (gcc 3.3)
* Tue Oct 22 2002 - ro@suse.de
- make it build with mesa-4.0.4
* Fri Jun 07 2002 - mcihar@suse.cz
- updated to version 1.1.8
* Turned off lightmap texturing when rendering waking garbage, which caused
waking garbage to be dark under certain drivers.
* Changed the point system of solo play to a more fun and intuitive algorithm.
* Modified the distribution of special blocks in X-treme mode.
* Added a status bar which displays how close the player is to losing.
* Reduced network load by reducing garbage queue length and communication
frequency.
* Added workaround to GLUT bug which caused a crash when the Del-key was
pressed after the game in solo play (thanks to Stephen Thorne).
* Added a low resolution graphics mode (thanks to Stephen Thorne).
* Improved the window size algorithm and the socket closing procedures.
* Modified the idle callback's behavior when behind in time steps.
* Tue Jan 15 2002 - ro@suse.de
- added provides and obsoletes for old package name
* Tue Jan 15 2002 - cihlar@suse.cz
- renamed Attack -> crack-attack
- update to version 1.1.3
* Mon Nov 19 2001 - cihlar@suse.cz
- initial version 20011102 by the date of Makefile