rpms/crack-attack/F-9 crack-attack-1.1.14-audio-ppc.patch, NONE, 1.1 crack-attack.spec, 1.7, 1.8

Hans de Goede (jwrdegoede) fedora-extras-commits at redhat.com
Tue Jun 24 12:32:21 UTC 2008


Author: jwrdegoede

Update of /cvs/extras/rpms/crack-attack/F-9
In directory cvs-int.fedora.redhat.com:/tmp/cvs-serv2322

Modified Files:
	crack-attack.spec 
Added Files:
	crack-attack-1.1.14-audio-ppc.patch 
Log Message:
* Tue Jun 24 2008 Hans de Goede <j.w.r.degoede at hhs.nl> 1.1.14-14
- Fix sound on bigendian machines (bz 452394)


crack-attack-1.1.14-audio-ppc.patch:

--- NEW FILE crack-attack-1.1.14-audio-ppc.patch ---
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 )


Index: crack-attack.spec
===================================================================
RCS file: /cvs/extras/rpms/crack-attack/F-9/crack-attack.spec,v
retrieving revision 1.7
retrieving revision 1.8
diff -u -r1.7 -r1.8
--- crack-attack.spec	5 Mar 2008 19:23:29 -0000	1.7
+++ crack-attack.spec	24 Jun 2008 12:31:32 -0000	1.8
@@ -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 @@
 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 @@
 %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 @@
 
 
 %changelog
+* Tue Jun 24 2008 Hans de Goede <j.w.r.degoede at hhs.nl> 1.1.14-14
+- Fix sound on bigendian machines (bz 452394)
+
 * Wed Mar  5 2008 Hans de Goede <j.w.r.degoede at hhs.nl> 1.1.14-13
 - Stop using a full URL for Source1 (upstream file somehow got trunkated to
   0 bytes)




More information about the fedora-extras-commits mailing list