Compare commits

..

No commits in common. "rawhide" and "f23" have entirely different histories.

8 changed files with 235 additions and 1 deletions

2
.gitignore vendored Normal file
View file

@ -0,0 +1,2 @@
xarchon_0.50-10.1.diff.gz
xarchon-0.50.tar.gz

View file

@ -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

2
sources Normal file
View file

@ -0,0 +1,2 @@
c883ed2fffc51545160732d63d70106a xarchon_0.50-10.1.diff.gz
491dea5b4e61ed13cd988d1c184a8ef0 xarchon-0.50.tar.gz

19
xarchon-0.50-gcc43.patch Normal file
View file

@ -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 <list>
+#include <stdlib.h>
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 <string.h>
#include "Xarchon_Problem.hpp"
#include "Xarchon_Interface.hpp"

26
xarchon-destdir.patch Normal file
View file

@ -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 \

22
xarchon-fonts.patch Normal file
View file

@ -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 */

9
xarchon.desktop Normal file
View file

@ -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;

155
xarchon.spec Normal file
View file

@ -0,0 +1,155 @@
Name: xarchon
Version: 0.50
Release: 20%{?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
BuildRequires: gtk+-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
make install DESTDIR=$RPM_BUILD_ROOT 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/32x32/apps
install -p -m 644 %{name}.png \
$RPM_BUILD_ROOT%{_datadir}/icons/hicolor/32x32/apps
%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
%doc AUTHORS ChangeLog COPYING README
%{_bindir}/%{name}
%{_datadir}/%{name}
%{_datadir}/applications/%{name}.desktop
%{_datadir}/icons/hicolor/32x32/apps/%{name}.png
%{_mandir}/man6/%{name}.6.gz
%changelog
* Sun Jul 12 2015 Peter Robinson <pbrobinson@fedoraproject.org> 0.50-20
- drop esound support
* Fri Jun 19 2015 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.50-19
- Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild
* Sun May 03 2015 Kalev Lember <kalevlember@gmail.com> - 0.50-18
- Rebuilt for GCC 5 C++11 ABI change
* Mon Aug 18 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.50-17
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_22_Mass_Rebuild
* Sun Jun 08 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.50-16
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild
* Sun Aug 04 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.50-15
- Rebuilt for https://fedoraproject.org/wiki/Fedora_20_Mass_Rebuild
* Sun Feb 10 2013 Parag Nemade <paragn AT fedoraproject DOT org> - 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 <rel-eng@lists.fedoraproject.org> - 0.50-13
- Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild
* Sat Jan 14 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.50-12
- Rebuilt for https://fedoraproject.org/wiki/Fedora_17_Mass_Rebuild
* Mon Feb 07 2011 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.50-11
- Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild
* Mon Jul 27 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.50-10
- Rebuilt for https://fedoraproject.org/wiki/Fedora_12_Mass_Rebuild
* Mon May 18 2009 Hans de Goede <hdegoede@redhat.com> 0.50-9
- Update description for new trademark guidelines
* Wed Feb 25 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.50-8
- Rebuilt for https://fedoraproject.org/wiki/Fedora_11_Mass_Rebuild
* Tue Feb 19 2008 Fedora Release Engineering <rel-eng@fedoraproject.org> - 0.50-7
- Autorebuild for GCC 4.3
* Fri Jan 11 2008 Hans de Goede <j.w.r.degoede@hhs.nl> 0.50-6
- Fix compilation with gcc 4.3
* Fri Aug 31 2007 Hans de Goede <j.w.r.degoede@hhs.nl> 0.50-5
- Update Debian patch set to 0.50-10.1
* Wed Aug 22 2007 Hans de Goede <j.w.r.degoede@hhs.nl> 0.50-4
- Rebuild for buildId
- Update license tag for new license tag guidelines compliance
* Tue Aug 29 2006 Hans de Goede <j.w.r.degoede@hhs.nl> 0.50-3
- FE6 Rebuild
* Sat May 13 2006 Hans de Goede <j.w.r.degoede@hhs.nl> 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 <j.w.r.degoede@hhs.nl> 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ä <ville.skytta at iki.fi> - 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ä <ville.skytta at iki.fi> - 0.50-0.1
- Rebuild for FC4.
* Sun Sep 14 2003 Ville Skyttä <ville.skytta at iki.fi> - 0:0.50-0.fdr.3
- Install data into %%{_datadir}/games/xarchon.
- Remove #---- section markers.
* Sun Jun 1 2003 Ville Skyttä <ville.skytta at iki.fi> - 0:0.50-0.fdr.2
- Spec cleanups.
* Sat Mar 22 2003 Ville Skyttä <ville.skytta at iki.fi> - 0:0.50-0.fdr.1
- Update to current Fedora guidelines.
* Fri Feb 7 2003 Ville Skyttä <ville.skytta at iki.fi> - 0.50-1.fedora.1
- First Fedora release.