From c5baaeadbd644789c1a30a90ccb0217fb1c61c70 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Jan=20R=C4=99korajski?= Date: Sun, 14 Jul 2013 20:08:29 +0200 Subject: [PATCH] - updated to 2.2.1 --- fceultra-build.patch | 22 ---------------------- fceultra.spec | 17 +++++++++-------- format-security.patch | 11 +++++++++++ lua51.patch | 13 +++++++++++++ 4 files changed, 33 insertions(+), 30 deletions(-) delete mode 100644 fceultra-build.patch create mode 100644 format-security.patch create mode 100644 lua51.patch diff --git a/fceultra-build.patch b/fceultra-build.patch deleted file mode 100644 index a4c8820..0000000 --- a/fceultra-build.patch +++ /dev/null @@ -1,22 +0,0 @@ ---- fceu2.1.5/src/file.cpp~ 2010-09-19 02:05:09.000000000 +0200 -+++ fceu2.1.5/src/file.cpp 2012-02-12 10:11:53.832509623 +0100 -@@ -310,7 +310,7 @@ - if(magic==0x088b1f) { - // maybe gzip... - -- void* gzfile = gzopen(fileToOpen.c_str(),"rb"); -+ gzFile gzfile = gzopen(fileToOpen.c_str(),"rb"); - if(gzfile) { - delete fp; - ---- fceu2.1.5/SConstruct~ 2011-06-04 07:26:55.000000000 +0200 -+++ fceu2.1.5/SConstruct 2012-02-12 10:15:10.593425125 +0100 -@@ -39,6 +39,8 @@ - env.Append(CCFLAGS = os.environ['CFLAGS'].split()) - if os.environ.has_key('LDFLAGS'): - env.Append(LINKFLAGS = os.environ['LDFLAGS'].split()) -+if os.environ.has_key('LIBS'): -+ env.Append(LIBS = os.environ['LIBS'].split()) - - print "platform: ", env['PLATFORM'] - diff --git a/fceultra.spec b/fceultra.spec index 740cf8c..fa8dfee 100644 --- a/fceultra.spec +++ b/fceultra.spec @@ -4,13 +4,14 @@ Summary: FCE Ultra - Linux Nintendo Entertainment System emulator Summary(pl.UTF-8): FCE Ultra - linuksowy emulator systemu Nintendo Name: fceultra -Version: 2.1.5 -Release: 5 +Version: 2.2.1 +Release: 1 License: GPL v2+ Group: X11/Applications/Games -Source0: http://downloads.sourceforge.net/fceultra/fceux-%{version}.src.tar.bz2 -# Source0-md5: e8b20e62bbbb061b1a59d51b47c827bd -Patch0: %{name}-build.patch +Source0: http://downloads.sourceforge.net/fceultra/fceux-%{version}.src.tar.gz +# Source0-md5: 696d0186afb17f3b70d4aa9e9f5cf1d1 +Patch0: lua51.patch +Patch1: format-security.patch URL: http://fceultra.sourceforge.net/ BuildRequires: OpenGL-GLU-devel BuildRequires: SDL >= 1.2.14 @@ -29,9 +30,9 @@ FCE Ultra is a cross platform, NTSC and PAL Famicom/NES emulator. FCE Ultra to wieloplatformowy emulator konsoli Famicom/NES/Pegasus. %prep -%setup -q -n fceu%{version} -%undos src/file.cpp +%setup -q -n fceux-%{version} %patch0 -p1 +%patch1 -p1 %build CC="%{__cc}" \ @@ -52,5 +53,5 @@ rm -rf $RPM_BUILD_ROOT %files %defattr(644,root,root,755) -%doc Authors.txt README-SDL TODO-PROJECT TODO-SDL changelog.txt documentation +%doc Authors README-SDL TODO-SDL changelog.txt documentation %attr(755,root,root) %{_bindir}/fceux diff --git a/format-security.patch b/format-security.patch new file mode 100644 index 0000000..0cefb7f --- /dev/null +++ b/format-security.patch @@ -0,0 +1,11 @@ +--- fceux-2.2.1/src/drivers/sdl/sdl.cpp~ 2013-03-02 20:46:34.000000000 +0100 ++++ fceux-2.2.1/src/drivers/sdl/sdl.cpp 2013-07-14 20:06:36.493322816 +0200 +@@ -934,7 +934,7 @@ + if(gtkIsStarted == true && noGui == 0) + { + GtkWidget* d; +- d = gtk_message_dialog_new(GTK_WINDOW(MainWindow), GTK_DIALOG_MODAL, GTK_MESSAGE_ERROR, GTK_BUTTONS_OK, errormsg); ++ d = gtk_message_dialog_new(GTK_WINDOW(MainWindow), GTK_DIALOG_MODAL, GTK_MESSAGE_ERROR, GTK_BUTTONS_OK, "%s", errormsg); + gtk_dialog_run(GTK_DIALOG(d)); + gtk_widget_destroy(d); + } diff --git a/lua51.patch b/lua51.patch new file mode 100644 index 0000000..24a9d3c --- /dev/null +++ b/lua51.patch @@ -0,0 +1,13 @@ +--- fceux-2.2.1/SConstruct~ 2013-03-10 22:21:52.000000000 +0100 ++++ fceux-2.2.1/SConstruct 2013-07-14 20:04:15.261914050 +0200 +@@ -125,8 +125,8 @@ + # Should work on any *nix + env.Append(CCFLAGS = ["-DLUA_USE_LINUX"]) + lua_available = False +- if conf.CheckLib('lua5.1'): +- env.Append(LINKFLAGS = ["-ldl", "-llua5.1"]) ++ if conf.CheckLib('lua51'): ++ env.Append(LINKFLAGS = ["-ldl", "-llua51"]) + lua_available = True + elif conf.CheckLib('lua'): + env.Append(LINKFLAGS = ["-ldl", "-llua"]) -- 2.43.0