commit 482ed7e6810bd41e9f027b338a47c08d2a2cb5dc
Author: Andrea Musuruane <musuruan(a)gmail.com>
Date: Sun Nov 26 14:40:21 2017 +0100
Updated to 1.55
Added AppData file
Added missing Requires
.gitignore | 1 +
...nix_flags.patch => snes9x-1.55-unix_flags.patch | 23 +++++---------------
snes9x.appdata.xml | 24 +++++++++++++++++++++
snes9x.spec | 25 +++++++++++++++++-----
sources | 2 +-
5 files changed, 51 insertions(+), 24 deletions(-)
---
diff --git a/.gitignore b/.gitignore
index faba16d..2786012 100644
--- a/.gitignore
+++ b/.gitignore
@@ -1,2 +1,3 @@
snes9x-1.53-src.tar.bz2
/snes9x-1.54.1.tar.gz
+/snes9x-1.55.tar.gz
diff --git a/snes9x-1.54.1-unix_flags.patch b/snes9x-1.55-unix_flags.patch
similarity index 66%
rename from snes9x-1.54.1-unix_flags.patch
rename to snes9x-1.55-unix_flags.patch
index 4547791..cf6f66f 100644
--- a/snes9x-1.54.1-unix_flags.patch
+++ b/snes9x-1.55-unix_flags.patch
@@ -1,11 +1,10 @@
-diff -durN snes9x-1.54.1.orig/unix/configure.ac snes9x-1.54.1/unix/configure.ac
---- snes9x-1.54.1.orig/unix/configure.ac 2016-10-15 02:20:34.000000000 +0200
-+++ snes9x-1.54.1/unix/configure.ac 2017-02-04 18:52:33.297396407 +0100
-@@ -55,50 +55,6 @@
- # *****************************
+diff -urN snes9x-1.55/unix/configure.ac snes9x-1.55-patched/unix/configure.ac
+--- snes9x-1.55/unix/configure.ac 2017-11-20 04:16:36.000000000 +1000
++++ snes9x-1.55-patched/unix/configure.ac 2017-11-21 23:18:19.902227796 +1000
+@@ -56,49 +56,6 @@
# *** Execution begins here ***
# *****************************
--
+
-# Remove -g and -O2 flags manually.
-
-if test "x$CFLAGS" != "x"; then
@@ -52,15 +51,3 @@ diff -durN snes9x-1.54.1.orig/unix/configure.ac
snes9x-1.54.1/unix/configure.ac
AC_S9X_COMPILER_FLAG([-fno-exceptions], [no_exceptions])
AC_S9X_COMPILER_FLAG([-fno-rtti], [no_rtti])
AC_S9X_COMPILER_FLAG([-pedantic], [pedantic])
-diff -durN snes9x-1.54.1.orig/unix/Makefile.in snes9x-1.54.1/unix/Makefile.in
---- snes9x-1.54.1.orig/unix/Makefile.in 2016-10-15 02:20:34.000000000 +0200
-+++ snes9x-1.54.1/unix/Makefile.in 2017-02-04 18:52:02.039108126 +0100
-@@ -47,7 +47,7 @@
- exit 1
-
- snes9x: $(OBJECTS)
-- $(CCC) $(INCLUDES) -o $@ $(OBJECTS) -lm @S9XLIBS@
-+ $(CCC) $(LDFLAGS) $(INCLUDES) -o $@ $(OBJECTS) -lm @S9XLIBS@
-
- ../jma/s9x-jma.o: ../jma/s9x-jma.cpp
- $(CCC) $(INCLUDES) -c $(CCFLAGS) -fexceptions $*.cpp -o $@
diff --git a/snes9x.appdata.xml b/snes9x.appdata.xml
new file mode 100644
index 0000000..d61eea1
--- /dev/null
+++ b/snes9x.appdata.xml
@@ -0,0 +1,24 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<component type="desktop">
+<id>snes9x.desktop</id>
+ <metadata_license>CC-BY-SA-3.0</metadata_license>
+ <project_license>Other</project_license>
+ <name>Snes9x</name>
+ <summary>Super Nintendo Entertainment System emulator</summary>
+ <description>
+ <p>
+ Snes9x is a portable, freeware Super Nintendo Entertainment
+ System (SNES) emulator. It basically allows you to play most
+ games designed for the SNES and Super Famicom Nintendo game
+ systems on your computer.
+ </p>
+ </description>
+ <screenshots>
+ <screenshot type="default">
+ <
image>http://www.snes9x.com/images/mariokart1.gif</image>
+
<
image>http://www.snes9x.com/images/yisland.jpg</image>
+ </screenshot>
+ </screenshots>
+ <url
type="homepage">http://www.snes9x.com/</url>
+</component>
+
diff --git a/snes9x.spec b/snes9x.spec
index c3d9ff2..c876389 100644
--- a/snes9x.spec
+++ b/snes9x.spec
@@ -1,12 +1,13 @@
Summary: Super Nintendo Entertainment System emulator
Name: snes9x
-Version: 1.54.1
-Release: 3%{?dist}
+Version: 1.55
+Release: 1%{?dist}
License: Other
URL:
http://www.snes9x.com/
-Source:
https://github.com/snes9xgit/snes9x/archive/%{version}.tar.gz#/%{name}-%{...
-# Fix CFLAGS and LDFLAGS usage in CLI version
-Patch0: %{name}-1.54.1-unix_flags.patch
+Source0:
https://github.com/snes9xgit/snes9x/archive/%{version}.tar.gz#/%{name}-%{...
+Source1: %{name}.appdata.xml
+# Fix CFLAGS usage in CLI version
+Patch0: %{name}-1.55-unix_flags.patch
BuildRequires: gcc-c++
BuildRequires: autoconf
BuildRequires: zlib-devel
@@ -20,10 +21,13 @@ BuildRequires: gtk2-devel
BuildRequires: libglade2-devel
BuildRequires: SDL-devel
BuildRequires: libxml2-devel
+BuildRequires: minizip-devel
BuildRequires: portaudio-devel
BuildRequires: alsa-lib-devel
BuildRequires: pulseaudio-libs-devel
BuildRequires: desktop-file-utils
+BuildRequires: libappstream-glib
+Requires: hicolor-icon-theme
%description
Snes9x is a portable, freeware Super Nintendo Entertainment System (SNES)
@@ -79,6 +83,11 @@ install -p -m 0755 unix/snes9x %{buildroot}%{_bindir}
desktop-file-validate \
%{buildroot}%{_datadir}/applications/%{name}.desktop
+# Install AppData file
+install -d %{buildroot}%{_datadir}/metainfo
+install -p -m 644 %{SOURCE1} %{buildroot}%{_datadir}/metainfo
+appstream-util validate-relax --nonet %{buildroot}%{_datadir}/metainfo/*.appdata.xml
+
%find_lang snes9x-gtk
@@ -113,11 +122,17 @@ gtk-update-icon-cache %{_datadir}/icons/hicolor &>/dev/null
|| :
%doc docs/changes.txt
%doc gtk/doc/README
%{_bindir}/snes9x-gtk
+%{_datadir}/metainfo/snes9x.appdata.xml
%{_datadir}/applications/snes9x.desktop
%{_datadir}/icons/hicolor/*/apps/snes9x.*
%changelog
+* Sun Nov 26 2017 Andrea Musuruane <musuruan(a)gmail.com> - 1.55-1
+- Updated to 1.55
+- Added AppData file
+- Added missing Requires
+
* Thu Aug 31 2017 RPM Fusion Release Engineering <kwizart(a)rpmfusion.org> -
1.54.1-3
- Rebuilt for
https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild
diff --git a/sources b/sources
index 9441f8f..5ccc93b 100644
--- a/sources
+++ b/sources
@@ -1 +1 @@
-ea8e97bbde690345b4d3b1af9facc1f0 snes9x-1.54.1.tar.gz
+01cf5f01291ea683f52932bf7eb595a7 snes9x-1.55.tar.gz