Name: asforza4 Version: 2.10 Release: 5%{?dist} Summary: 4-in-a-row in a dockapp Summary(de): Vier gewinnt in einem Dockapp License: GPLv2+ URL: http://asforza4.sourceforge.net/ Source0: http://downloads.sourceforge.net/%{name}/%{name}-%{version}.tar.gz # This patch avoids a possible segfault due to an "out of bounds" warning Patch0: %{name}-segfault.patch # We move the data files to the usual datadir and disable the plugins Patch1: %{name}-datadir.patch BuildRequires: guile-devel BuildRequires: fpc BuildRequires: libXext-devel BuildRequires: libXpm-devel Requires: xorg-x11-fonts-misc %description asforza4 is a dockable applet for the desktop manager Afterstep, WindowMaker, Blackbox and any other which can handle dockapps. Forza 4 is the italian name of the 4-in-a-row (or 4-in-line) game. %description -l de asforza4 ist ein andockbares Applet für die Arbeitsumgebungen Afterstep, WindowMaker, Blackbox und jede andere Umgebung, die mit Dockapps umgehen kann. Forza 4 ist der italienische Name des Spiels »Vier gewinnt«. %prep %setup -q %patch0 -p0 %patch1 -p0 %if %{_arch} == x86_64 sed -i 's/ppc386/ppcx64/' asforza4/Makefile %endif %build cd ./%{name} make OPT='%{optflags} -fPIC' %{?_smp_mflags} \ ASLIBDIR='%{_libdir}/%{name}' \ ASDATADIR='%{_datadir}/%{name}' %install cd ./%{name} make install INSTDIR=$RPM_BUILD_ROOT/%{_prefix} \ ASLIBDIR=$RPM_BUILD_ROOT/%{_libdir}/%{name}\ ASDATADIR=$RPM_BUILD_ROOT%{_datadir}/%{name} %files %doc ChangeLog COPYING README %{_bindir}/%{name} %{_bindir}/forza44as %{_datadir}/%{name}/ %exclude %{_libdir}/%{name}/ %exclude %{_datadir}/%{name}/asf4_guile_ext %changelog * Sat Oct 20 2012 Mario Blättermann - 2.10-5 - Removed plugins globally due to bundled stuff and incompleteness * Sun Jul 29 2012 Mario Blättermann 2.10-4 - Renamed patches to have consistent extensions - New patch for datadir renaming * Sun Jul 17 2011 Mario Blättermann 2.10-3 - Added architecture specific sed command - Added runtime dependency - Changed folder locations in Makefile - Tweaked file list * Sun Jul 03 2011 Mario Blättermann 2.10-2 - Dropped INSTALL from %%doc - Removed conditional patch because it is not allowed - Patched Makefile to get it work on x86_64 * Fri Jul 01 2011 Mario Blättermann 2.10-1 - initial version