]> git.pld-linux.org Git - packages/dosbox.git/blobdiff - dosbox.spec
- obsolete
[packages/dosbox.git] / dosbox.spec
index 532d14e0c20d5b6589ee24e999b3d6b74f514b1c..7ec9bb8494fb9c487d11719acc504bbdf499661f 100644 (file)
@@ -1,31 +1,49 @@
+#
+# Conditional build:
+%bcond_without alsa    # without ALSA support for MIDI
+#
 Summary:       x86/DOS emulator with sound/graphics primarily for games
 Summary(pl):   Emulator x86/DOS z d¼wiêkiem/grafik± g³ównie dla gier
 Name:          dosbox
-Version:       0.58
+Version:       0.65
 Release:       1
 License:       GPL
 Group:         Applications/Emulators
-Source0:       http://dl.sf.net/%{name}/%{name}-%{version}.tar.gz
-# Source0-md5: 91c49a597134f35f899d32a8b253205b
+Source0:       http://dl.sourceforge.net/dosbox/%{name}-%{version}.tar.gz
+# Source0-md5: fef84c292c3aeae747368b9875c1575a
+Source1:       %{name}.desktop
+Source2:       %{name}.png
+Source3:       %{name}.conf
+URL:           http://dosbox.sourceforge.net/
+BuildRequires: SDL_net-devel
+BuildRequires: SDL_sound-devel
+%{?with_alsa:BuildRequires:    alsa-lib-devel >= 0.9.0}
+BuildRequires: autoconf
+BuildRequires: automake
 BuildRequires: libpng-devel
+BuildRequires: libstdc++-devel
 %{?debug:BuildRequires:        ncurses-devel}
-BuildRequires: SDL-devel
 BuildRoot:     %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
 
+%define                specflags       -fmerge-all-constants -ffast-math
+
 %description
-DOSBox emulates a 286/386 realmode CPU, Directory FileSystem/XMS/EMS,
-a SoundBlaster card for excellent sound compatibility with older
-games...
+DOSBox emulates a 286/386 realmode/protected mode CPU, Directory
+FileSystem/XMS/EMS, Tandy/Hercules/CGA/EGA/VGA/VESA graphics, a
+SoundBlaster/Gravis Ultra Sound 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!
 
 %description -l pl
-DOSBox emuluje tryb rzeczywisty procesora 286/386, system plików z
-katalogami, pamiêæ XMS/EMS oraz kartê SoundBlaster w celu zapewnienia
-znakomitej kompatybilno¶ci ze starymi grami.
+DOSBox emuluje tryb rzeczywisty/chroniony procesora 286/386, system
+plików z katalogami, pamiêæ XMS/EMS, karty graficzne
+Tandy/Hercules/CGA/EGA/VGA/VESA oraz karty muzyczne
+SoundBlaster/Gravis Ultra Sound w celu zapewnienia znakomitej
+kompatybilno¶ci ze starymi grami.
 
-Stare wspomnienia od¿yj± z pomoc± DOSBoxa. Dziêki niemu mo¿na
+Stare wspomnienia od¿yj± z pomoc± DOSBoksa. Dziêki niemu mo¿na
 uruchomiæ mnóstwo klasyków, które nie odpalaj± siê na nowych
 komputerach.
 
@@ -33,6 +51,16 @@ komputerach.
 %setup -q
 
 %build
+# kill AM_PATH_SDL and AM_PATH_ALSA, leave only AH_{TOP,BOTTOM}
+tail -n +306 acinclude.m4 > acinclude.m4.tmp
+mv -f acinclude.m4.tmp acinclude.m4
+%if !%{with alsa}
+echo 'AC_DEFUN([AM_PATH_ALSA], [$3])' >> acinclude.m4
+%endif
+%{__aclocal}
+%{__autoconf}
+%{__autoheader}
+%{__automake}
 %configure \
        --enable-shots \
        %{?debug:--enable-debug}
@@ -41,13 +69,22 @@ komputerach.
 
 %install
 rm -rf $RPM_BUILD_ROOT
-%{__make} install DESTDIR=$RPM_BUILD_ROOT
+install -d $RPM_BUILD_ROOT{%{_desktopdir},%{_pixmapsdir}}
+
+%{__make} install \
+       DESTDIR=$RPM_BUILD_ROOT
+
+install %{SOURCE1} $RPM_BUILD_ROOT%{_desktopdir}
+install %{SOURCE2} $RPM_BUILD_ROOT%{_pixmapsdir}
+install %{SOURCE3} .
 
 %clean
 rm -rf $RPM_BUILD_ROOT
 
 %files
 %defattr(644,root,root,755)
-%doc AUTHORS NEWS README THANKS
+%doc AUTHORS NEWS README THANKS dosbox.conf
 %attr(755,root,root) %{_bindir}/*
 %{_mandir}/man1/*
+%{_desktopdir}/*
+%{_pixmapsdir}/*
This page took 0.150648 seconds and 4 git commands to generate.