From e2c6a51682cec28539e6ede749b2d578baa74ff4 Mon Sep 17 00:00:00 2001 From: Hans de Goede Date: Jun 24 2008 12:31:32 +0000 Subject: - Fix sound on bigendian machines (bz 452394) --- diff --git a/crack-attack-1.1.14-audio-ppc.patch b/crack-attack-1.1.14-audio-ppc.patch new file mode 100644 index 0000000..92e716c --- /dev/null +++ b/crack-attack-1.1.14-audio-ppc.patch @@ -0,0 +1,12 @@ +diff -up crack-attack-1.1.14/src/Sound.cxx~ crack-attack-1.1.14/src/Sound.cxx +--- crack-attack-1.1.14/src/Sound.cxx~ 2008-06-24 11:20:22.000000000 +0200 ++++ crack-attack-1.1.14/src/Sound.cxx 2008-06-24 11:20:22.000000000 +0200 +@@ -41,7 +41,7 @@ ChunkMap chunks; + int audio_rate = 22050; + int audio_channels = 2; + int audio_buffers = 1024; /* small enough buffer to get synchronized sound */ +-Uint16 audio_format = AUDIO_S16; /* 16-bit stereo */ ++Uint16 audio_format = AUDIO_S16SYS; /* 16-bit stereo */ + int has_audio_available = 0; + + void Sound::initialize( void ) diff --git a/crack-attack.spec b/crack-attack.spec index d9b0a1d..9dd697f 100644 --- a/crack-attack.spec +++ b/crack-attack.spec @@ -1,7 +1,7 @@ Summary: Puzzle action game Name: crack-attack Version: 1.1.14 -Release: 13%{?dist} +Release: 14%{?dist} License: GPLv2+ Group: Amusements/Games URL: http://www.nongnu.org/crack-attack/ @@ -12,6 +12,7 @@ Patch0: crack-attack-1.1.14-glutInit.patch Patch1: crack-attack-1.1.14-sanitize.patch Patch2: crack-attack-1.1.14-audio.patch Patch3: crack-attack-1.1.14-gcc43.patch +Patch4: crack-attack-1.1.14-audio-ppc.patch BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) BuildRequires: libstdc++-devel desktop-file-utils ImageMagick BuildRequires: SDL-devel gtk2-devel pkgconfig SDL_mixer-devel freeglut-devel @@ -30,6 +31,7 @@ longest!? Playable both online and off. %patch1 -p1 -b .sanitize %patch2 -p1 -b .audio %patch3 -p1 -b .gcc43 +%patch4 -p1 sed -i 's/-O3 -s//g' src/Makefile.in sed -i 's/-O2//g' src/gtk-gui/Makefile.in # fixup provided desktop file @@ -93,6 +95,9 @@ fi %changelog +* Tue Jun 24 2008 Hans de Goede 1.1.14-14 +- Fix sound on bigendian machines (bz 452394) + * Wed Mar 5 2008 Hans de Goede 1.1.14-13 - Stop using a full URL for Source1 (upstream file somehow got trunkated to 0 bytes)