Name: PySolFC Version: 2.0 Release: %mkrel 11 Summary: A Python solitaire game collection Source0: http://downloads.sourceforge.net/pysolfc/%{name}-%{version}.tar.bz2 License: GPLv3+ Group: Games/Cards URL: http://pysolfc.sourceforge.net/ BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-buildroot BuildArch: noarch BuildRequires: python-devel BuildRequires: python-setuptools Requires: tkinter Requires: python-imaging Requires: pygame Suggests: PySolFC-cardsets Suggests: freecell-solver Provides: pysol = %{version}-%{release} Obsoletes: pysol %description PySolFC is a collection of more than 1000 solitaire card games. Its features include modern look and feel (uses Tile widget set), multiple card-sets and tableau backgrounds, sound, unlimited undo, player statistics, a hint system, demo games, a solitaire wizard, support for user written plug-ins, an integrated HTML help browser, and lots of documentation. %prep %setup -q %build %{__python} setup.py build %install rm -rf %{buildroot} PYTHONDONTWRITEBYTECODE= %{__python} setup.py install --skip-build --root=%{buildroot} # Hack to put /usr/bin/pysol.py as /usr/games pysol mkdir -p %{buildroot}/%{_gamesbindir} %define pysol_bin_path %{_gamesbindir}/pysol %define pysol_orig_path %{_bindir}/pysol.py mv %{buildroot}/%{pysol_orig_path} %{buildroot}/%{pysol_bin_path} sed -i -e 's#Exec=.*#Exec=%{_gamesbindir}/pysol#' %{buildroot}%_datadir/applications/pysol.desktop %find_lang pysol %clean rm -rf %{buildroot} %files -f pysol.lang %defattr(-,root,root) %doc COPYING README %{_gamesbindir}/* %{py_puresitedir}/* %{_datadir}/%name %{_datadir}/applications/pysol.desktop %{_iconsdir}/*.png %{_datadir}/pixmaps/* %changelog * Fri Jan 11 2013 umeabot <umeabot> 2.0-11.mga3 + Revision: 345076 - Mass Rebuild - https://wiki.mageia.org/en/Feature:Mageia3MassRebuild * Sun Mar 13 2011 philippem <philippem> 2.0-10.mga1 + Revision: 70738 - imported package PySolFC