Name: pathological Version: 1.1.3 Release: 4mamba Summary: An enriched clone of the game "Logical" by Rainbow Arts Group: Graphical Desktop/Applications/Games Vendor: openmamba Distribution: openmamba Packager: Silvan Calarco URL: http://pathological.sourceforge.net Source: http://downloads.sourceforge.net/sourceforge/pathological/%{name}-%{version}.tar.gz Patch0: %{name}-1.1.3-encoding.patch Patch1: %{name}-1.1.3-pygame-1.8.1.patch License: GPL BuildRequires: python-pygame-devel BuildRequires: netpbm >= 10.20 Requires: python-pygame >= 1.6 BuildRoot: %{_tmppath}/%{name}-%{version}-root %description Pathological is an enriched clone of the game "Logical" by Rainbow Arts. To solve a level, fill each wheel with four marbles of matching color. Various board elements such as teleporters, switches, filters, etc., make the game interesting and challenging. New levels can be created using your favorite text editor. %prep %setup -q %patch0 -p0 %patch1 -p1 %build sed -i "\ s|/usr/games|/usr/bin|; s|/usr/X11R6/include/X11/pixmaps|/usr/share/pixmaps|" Makefile %make %install [ "%{buildroot}" != / ] && rm -rf %{buildroot} %makeinstall # Create the system menu entry install -d %{buildroot}%{_datadir}/applications cat > %{buildroot}%{_datadir}/applications/%{name}.desktop << EOF [Desktop Entry] Encoding=UTF-8 Name=Pathological GenericName=A clone of the game "Logical" GenericName[it]=Un clone del gioco "Logical" Comment=An enriched clone of the game "Logical" by Rainbow Arts Comment[it]=Un clone del gioco "Logical" di Rainbow Arts Exec=pathological Icon=pathological.xpm Terminal=false Type=Application Categories=GNOME;Game;StrategyGame; X-KDE-StartupNotify=false EOF %clean [ "%{buildroot}" != / ] && rm -rf %{buildroot} %files %defattr(-,root,root) %{_bindir}/pathological %dir %{_prefix}/lib/pathological %{_prefix}/lib/pathological/bin/write-highscores %{_datadir}/applications/%{name}.desktop %{_datadir}/doc/pathological/* %dir %{_datadir}/games/pathological %{_datadir}/games/pathological/* %{_datadir}/pixmaps/pathological.xpm %{_mandir}/man6/pathological.* /var/games/pathological_scores %doc LICENSE #README TODO changelog %changelog * Thu Nov 19 2009 Silvan Calarco 1.1.3-4mamba - added encoding patch to work with current python - added pygame 1.8.1 patch * Thu Aug 28 2008 Silvan Calarco 1.1.3-3mamba - specfile updated * Wed Nov 30 2005 Davide Madrisan 1.1.3-2qilnx - several fixes on specfile - added italian translation to desktop file * Fri Dec 17 2004 Massimo Pintore 1.1.3-1qilnx - package created by autospec