rpms/asylum/F-7 asylum-0.2.2-fixsound.patch, 1.2, 1.3 asylum-0.2.2-makefile.patch, 1.2, 1.3 asylum.png, 1.2, 1.3 asylum.spec, 1.3, 1.4 sources, 1.3, 1.4

Ian Chapman (oddsocks) fedora-extras-commits at redhat.com
Fri Oct 5 00:43:15 UTC 2007


Author: oddsocks

Update of /cvs/pkgs/rpms/asylum/F-7
In directory cvs-int.fedora.redhat.com:/tmp/cvs-serv28353

Added Files:
	asylum-0.2.2-fixsound.patch asylum-0.2.2-makefile.patch 
	asylum.png asylum.spec sources 
Log Message:


asylum-0.2.2-fixsound.patch:

Index: asylum-0.2.2-fixsound.patch
===================================================================
RCS file: asylum-0.2.2-fixsound.patch
diff -N asylum-0.2.2-fixsound.patch
--- /dev/null	1 Jan 1970 00:00:00 -0000
+++ asylum-0.2.2-fixsound.patch	5 Oct 2007 00:43:12 -0000	1.3
@@ -0,0 +1,11 @@
+--- asylum-0.2.2/asylum.c.orig	2007-09-10 22:17:16.000000000 +0100
++++ asylum-0.2.2/asylum.c	2007-09-14 22:48:35.000000000 +0100
+@@ -6445,7 +6445,7 @@
+   }
+  }
+  SDL_Init(SDL_INIT_VIDEO|SDL_INIT_AUDIO);
+- sound_available=!Mix_OpenAudio(22050,AUDIO_U16LSB,2,1024);
++ sound_available=!Mix_OpenAudio(22050,MIX_DEFAULT_FORMAT,2,1024);
+  if (!sound_available) fprintf(stderr,"Sound disabled: opening audio device failed: %s\n",Mix_GetError());
+  c_array_initializers();
+ /*MODE 15

asylum-0.2.2-makefile.patch:

Index: asylum-0.2.2-makefile.patch
===================================================================
RCS file: asylum-0.2.2-makefile.patch
diff -N asylum-0.2.2-makefile.patch
--- /dev/null	1 Jan 1970 00:00:00 -0000
+++ asylum-0.2.2-makefile.patch	5 Oct 2007 00:43:12 -0000	1.3
@@ -0,0 +1,20 @@
+--- asylum-0.2.2/Makefile.orig	2007-09-02 03:10:05.000000000 +0100
++++ asylum-0.2.2/Makefile	2007-09-09 23:59:36.000000000 +0100
+@@ -1,13 +1,14 @@
+ CC=gcc
+-CFLAGS= -x c++ -O3 -funsigned-char \
++RPMFLAGS = 
++CFLAGS= -x c++ $(RPMFLAGS) -funsigned-char \
+ 	-DRESOURCEPATH=\"$(INSTALLRESOURCEPATH)\" \
+ 	-DSCOREPATH=\"$(INSTALLHISCORES)\"
+ LIBS=-lm -lSDL -lSDL_mixer -lstdc++
+ 
+ RESOURCES=data/Resources data/Ego data/Psyche data/Id data/Voices
+ 
+-INSTALLBIN=/usr/games/asylum
+-INSTALLRESOURCEPATH=/usr/share/games/asylum
++INSTALLBIN=/usr/bin/asylum
++INSTALLRESOURCEPATH=/usr/share/asylum
+ INSTALLHISCORES=/var/games/asylum
+ 
+ INSTALLGROUP=games


Index: asylum.spec
===================================================================
RCS file: asylum.spec
diff -N asylum.spec
--- /dev/null	1 Jan 1970 00:00:00 -0000
+++ asylum.spec	5 Oct 2007 00:43:12 -0000	1.4
@@ -0,0 +1,112 @@
+Name:           asylum
+Version:        0.2.2
+Release:        1%{?dist}
+Summary:        SDL port of the game Asylum, originally for the Archimedes
+Group:          Amusements/Games
+# For detailed licensing, see the README
+License:        GPLv3 and Public Domain
+URL:            http://sdl-asylum.sourceforge.net
+Source0:        http://downloads.sourceforge.net/sdl-%{name}/%{name}-%{version}.tar.gz
+Source1:        %{name}.png
+Patch0:         asylum-0.2.2-makefile.patch
+Patch1:         asylum-0.2.2-fixsound.patch
+BuildRoot:      %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
+BuildRequires:  desktop-file-utils
+BuildRequires:  SDL_mixer-devel
+Requires:       hicolor-icon-theme
+# Lots of endian problems. (BZ #319541)
+ExcludeArch:    ppc ppc64
+
+%description
+SDL Asylum is a C port of the computer game Asylum, which was written by Andy
+Southgate in 1994 for the Acorn Archimedes and is now public domain. The object
+is to find things that look like brain cells and shut them down! The game
+revolves around shooting anything which moves, collecting anything which
+doesn't move and most importantly, finding your way to each of the eight
+pulsating neurons scattered through the immense map.
+
+
+%prep
+%setup -q
+%patch -p1
+%patch1 -p1
+# Character encoding fixes
+iconv -f iso8859-1 README -t utf8 > README.conv \
+    && /bin/mv -f README.conv README
+
+# Delete bundled binary to make absolutely sure we get a new one.
+rm -f %{name}
+
+
+%build
+make %{?_smp_mflags} RPMFLAGS="%{optflags}"
+
+# Build desktop icon
+cat >%{name}.desktop <<EOF
+[Desktop Entry]
+Encoding=UTF-8
+Name=Asylum
+GenericName=(Platform Game)
+Comment=%{summary}
+Exec=%{name}
+Icon=%{name}.png
+Terminal=false
+Type=Application
+StartupNotify=false
+Categories=Game;ActionGame;
+EOF
+
+
+%install
+rm -rf %{buildroot}
+mkdir -p %{buildroot}%{_bindir}
+mkdir -p %{buildroot}%{_datadir}/%{name}
+mkdir -p %{buildroot}%{_var}/games/%{name}
+mkdir -p %{buildroot}%{_datadir}/icons/hicolor/32x32/apps
+touch %{buildroot}%{_var}/games/%{name}/{EgoHighScores,PsycheHighScores,IdHighScores,ExtendedHighScores}
+
+install -m0755 %{name} %{buildroot}%{_bindir}
+cp -a data/* %{buildroot}%{_datadir}/%{name}
+
+install -m0644 %{SOURCE1} %{buildroot}%{_datadir}/icons/hicolor/32x32/apps
+desktop-file-install --vendor fedora \
+                     --dir %{buildroot}%{_datadir}/applications \
+                     %{name}.desktop
+
+
+%clean
+rm -rf %{buildroot}
+
+
+%post
+touch --no-create %{_datadir}/icons/hicolor || :
+if [ -x %{_bindir}/gtk-update-icon-cache ]; then
+   %{_bindir}/gtk-update-icon-cache --quiet %{_datadir}/icons/hicolor || :
+fi
+
+
+%postun
+touch --no-create %{_datadir}/icons/hicolor || :
+if [ -x %{_bindir}/gtk-update-icon-cache ]; then
+   %{_bindir}/gtk-update-icon-cache --quiet %{_datadir}/icons/hicolor || :
+fi
+
+
+%files
+# Note the game is SETGID games for the hi-scores.
+%defattr(-,root,root,-)
+%{_datadir}/%{name}
+%{_datadir}/applications/fedora-%{name}.desktop
+%attr(0775,root,games) %dir %{_var}/games/%{name}
+%attr(2755,root,games) %{_bindir}/%{name}
+%{_datadir}/icons/hicolor/32x32/apps/%{name}.png
+%doc Instruct README COPYING
+%ghost %{_var}/games/%{name}/EgoHighScores
+%ghost %{_var}/games/%{name}/PsycheHighScores
+%ghost %{_var}/games/%{name}/IdHighScores
+%ghost %{_var}/games/%{name}/ExtendedHighScores
+
+
+%changelog
+* Sun Sep 09 2007 Ian Chapman <packages[AT]amiga-hardware.com> 0.2.2-1
+- Initial release


Index: sources
===================================================================
RCS file: sources
diff -N sources
--- /dev/null	1 Jan 1970 00:00:00 -0000
+++ sources	5 Oct 2007 00:43:12 -0000	1.4
@@ -0,0 +1 @@
+e349a99bf099df818b0efc4f83359858  asylum-0.2.2.tar.gz




More information about the fedora-extras-commits mailing list