Name: pychess Version: 0.10.1 Release: %mkrel 5 Summary: Chess game for GNOME Group: Games/Boards License: GPLv3 URL: http://pychess.org Source0: http://pychess.googlecode.com/files/%{name}-%{version}.tar.gz # Patch from Fedora # install data files to python-gtksourceview datadir Patch0: pychess-0.10rc1-gtksourceview2.patch BuildArch: noarch BuildRequires: python-devel BuildRequires: desktop-file-utils, gettext Requires: pygtk2.0-libglade Requires: gnome-python-desktop Requires: gnome-icon-theme Requires: gstreamer0.10-python Requires: python-gmpy # for editing .pgn files Requires: python-gtksourceview %description PyChess is a GTK+ chess game for Linux. It is designed to at the same time be easy to use, beautiful to look at, and provide advanced functions for advanced players. %prep %setup -q -n %{name}-%{version} %patch0 -p1 -b .gtksourceview2 # strip shebang from files not meant to be run cd lib/pychess sed -i '1d' Players/PyChess.py %build python setup.py build %install python setup.py install -O1 --skip-build --root %{buildroot} %find_lang %{name} %files -f %{name}.lang %doc README LICENSE AUTHORS TRANSLATORS %{python_sitelib}/* %{_bindir}/* %{_datadir}/pychess %{_datadir}/gtksourceview-2.0/language-specs/pgn.lang %{_datadir}/applications/* %{_datadir}/icons/hicolor/*/apps/* %{_datadir}/pixmaps/* %{_mandir}/man?/* %changelog * Sun Jan 13 2013 umeabot <umeabot> 0.10.1-5.mga3 + Revision: 378393 - Mass Rebuild - https://wiki.mageia.org/en/Feature:Mageia3MassRebuild * Sun Dec 02 2012 kamil <kamil> 0.10.1-4.mga3 + Revision: 324735 - rebuild for Mga3 Beta1 * Thu Jul 26 2012 kamil <kamil> 0.10.1-3.mga3 + Revision: 274424 - adapt .spec for Mageia, adjust BR, R - remove all Fedora unneeded .spec parts - imported package pychess