diff --git a/adanaxisgpl-1.2.5-const.patch b/adanaxisgpl-1.2.5-const.patch new file mode 100644 index 0000000..3b1be20 --- /dev/null +++ b/adanaxisgpl-1.2.5-const.patch @@ -0,0 +1,13 @@ +diff -ru adanaxisgpl-1.2.5.orig/src/Platform/X11/PlatformMiscUtils.cpp adanaxisgpl-1.2.5/src/Platform/X11/PlatformMiscUtils.cpp +--- adanaxisgpl-1.2.5.orig/src/Platform/X11/PlatformMiscUtils.cpp 2009-03-02 16:58:02.000000000 +0000 ++++ adanaxisgpl-1.2.5/src/Platform/X11/PlatformMiscUtils.cpp 2009-03-02 16:59:05.000000000 +0000 +@@ -1237,7 +1237,8 @@ + char * + br_dirname (const char *path) + { +- char *end, *result; ++ const char *end; ++ char *result; + + if (path == (const char *) NULL) + return (char *) NULL; diff --git a/adanaxisgpl.spec b/adanaxisgpl.spec index 21164a8..34ef719 100644 --- a/adanaxisgpl.spec +++ b/adanaxisgpl.spec @@ -1,8 +1,8 @@ # Spec file for Mandriva Linux -# $Id: adanaxisgpl.spec,v 1.4 2009/02/24 00:06:09 jkeating Exp $ +# $Id: adanaxisgpl.spec,v 1.5 2009/03/02 17:18:55 caolanm Exp $ # $Log: adanaxisgpl.spec,v $ -# Revision 1.4 2009/02/24 00:06:09 jkeating -# - Rebuilt for https://fedoraproject.org/wiki/Fedora_11_Mass_Rebuild +# Revision 1.5 2009/03/02 17:18:55 caolanm +# constify strchr # # Revision 1.4 2007/10/18 00:04:13 southa # Fedora packaging review comments @@ -35,7 +35,7 @@ Summary: Action game in four spatial dimensions Name: adanaxisgpl Version: 1.2.5 -Release: 3%{?dist} +Release: 4%{?dist} License: GPLv2 Group: Amusements/Games URL: http://www.mushware.com/ @@ -53,6 +53,8 @@ BuildRequires: libvorbis-devel BuildRequires: pcre-devel BuildRequires: SDL_mixer-devel +Patch0: adanaxisgpl-1.2.5-const.patch + %description Adanaxis is a fast-moving first person shooter set in deep space, where the fundamentals of space itself are changed. By adding another dimension to @@ -69,6 +71,7 @@ Shading Language. %prep %setup -q +%patch0 -p1 -b .const %build %configure @@ -153,6 +156,9 @@ rm -rf %{buildroot} %_mandir/man6/%{name}*.6* %changelog +* Mon Mar 02 2009 Caolán McNamara - 1.2.5-4 +- constify strchr + * Mon Feb 23 2009 Fedora Release Engineering - 1.2.5-3 - Rebuilt for https://fedoraproject.org/wiki/Fedora_11_Mass_Rebuild