The package rpms/gearhead1.git has added or updated architecture specific content in its
spec file (ExclusiveArch/ExcludeArch or %ifarch/%ifnarch) in commit(s):
https://src.fedoraproject.org/cgit/rpms/gearhead1.git/commit/?id=4c320776....
Change:
+ExclusiveArch: %{fpc_arches}
Thanks.
Full change:
============
commit 4c320776ce4dca89e6448449fa4cc1eff1a6d04a
Author: Artur Iwicki <fedora(a)svgames.pl>
Date: Tue May 19 18:15:07 2020 +0200
Import from SRPM (RHBZ#1823132)
diff --git a/.gitignore b/.gitignore
new file mode 100644
index 0000000..2a3399e
--- /dev/null
+++ b/.gitignore
@@ -0,0 +1,4 @@
+/gearhead-1-1.310.tar.gz
+/gearhead1-icon-128px.png
+/gearhead1-icon-48px.png
+/gearhead1-icon-96px.png
diff --git a/gearhead1-sdl.appdata.xml b/gearhead1-sdl.appdata.xml
new file mode 100644
index 0000000..5031929
--- /dev/null
+++ b/gearhead1-sdl.appdata.xml
@@ -0,0 +1,42 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!-- AppData file for GearHead1, copyleft 2020 suve (veg(a)svgames.pl) -->
+<component type="desktop">
+ <id>gearhead1-sdl.desktop</id>
+ <metadata_license>CC0-1.0</metadata_license>
+ <project_license>LGPL-2.1+</project_license>
+ <name>GearHead: Arena</name>
+ <summary>Roguelike mecha role-playing game</summary>
+ <description>
+ <p>
+ Set a century and a half after nuclear war, in this game you explore a world
+ where various factions compete to determine the future of the human race.
+ </p>
+ <p>
+ Features include random plot generation and over two hundred mecha designs.
+ Pilot a giant robot, a city smashing tank, a living jet fighter, or
+ anything else that can be built using the game's sophisticated design system.
+ </p>
+ </description>
+ <launchable type="desktop-id">gearhead1-sdl.desktop</launchable>
+ <screenshots>
+ <screenshot type="default">
+ <image>https://img.itch.zone/aW1hZ2UvNzM0MDcvMzM4NzYzLnBuZw==/original/wY8FoO.png</image>
+ </screenshot>
+ <screenshot>
+ <image>https://img.itch.zone/aW1hZ2UvNzM0MDcvMzM4NzY0LnBuZw==/original/Snh3fG.png</image>
+ </screenshot>
+ <screenshot>
+ <image>https://img.itch.zone/aW1hZ2UvNzM0MDcvMzM4NzYyLnBuZw==/original/2YXTSi.png</image>
+ </screenshot>
+ </screenshots>
+ <developer_name>Joseph Hewitt</developer_name>
+ <update_contact>veg(a)svgames.pl</update_contact>
+ <url type="homepage">http://gearheadrpg.com</url>
+ <url
type="bugtracker">https://github.com/jwvhewitt/gearhead-1/is...
+ <content_rating type="oars-1.1">
+ <content_attribute
id="violence-cartoon">moderate</content_attribute>
+ <content_attribute
id="violence-fantasy">moderate</content_attribute>
+ <content_attribute
id="violence-bloodshed">mild</content_attribute>
+ <content_attribute
id="sex-homosexuality">mild</content_attribute>
+ </content_rating>
+</component>
diff --git a/gearhead1.spec b/gearhead1.spec
new file mode 100644
index 0000000..e37d090
--- /dev/null
+++ b/gearhead1.spec
@@ -0,0 +1,235 @@
+# There is Gearhead 2 in development right now,
+# and upstream always refers to the first game as "Gearhead 1",
+# so let's stick with that and use "gearhead1" instead of just
"gearhead"
+Name: gearhead1
+%global reponame gearhead-1
+%global prettyname GearHead: Arena
+
+%global about_game Roguelike mecha role-playing game
+Summary: %{about_game}
+License: LGPLv2
+
+Version: 1.310
+Release: 4%{?dist}
+
+URL:
http://gearheadrpg.com
+Source0:
https://github.com/jwvhewitt/%{reponame}/archive/v%{version}/%{reponame}-...
+
+Source10: %{name}-icon-128px.png
+Source11: %{name}-icon-96px.png
+Source12: %{name}-icon-48px.png
+
+Source20: %{name}-sdl.appdata.xml
+
+ExclusiveArch: %{fpc_arches}
+
+BuildRequires: desktop-file-utils
+BuildRequires: dos2unix
+BuildRequires: fpc
+BuildRequires: fpc-srpm-macros
+BuildRequires: glibc-devel
+BuildRequires: libappstream-glib
+BuildRequires: SDL-devel
+BuildRequires: SDL_image-devel
+BuildRequires: SDL_ttf-devel
+
+%global fontlist font(bitstreamverasans) font(bitstreamverasansmono)
font(bitstreamveraserif)
+BuildRequires: fontconfig
+BuildRequires: %{fontlist}
+
+Requires: %{name}-bin%{?_isa} = %{version}-%{release}
+Suggests: %{name}-SDL%{?_isa} = %{version}-%{release}
+
+
+%description
+Set a century and a half after nuclear war, in this game you explore a world
+where various factions compete to determine the future of the human race.
+
+Features include random plot generation and over two hundred mecha designs.
+Pilot a giant robot, a city smashing tank, a living jet fighter, or
+anything else that can be built using the game's sophisticated design system.
+
+
+%package textmode
+Summary: %{about_game} (textmode version)
+Provides: %{name}-bin%{?_isa} = %{version}-%{release}
+
+Requires: %{name}-data = %{version}-%{release}
+
+%description textmode
+Textmode build of %{prettyname}.
+
+
+%package SDL
+Summary: %{about_game} (SDL version)
+Provides: %{name}-bin%{?_isa} = %{version}-%{release}
+
+Requires: %{name}-data = %{version}-%{release}
+Requires: %{name}-data-gfx = %{version}-%{release}
+
+%description SDL
+Graphical build of %{prettyname}, based on the SDL library.
+
+
+%package data
+Summary: Data files for %{name}
+BuildArch: noarch
+
+%description data
+Data files required to play %{prettyname}.
+
+
+%package data-gfx
+Summary: Graphics and fonts for %{name}-SDL
+BuildArch: noarch
+
+Requires: %{name}-data = %{version}-%{release}
+
+Requires: %{fontlist}
+Requires: hicolor-icon-theme
+
+%description data-gfx
+Images and fonts required to play the graphical version of %{prettyname}.
+
+
+%prep
+%setup -q -n %{reponame}-%{version}
+
+# Convert files from \r\n to \n
+find doc/ -type f -exec dos2unix '{}' ';'
+dos2unix readme.md
+
+# Copy over the icons
+cp -a %{SOURCE10} %{SOURCE11} %{SOURCE12} ./
+
+# Copy over the appdata.xml file
+cp -a %{SOURCE20} ./
+
+# Upsteam does not ship a desktop file
+cat > %{name}-sdl.desktop << EOF
+[Desktop Entry]
+Type=Application
+Name=%{prettyname}
+Comment=%{about_game}
+Exec=%{name}-sdl
+Icon=%{name}
+Terminal=false
+Categories=Game;
+EOF
+
+# The game looks for the data files in the current working directory
+cat > wrapper-textmode.sh << EOF
+#!%{_bindir}/bash
+cd %{_datadir}/%{name}
+%{_libexecdir}/%{name}/%{name}-textmode \$@
+EOF
+
+cat > wrapper-sdl.sh << EOF
+#!%{_bindir}/bash
+cd %{_datadir}/%{name}
+%{_libexecdir}/%{name}/%{name}-sdl \$@
+EOF
+
+
+%build
+%global buildflags -gw -O2
+# -- build the terminal version of the game
+fpc %{buildflags} -o'gharena-textmode' gharena.pas
+
+# -- remove all compilation leftovers (the equivalent of "make clean")
+rm *.a || true
+rm *.o || true
+rm *.ppu || true
+
+# -- build the SDL version of the game
+fpc %{buildflags} -d'SDLMODE' -o'gharena-sdl' gharena.pas
+
+
+%install
+install -m 755 -d %{buildroot}%{_bindir}
+install -m 755 -d %{buildroot}%{_libexecdir}/%{name}
+
+for BUILD in textmode sdl; do
+ install -m 755 "wrapper-${BUILD}.sh"
"%{buildroot}%{_bindir}/%{name}-${BUILD}"
+ install -m 755 "gharena-${BUILD}"
"%{buildroot}%{_libexecdir}/%{name}/%{name}-${BUILD}"
+done
+
+install -m 755 -d %{buildroot}%{_datadir}/%{name}
+cp -a Design GameData Image Series %{buildroot}%{_datadir}/%{name}
+
+# Replace the bundled Bitstream Vera fonts
+# with symlinks to fonts provided by bitstream-vera-* packages
+for FONT in \
+ "Vera/Sans:regular" "VeraBd/Sans:bold"
"VeraIt/Sans:italic" "VeraBI/Sans:bold:italic" \
+ "VeraMono/Sans Mono:regular" "VeraMoBd/Sans Mono:bold"
"VeraMoIt/Sans Mono:italic" "VeraMoBI/Sans Mono:bold:italic" \
+ "VeraSe/Serif:regular" "VeraSeBd/Serif:bold";
+do
+ FONT_FILE="$(echo "$FONT" | cut '-d/' -f1)"
+ FONT_NAME="Bitstream Vera $(echo "$FONT" | cut '-d/' -f2-)"
+ ln -sf \
+ "$(fc-match -f "%%{file}" "${FONT_NAME}")" \
+ "%{buildroot}%{_datadir}/%{name}/Image/${FONT_FILE}.ttf"
+done
+
+install -m 755 -d %{buildroot}%{_datadir}/applications
+install -m 644 %{name}-sdl.desktop %{buildroot}%{_datadir}/applications/
+
+install -m 755 -d %{buildroot}%{_metainfodir}
+install -m 644 %{name}-sdl.appdata.xml %{buildroot}%{_metainfodir}/
+
+for SIZE in 128 96 48; do
+ ICONDIR="%{buildroot}%{_datadir}/icons/hicolor/${SIZE}x${SIZE}/apps"
+ install -m 755 -d "${ICONDIR}"
+ install -m 644 "%{name}-icon-${SIZE}px.png"
"${ICONDIR}/%{name}.png"
+done
+
+
+%check
+appstream-util validate-relax --nonet
%{buildroot}%{_metainfodir}/%{name}-sdl.appdata.xml
+desktop-file-validate %{buildroot}%{_datadir}/applications/%{name}-sdl.desktop
+
+
+%files
+# empty
+
+%files textmode
+%{_bindir}/%{name}-textmode
+%dir %{_libexecdir}/%{name}/
+ %{_libexecdir}/%{name}/%{name}-textmode
+
+%files SDL
+%{_bindir}/%{name}-sdl
+%dir %{_libexecdir}/%{name}/
+ %{_libexecdir}/%{name}/%{name}-sdl
+%{_datadir}/applications/%{name}-sdl.desktop
+%{_metainfodir}/%{name}-sdl.appdata.xml
+
+%files data
+%doc doc/
+%doc readme.md
+%license license.txt
+%{_datadir}/%{name}
+%exclude %{_datadir}/%{name}/Image/
+
+%files data-gfx
+%{_datadir}/%{name}/Image/
+%{_datadir}/icons/hicolor/*/apps/%{name}.png
+
+
+%changelog
+* Mon May 18 2020 Artur Iwicki <fedora(a)svgames.pl> - 1.310-4
+- Fix DOS line endings in files
+
+* Fri May 15 2020 Artur Iwicki <fedora(a)svgames.pl> - 1.310-3
+- Use fc-match to find system fonts instead of using hard-coded paths
+- Add an appdata.xml file
+
+* Wed Apr 22 2020 Artur Iwicki <fedora(a)svgames.pl> - 1.310-2
+- Build both the SDL and the textmode version of the game
+- Put the SDL and textmode versions in separate subpackages
+- Move images and fonts out of -data into -data-gfx
+- Fix one of the fonts being symlinked wrong
+- Add some icons and a desktop file
+
+* Sat Apr 11 2020 Artur Iwicki <fedora(a)svgames.pl> - 1.310-1
+- Initial packaging
diff --git a/sources b/sources
new file mode 100644
index 0000000..5ce67aa
--- /dev/null
+++ b/sources
@@ -0,0 +1,4 @@
+SHA512 (gearhead-1-1.310.tar.gz) =
3d56bdfc8dec4630ecbab27f85fd7b780b6568abe9bbe47b7ce3b85bc62b10a706083f0f6109ff3d89c474363fe435071f15c2b3aa5188f4db1a31cab6263ad5
+SHA512 (gearhead1-icon-128px.png) =
66ad3b96998e747471973fcd5d4da03bcb83025c1ee1efa7e201cd3589705b9d1d075e17f269dfa8b284fe4571856934392a749493ae5e5066412f4bc2bc5ef6
+SHA512 (gearhead1-icon-48px.png) =
79029e0f23060a8ebb238931a330630bd1d89d3e9b3dbc3607da5d5ec51ccc7ab8c11b2bc84f1d3c3e891d6f39f0e8f828d712dd3bf401404ec2432dd422d8ba
+SHA512 (gearhead1-icon-96px.png) =
33fa200ba7ec4b412c2f71bff0d1fe6d0fc119fbbb97fb076653de8ec513d38a22b796400cc0ca76aea09aa5d24e94f8e6569dfc049bdb8762cef6a825292e22