Name: dosbox Version: 0.74 Release: 1 Summary: x86/DOS emulator with sound and graphics Group: Applications/Emulators License: GPLv2+ URL: http://dosbox.sf.net Source0: http://dl.sourceforge.net/%{name}/%{name}-%{version}.tar.gz Source1: %{name}-wrapper.sh Source2: %{name}.desktop Source3: %{name}.png Patch0: %{name}-%{version}-aix.patch BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root BuildRequires: gcc >= 4.2.3-2 BuildRequires: gcc-c++ >= 4.2.3-2 BuildRequires: libstdc++-devel >= 4.2.3-2 BuildRequires: libpng-devel >= 1.2.40 BuildRequires: SDL-devel >= 1.2.14-2 BuildRequires: SDL_net-devel >= 1.2.7 BuildRequires: zlib-devel >= 1.2.3 Requires: libgcc >= 4.2.3-2 Requires: libstdc++ >= 4.2.3-2 Requires: libpng >= 1.2.40 Requires: SDL >= 1.2.14-2 Requires: SDL_net >= 1.2.7 Requires: zlib >= 1.2.3 %description DOSBox is a DOS-emulator using SDL for easy portability to different platforms. DOSBox has already been ported to several different platforms, such as Windows, BeOS, Linux, Mac OS X... DOSBox emulates a 286/386 realmode CPU, Directory FileSystem/XMS/EMS, a SoundBlaster card for excellent sound compatibility with older games... You can "re-live" the good old days with the help of DOSBox, it can run plenty of the old classics that don't run on your new computer! %prep %setup -q %patch0 %build # we need to use GCC here as XLC/C++ produces a not properly working binary export CC="gcc -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -D_LARGE_FILES" export CFLAGS="-DSYSV -D_AIX -D_AIX32 -D_AIX41 -D_AIX43 -D_AIX51 -D_ALL_SOURCE -DFUNCPROTO=15 -O -I/opt/freeware/include" export CXX=g++ export CXXFLAGS=${CFLAGS} export LD=ld export LDFLAGS="-L/opt/freeware/lib -Wl,-blibpath:/opt/freeware/lib:/usr/lib:/lib -Wl,-bmaxdata:0x80000000" ./configure \ --prefix=%{_prefix} \ --mandir=%{_mandir} \ --enable-core-inline make %{?_smp_mflags} %install [ "${RPM_BUILD_ROOT}" != "/" ] && rm -rf ${RPM_BUILD_ROOT} make install DESTDIR=${RPM_BUILD_ROOT} mv -f ${RPM_BUILD_ROOT}%{_bindir}/%{name} ${RPM_BUILD_ROOT}%{_bindir}/%{name}.bin cp %{SOURCE1} ${RPM_BUILD_ROOT}%{_bindir}/%{name} chmod 0755 ${RPM_BUILD_ROOT}%{_bindir}/* /usr/bin/strip ${RPM_BUILD_ROOT}%{_bindir}/* || : mkdir -p ${RPM_BUILD_ROOT}/etc/X11/applnk/Applications cp %{SOURCE2} ${RPM_BUILD_ROOT}/etc/X11/applnk/Applications/ chmod 0644 ${RPM_BUILD_ROOT}/etc/X11/applnk/Applications/* mkdir -p ${RPM_BUILD_ROOT}%{_datadir}/pixmaps cp %{SOURCE3} ${RPM_BUILD_ROOT}%{_datadir}/pixmaps/ chmod 0644 ${RPM_BUILD_ROOT}%{_datadir}/pixmaps/* cd ${RPM_BUILD_ROOT} mkdir -p usr/bin cd usr/bin ln -s ../..%{_bindir}/* . %clean [ "${RPM_BUILD_ROOT}" != "/" ] && rm -rf ${RPM_BUILD_ROOT} %files %defattr(-,root,system,-) %doc AUTHORS ChangeLog COPYING NEWS README THANKS %{_bindir}/* %{_mandir}/man1/* %{_datadir}/pixmaps/%{name}.png %attr(0644,root,system) /etc/X11/applnk/Applications/%{name}.desktop /usr/bin/%{name} %changelog * Wed May 26 2010 Michael Perzl - 0.74-1 - first version for AIX V5.1 and higher