File dosbox.spec of Package dosbox
#
# spec file for package dosbox (Version 0.72)
#
# 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: dosbox
BuildRequires: Mesa-devel SDL-devel gcc-c++ libpng-devel update-desktop-files
%if 0%suse_version > 1020
BuildRequires: SDL_net-devel
%else
BuildRequires: SDL_net
%endif
Url: http://dosbox.sourceforge.net/
License: GPL v2 or later
Group: System/Emulators/PC
Version: 0.72
Release: 34
Summary: DOS Emulator Well-Suited for Playing Games
Source: dosbox-0.72.tar.gz
Source1: dosbox.desktop
Source2: dosbox.png
Patch: dosbox-0.71-manpage.diff
Patch1: dosbox-0.72-gcc4.3.diff
Patch2: dosbox-0.72-strncat.diff
BuildRoot: %{_tmppath}/%{name}-%{version}-build
%description
dosbox is a DOS emulator that, thanks to its good graphics and sound
emulation, is exceptionally well-suited for playing games. dosbox
features a built-in DOS operating system and transparent access to the
Linux file system and is therefore very easy to use.
Authors:
--------
Sjoerd v.d. Berg <harekiet@zophar.net>
Peter Veenstra <qbix79@users.sourceforge.net>
%prep
%setup
%patch -p1
%patch1 -p1
%patch2 -p1
%build
autoreconf -f -i
CFLAGS="%{optflags}" \
CXXFLAGS="%{optflags} -fno-strict-aliasing" \
./configure \
--prefix=%{_prefix} \
--infodir=%{_infodir} \
--mandir=%{_mandir}
make %{?jobs:-j%jobs}
%install
make DESTDIR=%{buildroot} install
# we copy the docu ourself
rm -rf %{buildroot}%{_datadir}/doc/dosbox
#
%suse_update_desktop_file -i %name Emulator
install -d -m 755 %{buildroot}%{_datadir}/pixmaps
install -m 644 %{SOURCE2} %{buildroot}%{_datadir}/pixmaps/dosbox.png
%clean
rm -rf %{buildroot}
%files
%defattr(-,root,root)
%doc AUTHORS COPYING ChangeLog NEWS README THANKS
%{_bindir}/dosbox
%{_mandir}/man?/*
%{_datadir}/applications/*
%{_datadir}/pixmaps/*
%changelog
* Tue Dec 04 2007 - lnussel@suse.de
- fix wrong use of strncat
* Mon Oct 15 2007 - lnussel@suse.de
- fix build with gcc 4.3
* Tue Aug 28 2007 - lnussel@suse.de
- new version 0.72
* Fixed unitialized variable in joystick. (Fixes crashes on Vista and
Mac OS X)
* Some bugfixes and speedups to the 64 bit recompiling core.
* Fixed sign flag on soundblaster dma transfers (Space Quest 6 intro)
* Fixed a bug in keyboard layout processing code and fixed certain
layouts.
* Fixed Dreamweb.
* Improved speed unlocking when running cycles=max.
* Fixed a crash related to the tab completion in the shell.
* Improved aspect correction code. Should now be like how a real monitor
handles it.
* Fixed a bug in the xms status report code. (Blake Stone 1.0 shareware)
* Added a lot more keyboard layouts.
* Fix crash related to changing the scaler before a screen was created.
* Hopefully fixed compilation on *bsd.
* Enabled auto cpu core selection for recompiling core as well.
* Made the used joystick selectable when 4axis is specified.
* Added some hints for inexperienced DOS users to the shell.
* Mon Jul 30 2007 - lnussel@suse.de
- new version 0.71
* Added a new recompiling cpu core which is easier to port!
* Added a x86_64 and a mipsel_32 recompiling core.
* Fixed hangups on certain platforms after long gameplay of
several games.
* Fix several joystick bugs.
* Improved cdrom support. (fixes for audio, iso and detection.)
* Improved SVGA and VESA. (detection and display)
* Fixed a few textmodes and improved ansi emulation a bit.
* Fixed pcspeaker and certain types of soundeffects.
* Added undocumented mousebackdoor.
* Made mount and imgmount a bit easier to use. (ioctl by default,
support for ~ and ~username, auto size guessing for images)
* Fix a few compilation problems on various hosts and a general
code cleanup.
* Several small fixes that improve compatibility.
* Fri May 25 2007 - lnussel@suse.de
- dont rm -rf %%buildroot in %%prep
* Mon Mar 05 2007 - lnussel@suse.de
- new version 0.70
* Speed up the dynamic cpu core (certain games get much faster).
* Added a dynamic fpu on x86 hosts.
* Improved the cycle guessing code (and make it default).
* Better and more configurable joystick support.
* Improved the image and fat drives.
* Added nullmodem emulation.
* Various win 3.x enhanchments (video/audio/ems/win32s).
* Improved CDROM detection and support.
* Speed up the screen drawing code.
* Added support for different keyboard layouts.
* Various fixes to the (C/E/V)GA emulation.
* Extended and improved all types of emulated memory. (umb/ems/xms)
* Dynamic core should work on Intel Macs.
* Various timer related fixes.
* Added a few more graphic scalers.
* Mon Feb 12 2007 - lnussel@suse.de
- fix overflow of a global variable reported by gcc
* Tue Jun 27 2006 - lnussel@suse.de
- fix use of uninitialized variables (#188290)
* Mon May 08 2006 - lnussel@suse.de
- new version 0.65
* 4/15/16/32bpp VESA mode support
* Lot's of fixes for better vga compatibility
* Improved CGA composite output
* Added video capturing to avi
* Improved screen updating for more speed
* PCjr machine mode added
* Speedup cpu cores and fix endian issues
* FPU core speedup with assembly
* Improved keyboard and bios handling
* Lockfree mouse mode added again
* Improved builtin dos with umbs and better fat support
* Added VCPI emulation and fixed some issues with ems
* Improved support for booter games
* Modem and IPX support improved for multiplayer
* Fri Jan 27 2006 - lnussel@suse.de
- add Mesa-devel, libpng-devel and gcc-c++ to BuildRequires
* Wed Jan 25 2006 - mls@suse.de
- converted neededforbuild to BuildRequires
* Tue Nov 29 2005 - lnussel@suse.de
- add -fno-strict-aliasing
- fix uninitialized variables
* Tue Oct 18 2005 - lnussel@suse.de
- fix build with gcc 4.1
* Sun Oct 02 2005 - stbinner@suse.de
- GenericName = short, Comment = verbose
* Fri Apr 22 2005 - lnussel@suse.de
- fix another build failure on x86_64
* Fri Apr 08 2005 - lnussel@suse.de
- fix build with gcc4
- add icon
* Mon Nov 29 2004 - lnussel@suse.de
- update to version 0.63
* Tue Oct 12 2004 - lnussel@suse.de
- update to version 0.62
* Tue Feb 17 2004 - lnussel@suse.de
- update to version 0.61
* Sat Jan 10 2004 - adrian@suse.de
- build as user
* Mon Sep 01 2003 - adrian@suse.de
- use Emulator Category
* Tue Aug 19 2003 - lnussel@suse.de
- new version 0.58
- use /etc/dosbox.conf or ~/.dosbox.conf as config file
- desktop file
* Tue May 27 2003 - coolo@suse.de
- use BuildRoot
* Fri Aug 02 2002 - uli@suse.de
- initial package