File gnuboy.spec of Package gnuboy

#
# spec file for package gnuboy (Version 1.0.3)
#
# Copyright (c) 2009 SUSE LINUX Products GmbH, Nuernberg, Germany.
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
# upon. The license for this file, and modifications and additions to the
# file, is the same license as for the pristine package itself (unless the
# license for the pristine package is not an Open Source License, in which
# case the license is the MIT License). An "Open Source License" is a
# license that conforms to the Open Source Definition (Version 1.9)
# published by the Open Source Initiative.

# Please submit bugfixes or comments via http://bugs.opensuse.org/
#

# norootforbuild


Name:           gnuboy
BuildRequires:  SDL-devel xorg-x11
Url:            http://gnuboy.unix-fu.org/
License:        GPL v2 or later
Group:          System/Emulators/Other
#Requires:     xforms
AutoReqProv:    on
Version:        1.0.3
Release:        1060
Summary:        Game Boy Color Emulator
Source:         gnuboy-%{version}.tar.bz2
Patch:          gnuboy-implicit_decl.patch
Patch1:         gnuboy-1.0.3.dif
BuildRoot:      %{_tmppath}/%{name}-%{version}-build

%description
gnuboy emulates the Color GameBoy handheld console in portable C with
interfaces for X11, Linux fbcon and svgalib, SDL, DOS, and Windows,
with other ports planned in the future. Compatibility with ROMs tested
is around 99 percent, and all major hardware features except SGB
extensions are supported. With the optional optimized i386 assembly
code, gnuboy can run at the full 60 FPS even on Pentium/75s and below.



Authors:
--------
    Gilgamesh <gnuboy@starfox.org>
    Laguna
    Damian M Gryski
    Ralf Hoffmann
    David Lau
    Mattias Wadman
    Matthew Conte
    Markus F.X.J. Oberhumer
    Dave Kiddell
    Magnus Damm

%prep
%setup
%patch
%patch1

%build
CFLAGS="$RPM_OPT_FLAGS" ./configure --prefix=/usr \
	--disable-asm --enable-optimize=full --disable-arch
make LDFLAGS=

%install
mkdir -p $RPM_BUILD_ROOT/usr/bin $RPM_BUILD_ROOT/usr/X11R6/bin
make bindir=$RPM_BUILD_ROOT/usr/bin install

%clean
rm -rf $RPM_BUILD_ROOT

%files
%defattr(-,root,root)
%doc COPYING INSTALL README docs/*
/usr/bin/*

%changelog
* Tue Dec 12 2006 wengel@suse.de
- binaries moved from /usr/X11R6/bin/ to /usr/bin/
* Mon May 22 2006 schwab@suse.de
- Don't strip binaries.
* Wed Jan 25 2006 mls@suse.de
- converted neededforbuild to BuildRequires
* Sat Nov 05 2005 kukuk@suse.de
- fix to compile with new glibc
* Fri Sep 23 2005 ro@suse.de
- fix implicit declarations
* Wed May 04 2005 uli@suse.de
- this fix does not help (binutils issue); disabled assembler CPU
  core; whatever improvement it may bring is unlikely to be worth
  the hassle: xgnuboy with the C core causes only about 2-3%% CPU
  load on my workstation...
* Wed May 04 2005 ro@suse.de
- make it build with gcc-4
* Sat Jan 10 2004 adrian@suse.de
- add %%defattr
* Tue May 27 2003 coolo@suse.de
- use BuildRoot
* Fri Jul 05 2002 kukuk@suse.de
- Use %%ix86 macro
* Tue Jan 29 2002 uli@suse.de
- update -> 1.0.3 (increased compatibility, support for gzipped
  ROMs, small fixes)
* Fri Dec 07 2001 uli@suse.de
- update -> 1.0.2 (fixes, most of them related to sound emulation)
* Mon Nov 12 2001 ro@suse.de
- removed svgalib
* Wed Aug 08 2001 ro@suse.de
- changed neededforbuild <kdelibs kdelibs-devel> to <kdelibs-artsd>
* Wed Aug 08 2001 ro@suse.de
- changed neededforbuild <sdl> to <SDL>
- changed neededforbuild <sdl-devel> to <SDL-devel>
* Tue Jul 17 2001 uli@suse.de
- don't optimize for build host
* Wed Jul 11 2001 uli@suse.de
- update -> 1.0.1
* Mon Jul 02 2001 uli@suse.de
- update -> 1.0.0
* Tue Jun 26 2001 ro@suse.de
- added kdelibs for artsd needed by sdl
* Tue Apr 10 2001 uli@suse.de
- update -> 0.9.13
* Sat Apr 07 2001 kukuk@suse.de
- Don't optimize for build host
* Fri Apr 06 2001 uli@suse.de
- initial package
openSUSE Build Service is sponsored by