commit e79ae768a296e919b33d7214dbe3ff36a69619df
Author: Andrea Musuruane <musuruan(a)gmail.com>
Date: Sat Dec 9 16:07:28 2017 +0100
First import
.gitignore | 1 +
fs-uae-arcade-2.8.3-remove_inbuilt_six.patch | 19 +++++
fs-uae-arcade.appdata.xml | 20 +++++
fs-uae-arcade.spec | 119 +++++++++++++++++++++++++++
sources | 1 +
5 files changed, 160 insertions(+)
---
diff --git a/.gitignore b/.gitignore
index e69de29..42afa43 100644
--- a/.gitignore
+++ b/.gitignore
@@ -0,0 +1 @@
+/fs-uae-arcade-2.8.3.tar.gz
diff --git a/fs-uae-arcade-2.8.3-remove_inbuilt_six.patch
b/fs-uae-arcade-2.8.3-remove_inbuilt_six.patch
new file mode 100644
index 0000000..1f1be9b
--- /dev/null
+++ b/fs-uae-arcade-2.8.3-remove_inbuilt_six.patch
@@ -0,0 +1,19 @@
+diff -durN fs-uae-arcade-2.8.3.orig/setup.py fs-uae-arcade-2.8.3/setup.py
+--- fs-uae-arcade-2.8.3.orig/setup.py 2017-01-08 20:48:58.000000000 +0100
++++ fs-uae-arcade-2.8.3/setup.py 2017-10-15 18:51:35.819270252 +0200
+@@ -33,7 +33,6 @@
+ "launcher": "../fs-uae-launcher",
+ "OpenGL": "../fs-uae-launcher",
+ "oyoyo": "../fs-uae-launcher",
+- "six": "../fs-uae-launcher",
+ }
+ packages = sorted(package_map.keys())
+ scripts = ["fs-uae-arcade"]
+@@ -60,7 +59,6 @@
+ res_dirs.append('fsui/res')
+ res_dirs.append('launcher/res')
+ res_dirs.append('oyoyo/res')
+-res_dirs.append('six/res')
+
+
+ def add_package(package_name, package_dir_name):
diff --git a/fs-uae-arcade.appdata.xml b/fs-uae-arcade.appdata.xml
new file mode 100644
index 0000000..47c50c0
--- /dev/null
+++ b/fs-uae-arcade.appdata.xml
@@ -0,0 +1,20 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!-- Copyright 2017 Andrea Musuruane <musuruan(a)gmail.com -->
+<component type="desktop">
+ <id>abbaye.desktop</id>
+ <metadata_license>CC-BY-SA-3.0</metadata_license>
+ <project_license>GPL-2.0+ and MIT</project_license>
+ <name>FS-UAE Arcade</name>
+ <summary>Fullscreen game browser for FS-UAE</summary>
+ <description>
+ <p>
+ FS-UAE Arcade is a fullscreen Amiga game browser for FS-UAE.
+ </p>
+ </description>
+ <screenshots>
+ <screenshot type="default">
+ <
image>https://fs-uae.net/images/fs-uae/front2.png</image>
+ </screenshot>
+ </screenshots>
+ <url
type="homepage">http://fs-uae.net/</url>
+</component>
diff --git a/fs-uae-arcade.spec b/fs-uae-arcade.spec
new file mode 100644
index 0000000..51d70d1
--- /dev/null
+++ b/fs-uae-arcade.spec
@@ -0,0 +1,119 @@
+%global __python %{__python3}
+
+Name: fs-uae-arcade
+Version: 2.8.3
+Release: 3%{?dist}
+Summary: Fullscreen game browser for FS-UAE
+
+# The entire source code is GPLv2+ except oyoyo which is MIT
+License: GPLv2+ and MIT
+URL:
http://fs-uae.net/
+Source0:
http://fs-uae.net/fs-uae/stable/%{version}/%{name}-%{version}.tar.gz
+Source1: %{name}.appdata.xml
+# Remove six python library
+# Patch from fs-uae-arcade
+Patch0: %{name}-2.8.3-remove_inbuilt_six.patch
+
+BuildArch: noarch
+
+BuildRequires: python3-devel
+BuildRequires: gettext
+BuildRequires: libappstream-glib
+BuildRequires: desktop-file-utils
+Requires: hicolor-icon-theme
+Requires: python3-qt5
+Requires: python3-six
+Requires: liberation-sans-fonts
+Requires: fs-uae = %{version}
+
+# oyoyo is not in Fedora
+Provides: bundled(python3-oyoyo) = 0.0.0
+
+%description
+FS-UAE Arcade is a fullscreen Amiga game browser for FS-UAE.
+
+
+%prep
+%autosetup -p1
+
+# Remove bundled lib
+rm -rf six
+
+# Remove shebang from non executable scripts
+FILES="fstd/adffile.py
+ OpenGL/arrays/_buffers.py
+ OpenGL/arrays/buffers.py
+ arcade/res/update.py
+ fsgs/amiga/adf.py
+ fstd/adffile.py
+ launcher/apps/__init__.py"
+for pyfile in $FILES
+do
+ sed -i -e '/^#!/, 1d' $pyfile
+done
+
+
+%build
+# EMPTY SECTION
+
+
+%install
+%make_install prefix=%{_prefix}
+
+# Validate desktop file
+desktop-file-validate \
+ %{buildroot}%{_datadir}/applications/%{name}.desktop
+
+# Install AppData file
+install -d %{buildroot}%{_datadir}/appdata
+install -p -m 644 %{SOURCE1} %{buildroot}%{_datadir}/appdata
+appstream-util validate-relax --nonet
%{buildroot}/%{_datadir}/appdata/%{name}.appdata.xml
+
+# Symlink system font
+rm %{buildroot}%{_datadir}/%{name}/arcade/res/LiberationSans-Bold.ttf
+ln -s %{_datadir}/fonts/liberation/LiberationSans-Bold.ttf \
+ %{buildroot}%{_datadir}/%{name}/arcade/res/LiberationSans-Bold.ttf
+
+
+%post
+/bin/touch --no-create %{_datadir}/icons/hicolor &>/dev/null || :
+
+
+%postun
+if [ $1 -eq 0 ] ; then
+ /bin/touch --no-create %{_datadir}/icons/hicolor &>/dev/null
+ /usr/bin/gtk-update-icon-cache %{_datadir}/icons/hicolor &>/dev/null || :
+fi
+
+
+%posttrans
+/usr/bin/gtk-update-icon-cache %{_datadir}/icons/hicolor &>/dev/null || :
+
+
+%files
+%{_bindir}/%{name}
+%{_datadir}/%{name}
+%{_datadir}/appdata/%{name}.appdata.xml
+%{_datadir}/applications/%{name}.desktop
+%{_datadir}/icons/hicolor/*/apps/%{name}.png
+%exclude %{_pkgdocdir}
+%license COPYING
+
+
+%changelog
+* Sun Oct 15 2017 Andrea Musuruane <musuruan(a)gmail.com> - 2.8.3-3
+- Added a virtual provide to note oyoyo is bundled
+- Amended License tag
+- Added AppData file
+- Removed six python library
+- Unbundled font file
+
+* Sat Sep 16 2017 Andrea Musuruane <musuruan(a)gmail.com> - 2.8.3-2
+- Relaxed fs-uae requires
+
+* Sat Sep 09 2017 Andrea Musuruane <musuruan(a)gmail.com> - 2.8.3-1
+- Updated to new upstream version
+
+* Sun Apr 03 2016 Andrea Musuruane <musuruan(a)gmail.com> - 2.6.2-1
+- First release
+
diff --git a/sources b/sources
index e69de29..ce43e5e 100644
--- a/sources
+++ b/sources
@@ -0,0 +1 @@
+b507dd1bf8e9e8c443f71900965059e2 fs-uae-arcade-2.8.3.tar.gz