Name: tuxmathscrabble Version: 2.7 Release: 3qilnx Summary: A Math Scrab*le Game For Kids Group: Graphical Desktop/Applications/Educational Vendor: QiLinux Distribution: QiLinux Packager: Alessandro Ramazzina URL: http://www.asymptopia.org Source: http://ovh.dl.sourceforge.net/sourceforge/tuxmathscrabble/tuxmathscrabble-2.7.tgz Source1: tux.png Source2: %{name}_credits_button_it.gif Source3: %{name}_help_button_it.gif Source4: %{name}_ready_button_it.gif Source5: %{name}_skip_button_it.gif Patch0: fix-python-path.patch.bz2 License: LGPL BuildRequires: python-pygame-devel >= 1.6.2 Requires: python >= %pyver Requires: python-pygame >= 1.6.2 BuildRoot: %{_tmppath}/%{name}-%{version}-root %description A math-version of the popular board game for children 4-10. The game features drag-and-drop tiles for the user, while Tux moves his own. The game challenges young people to construct compound equations and consider multiple abstract possibilities. %prep %setup -q -n TuxMathScrabble %patch0 -p0 %build #python setup.py %install #[ "%{buildroot}" != / ] && rm -rf %{buildroot} mkdir -p %{buildroot}%{_libdir}/python2.4/site-packages/asymptopia cp -R asymptopia/* %{buildroot}%{_libdir}/python2.4/site-packages/asymptopia rm -f %{buildroot}%{_libdir}/python/tuxmathscrabble.py mkdir -p %{buildroot}%{_bindir} cp tuxmathscrabble.py %{buildroot}%{_bindir} install -D -m 644 %{SOURCE2} %{buildroot}%{_libdir}/python2.4/site-packages/asymptopia/themes/default/button_images/credits_button.gif install -D -m 644 %{SOURCE3} %{buildroot}%{_libdir}/python2.4/site-packages/asymptopia/themes/default/button_images/help_button.gif install -D -m 644 %{SOURCE4} %{buildroot}%{_libdir}/python2.4/site-packages/asymptopia/themes/default/button_images/ready_button.gif install -D -m 644 %{SOURCE5} %{buildroot}%{_libdir}/python2.4/site-packages/asymptopia/themes/default/button_images/skip_button.gif #Icon mkdir -p %{buildroot}%{_datadir}/pixmaps install -D -m 644 %{SOURCE1} %{buildroot}%{_datadir}/pixmaps/tux.png # Create the system menu entry mkdir -p %{buildroot}%{_datadir}/applnk/Edutainment/Mathematics cat > %{buildroot}%{_datadir}/applnk/Edutainment/Mathematics/%{name}.desktop << EOF [Desktop Entry] Name=%{name} GenericName=A Math Scrabble Game For Kids GenericName[it]=scarabeo matematico con Tux Comment=A Math Scrabble Game For Kids Exec=tuxmathscrabble.py Icon=%{_datadir}/pixmaps/tux.png Terminal=0 Type=Application X-KDE-StartupNotify=false EOF %clean [ "%{buildroot}" != / ] && rm -rf %{buildroot} %files %defattr(-,root,root) %{_bindir}/* %dir %{_libdir}/python2.4/site-packages/asymptopia %{_libdir}/python2.4/site-packages/asymptopia/* %{_datadir}/pixmaps/tux.png %{_datadir}/applnk/Edutainment/Mathematics/%{name}.desktop %changelog * Thu Nov 24 2005 Alessandro Ramazzina 2.7-3qilnx - added python-pygame-devel as build require and python-pygame as require * Mon Nov 14 2005 Alessandro Ramazzina 2.7-2qilnx - modified some images and tranlated it into italian language * Fri Sep 09 2005 Alessandro Ramazzina 2.7-1qilnx - package created by autospec