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..f6f721c --- /dev/null +++ b/xarchon-destdir.patch @@ -0,0 +1,26 @@ +--- data/Makefile.am~ 1999-10-16 01:33:45.000000000 +0300 ++++ 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 \ +--- data/Makefile.in~ 1999-12-03 19:12:06.000000000 +0200 ++++ 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.desktop b/xarchon.desktop new file mode 100644 index 0000000..4bad503 --- /dev/null +++ b/xarchon.desktop @@ -0,0 +1,9 @@ +[Desktop Entry] +Encoding=UTF-8 +Name=XArchon +Comment=Chess like board game +Exec=xarchon +Icon=xarchon +Terminal=false +Type=Application +Categories=Game;BoardGame; diff --git a/xarchon.spec b/xarchon.spec new file mode 100644 index 0000000..330e928 --- /dev/null +++ b/xarchon.spec @@ -0,0 +1,137 @@ +Name: xarchon +Version: 0.50 +Release: 12%{?dist} +Summary: Arcade board game +Group: Amusements/Games +License: GPL+ +URL: http://xarchon.seul.org/ +Source0: http://xarchon.seul.org/%{name}-%{version}.tar.gz +Source1: %{name}.desktop +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 +BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) +BuildRequires: gtk+-devel esound-devel libXpm-devel +BuildRequires: desktop-file-utils ImageMagick +Requires: hicolor-icon-theme + +%description +XArchon is a chess with a twist board game. + + +%prep +%setup -q +%patch0 -p1 +%patch1 -p0 +%patch2 -p1 +%patch3 -p1 + + +%build +%configure +make %{?_smp_mflags} +convert data/icon.xpm %{name}.png + + +%install +rm -rf $RPM_BUILD_ROOT +make install DESTDIR=$RPM_BUILD_ROOT + +# below is the desktop file and icon stuff. +mkdir -p $RPM_BUILD_ROOT%{_datadir}/applications +desktop-file-install --vendor fedora \ + --dir $RPM_BUILD_ROOT%{_datadir}/applications \ + %{SOURCE1} +mkdir -p $RPM_BUILD_ROOT%{_datadir}/icons/hicolor/32x32/apps +install -p -m 644 %{name}.png \ + $RPM_BUILD_ROOT%{_datadir}/icons/hicolor/32x32/apps + + +%clean +rm -rf $RPM_BUILD_ROOT + + +%post +touch --no-create %{_datadir}/icons/hicolor || : +if [ -x %{_bindir}/gtk-update-icon-cache ]; then + %{_bindir}/gtk-update-icon-cache --quiet %{_datadir}/icons/hicolor || : +fi + +%postun +touch --no-create %{_datadir}/icons/hicolor || : +if [ -x %{_bindir}/gtk-update-icon-cache ]; then + %{_bindir}/gtk-update-icon-cache --quiet %{_datadir}/icons/hicolor || : +fi + + +%files +%defattr(-,root,root,-) +%doc AUTHORS ChangeLog COPYING README +%{_bindir}/%{name} +%{_datadir}/%{name} +%{_datadir}/applications/fedora-%{name}.desktop +%{_datadir}/icons/hicolor/32x32/apps/%{name}.png +%{_mandir}/man6/%{name}.6.gz + + +%changelog +* 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.