diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..fad7791 --- /dev/null +++ b/.gitignore @@ -0,0 +1,2 @@ +xarchon_0.50-10.1.diff.gz +xarchon-0.50.tar.gz diff --git a/dead.package b/dead.package deleted file mode 100644 index f20a9de..0000000 --- a/dead.package +++ /dev/null @@ -1 +0,0 @@ -xarchon is dead upstream and it was never really fully finished before upstream stopped working on it. On top of this it is using the very obsolete gtk+ toolkit. If, like me, you are an Archon fan I suggest you play the original in a c64 emulator diff --git a/sources b/sources new file mode 100644 index 0000000..cb1ee45 --- /dev/null +++ b/sources @@ -0,0 +1,2 @@ +c883ed2fffc51545160732d63d70106a xarchon_0.50-10.1.diff.gz +491dea5b4e61ed13cd988d1c184a8ef0 xarchon-0.50.tar.gz diff --git a/xarchon-0.50-gcc43.patch b/xarchon-0.50-gcc43.patch new file mode 100644 index 0000000..4b34f97 --- /dev/null +++ b/xarchon-0.50-gcc43.patch @@ -0,0 +1,19 @@ +diff -up xarchon-0.50/src/Genetic.hpp~ xarchon-0.50/src/Genetic.hpp +--- xarchon-0.50/src/Genetic.hpp~ 2008-01-11 22:40:09.000000000 +0100 ++++ xarchon-0.50/src/Genetic.hpp 2008-01-11 22:40:09.000000000 +0100 +@@ -2,6 +2,7 @@ + #define GENETIC_HPP + + #include ++#include + using namespace std; + + /* ********************************************** +diff -up xarchon-0.50/src/Xarchon_Problem.cpp~ xarchon-0.50/src/Xarchon_Problem.cpp +--- xarchon-0.50/src/Xarchon_Problem.cpp~ 2008-01-11 22:40:27.000000000 +0100 ++++ xarchon-0.50/src/Xarchon_Problem.cpp 2008-01-11 22:40:27.000000000 +0100 +@@ -1,3 +1,4 @@ ++#include + #include "Xarchon_Problem.hpp" + #include "Xarchon_Interface.hpp" + diff --git a/xarchon-destdir.patch b/xarchon-destdir.patch new file mode 100644 index 0000000..01fcdc5 --- /dev/null +++ b/xarchon-destdir.patch @@ -0,0 +1,26 @@ +--- a/data/Makefile.am~ 1999-10-16 01:33:45.000000000 +0300 ++++ b/data/Makefile.am 2003-09-14 14:32:25.000000000 +0300 +@@ -7,8 +7,8 @@ + echo "--> Installing theme '$$theme'"; \ + THEME_DIRS=`find $$theme -type d`; \ + for p in $$THEME_DIRS; do \ +- echo "mkdir $(pkgdatadir)/$$p"; \ +- mkdir $(pkgdatadir)/$$p; \ ++ echo "mkdir $(DESTDIR)$(pkgdatadir)/$$p"; \ ++ mkdir $(DESTDIR)$(pkgdatadir)/$$p; \ + done; \ + THEME_FILES=`find $$theme -type f`; \ + for p in $$THEME_FILES; do \ +--- a/data/Makefile.in~ 1999-12-03 19:12:06.000000000 +0200 ++++ b/data/Makefile.in 2003-09-14 14:43:46.000000000 +0300 +@@ -210,8 +210,8 @@ + echo "--> Installing theme '$$theme'"; \ + THEME_DIRS=`find $$theme -type d`; \ + for p in $$THEME_DIRS; do \ +- echo "mkdir $(pkgdatadir)/$$p"; \ +- mkdir $(pkgdatadir)/$$p; \ ++ echo "mkdir $(DESTDIR)$(pkgdatadir)/$$p"; \ ++ mkdir $(DESTDIR)$(pkgdatadir)/$$p; \ + done; \ + THEME_FILES=`find $$theme -type f`; \ + for p in $$THEME_FILES; do \ diff --git a/xarchon-fonts.patch b/xarchon-fonts.patch new file mode 100644 index 0000000..53c5485 --- /dev/null +++ b/xarchon-fonts.patch @@ -0,0 +1,22 @@ +--- xarchon-0.50/src/board.c.orig 2002-09-26 08:28:46.000000000 -0400 ++++ xarchon-0.50/src/board.c 2002-09-26 08:29:02.000000000 -0400 +@@ -27,7 +27,7 @@ + #define FLOOR_DARK 0 /* steppings for light and dark */ + #define FLOOR_LIGHT 7 /* outside luminance cycle */ + +-#define FONT_NAME "-misc-fixed-medium-*-normal-*-15-0-*-*-*-*-iso8859-1" ++#define FONT_NAME "-misc-fixed-medium-*-normal-*-*-*-*-*-*-*-iso8859-1" + + #define V_CELL_YSIZE 40 /* revive cell height */ + +--- xarchon-0.50/src/field.c.orig 2002-09-26 08:22:45.000000000 -0400 ++++ xarchon-0.50/src/field.c 2002-09-26 08:23:11.000000000 -0400 +@@ -20,7 +20,7 @@ + /* defines */ + /*--------------------------------------------------------------------------*/ + +-#define FONT_NAME "-misc-fixed-medium-*-normal-*-40-0-*-*-*-*-iso8859-1" ++#define FONT_NAME "-misc-fixed-medium-*-normal-*-*-*-*-*-*-*-iso8859-1" + + #define NUM_ROCKS 12 + #define ROCK_DELAY 2 /* rocks delay time in frames */ diff --git a/xarchon.appdata.xml b/xarchon.appdata.xml new file mode 100644 index 0000000..bf95b90 --- /dev/null +++ b/xarchon.appdata.xml @@ -0,0 +1,29 @@ + + + xarchon.desktop + CC0-1.0 + GPL-1.0+ + XArchon + Chess like board game + +

+ In XArchon the Light Side and Dark Side fight over control of a chess-like + board. Each side is composed of 18 fantastic creatures of myth and legend, + which are represented by images (or icons). While not identical, the + opposing sides are balanced in strength. +

+

+ When two creatures end up on the same square, the game goes into field + mode and a battle begins between the two creatures. During this battle + the creatures are controller by the players and it is not necessarily + the creature which entered the square last which wins. +

+
+ http://xarchon.seul.org/ + http://xarchon.seul.org/rules.html + + http://xarchon.seul.org/img/snap-1.gif + http://xarchon.seul.org/img/snap-2.gif + + jwrdegoede_at_fedoraproject.org +
diff --git a/xarchon.desktop b/xarchon.desktop new file mode 100644 index 0000000..7d4cb87 --- /dev/null +++ b/xarchon.desktop @@ -0,0 +1,9 @@ +[Desktop Entry] +Name=XArchon +Comment=Chess like board game +Exec=xarchon +Icon=xarchon +Terminal=false +Type=Application +Categories=Game;BoardGame; +Keywords=game;archon;chess; diff --git a/xarchon.spec b/xarchon.spec new file mode 100644 index 0000000..8f310f2 --- /dev/null +++ b/xarchon.spec @@ -0,0 +1,175 @@ +Name: xarchon +Version: 0.50 +Release: 31%{?dist} +Summary: Arcade board game +License: GPL+ +URL: http://xarchon.seul.org/ +Source0: http://xarchon.seul.org/%{name}-%{version}.tar.gz +Source1: %{name}.desktop +Source2: %{name}.appdata.xml +Patch0: %{name}-fonts.patch +Patch1: %{name}-destdir.patch +Patch2: http://ftp.debian.org/debian/pool/main/x/%{name}/%{name}_0.50-10.1.diff.gz +Patch3: xarchon-0.50-gcc43.patch +BuildRequires: gcc gcc-c++ gtk+-devel esound-devel libXpm-devel +BuildRequires: desktop-file-utils ImageMagick libappstream-glib +Requires: hicolor-icon-theme + +%description +XArchon is a chess with a twist board game. + + +%prep +%autosetup -p1 + + +%build +%configure +make %{?_smp_mflags} +convert -resize 64x64 data/icon.xpm %{name}.png + + +%install +%make_install INSTALL="install -p" + +# below is the desktop file and icon stuff. +mkdir -p $RPM_BUILD_ROOT%{_datadir}/applications +desktop-file-install --dir $RPM_BUILD_ROOT%{_datadir}/applications %{SOURCE1} +mkdir -p $RPM_BUILD_ROOT%{_datadir}/icons/hicolor/64x64/apps +install -p -m 644 %{name}.png \ + $RPM_BUILD_ROOT%{_datadir}/icons/hicolor/64x64/apps +mkdir -p $RPM_BUILD_ROOT%{_datadir}/appdata +install -p -m 644 %{SOURCE2} $RPM_BUILD_ROOT%{_datadir}/appdata +appstream-util validate-relax --nonet \ + $RPM_BUILD_ROOT%{_datadir}/appdata/%{name}.appdata.xml + + +%files +%doc AUTHORS ChangeLog README +%license COPYING +%{_bindir}/%{name} +%{_datadir}/%{name} +%{_datadir}/appdata/%{name}.appdata.xml +%{_datadir}/applications/%{name}.desktop +%{_datadir}/icons/hicolor/64x64/apps/%{name}.png +%{_mandir}/man6/%{name}.6.gz + + +%changelog +* Sat Feb 23 2019 Hans de Goede - 0.50-31 +- Fix FTBFS (rhbz#1676225) + +* Sun Feb 03 2019 Fedora Release Engineering - 0.50-30 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild + +* Sat Jul 14 2018 Fedora Release Engineering - 0.50-29 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild + +* Fri Feb 09 2018 Fedora Release Engineering - 0.50-28 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild + +* Thu Jan 18 2018 Igor Gnatenko - 0.50-27 +- Remove obsolete scriptlets + +* Sun Jan 14 2018 Hans de Goede - 0.50-26 +- Re-enable esound support, it is the only supported sound output (#1534185) + +* Thu Aug 03 2017 Fedora Release Engineering - 0.50-25 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Binutils_Mass_Rebuild + +* Thu Jul 27 2017 Fedora Release Engineering - 0.50-24 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild + +* Sat Feb 11 2017 Fedora Release Engineering - 0.50-23 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild + +* Tue Feb 23 2016 Hans de Goede - 0.50-22 +- Add appdata + +* Fri Feb 05 2016 Fedora Release Engineering - 0.50-21 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild + +* Sun Jul 12 2015 Peter Robinson 0.50-20 +- drop esound support + +* Fri Jun 19 2015 Fedora Release Engineering - 0.50-19 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild + +* Sun May 03 2015 Kalev Lember - 0.50-18 +- Rebuilt for GCC 5 C++11 ABI change + +* Mon Aug 18 2014 Fedora Release Engineering - 0.50-17 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_22_Mass_Rebuild + +* Sun Jun 08 2014 Fedora Release Engineering - 0.50-16 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild + +* Sun Aug 04 2013 Fedora Release Engineering - 0.50-15 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_20_Mass_Rebuild + +* Sun Feb 10 2013 Parag Nemade - 0.50-14 +- Remove vendor tag from desktop file as per https://fedorahosted.org/fesco/ticket/1077 +- Cleanup spec as per recently changed packaging guidelines + +* Sun Jul 22 2012 Fedora Release Engineering - 0.50-13 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild + +* Sat Jan 14 2012 Fedora Release Engineering - 0.50-12 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_17_Mass_Rebuild + +* Mon Feb 07 2011 Fedora Release Engineering - 0.50-11 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild + +* Mon Jul 27 2009 Fedora Release Engineering - 0.50-10 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_12_Mass_Rebuild + +* Mon May 18 2009 Hans de Goede 0.50-9 +- Update description for new trademark guidelines + +* Wed Feb 25 2009 Fedora Release Engineering - 0.50-8 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_11_Mass_Rebuild + +* Tue Feb 19 2008 Fedora Release Engineering - 0.50-7 +- Autorebuild for GCC 4.3 + +* Fri Jan 11 2008 Hans de Goede 0.50-6 +- Fix compilation with gcc 4.3 + +* Fri Aug 31 2007 Hans de Goede 0.50-5 +- Update Debian patch set to 0.50-10.1 + +* Wed Aug 22 2007 Hans de Goede 0.50-4 +- Rebuild for buildId +- Update license tag for new license tag guidelines compliance + +* Tue Aug 29 2006 Hans de Goede 0.50-3 +- FE6 Rebuild + +* Sat May 13 2006 Hans de Goede 0.50-2 +- consistent use of %%{name} (everywhere). +- Add BR: libXPM-devel +- Drop NEWS from %%doc as it contains no relevant information. + +* Thu May 11 2006 Hans de Goede 0.50-1 +- Pick xarchon up from Ville and submit it for Review as Ville doens't + have the time for this. + +* Tue Mar 14 2006 Ville Skyttä - 0.50-0.2 +- Fix build with gcc >= 3.4 (partially from Debian). +- Install icon to %%{_datadir}/icons/hicolor. + +* Sat May 28 2005 Ville Skyttä - 0.50-0.1 +- Rebuild for FC4. + +* Sun Sep 14 2003 Ville Skyttä - 0:0.50-0.fdr.3 +- Install data into %%{_datadir}/games/xarchon. +- Remove #---- section markers. + +* Sun Jun 1 2003 Ville Skyttä - 0:0.50-0.fdr.2 +- Spec cleanups. + +* Sat Mar 22 2003 Ville Skyttä - 0:0.50-0.fdr.1 +- Update to current Fedora guidelines. + +* Fri Feb 7 2003 Ville Skyttä - 0.50-1.fedora.1 +- First Fedora release.