Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
isv:hp:education
TuxMathScrabble
TuxMathScrabble.spec
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File TuxMathScrabble.spec of Package TuxMathScrabble
# # spec file for package TuxMathScrabble # # This file and all modifications and additions to the pristine # package are under the same license as the package itself. # # norootforbuild Name: TuxMathScrabble Summary: Add, subtract and multiply Version: 0.5.7 Release: 1 Group: Amusements/Games License: GPL Vendor: openSUSE-Education Url: http://www.asymptopia.org/index.php?topic=TuxMathScrabble Source0: %{name}-%{version}.tar.bz2 Source1: TuxMathScrabble.desktop Source2: TuxMathScrabble.png Source3: TuxMathScrabble-rpmlintrc Patch1: TuxMathScrabble-0.5.7-use_localhome_for_config.patch Patch2: TuxMathScrabble-0.5.7-asb.gif.patch Requires: python-pygame Requires: python-wxGTK Requires: SDL BuildRequires: python %if 0%{?suse_version} BuildRequires: update-desktop-files %endif %if 0%{?suse_version} > 1020 BuildRequires: fdupes %endif BuildRoot: %{_tmppath}/%{name}-%{version}-build %{py_requires} %description TuxMathScrabble is a math version of the classic word game "Scrabble" (Trademark of Hasbro,Inc) which challenges kids to construct compound equations and to consider multiple abstract possibilities. There are four skill levels for practice, from basic addition with small numbers, through multiplication and division with larger numbers. The game can be played by 0, 1 or 2 human players. Player submissions are made by dragging tiles to the gameboard and pressing the "okay" button when ready to be validated. Invalid submissions are thrown-back to the user's tray. Several new features have recently been added, such as the ability to shuffle player tiles in-place, the programatic creation of tiles on-the-fly (as opposed to using images), configurable tile transparency, the ability to use a background image, and the option of configuring the "None" character for either/both players. Author: ------- Charles B. Cosse %prep %setup -q -n %{name} %patch1 -p0 %patch2 -p0 find -type d -name .svn -print0 | xargs -0 rm -rf {} \; %build %install mkdir -p %buildroot%{_bindir} mkdir -p %buildroot%{py_sitedir} mkdir -p %buildroot/var/games/%{name} # config cp -r Globals %buildroot/var/games/%{name}/ cp -r Font %buildroot/var/games/%{name}/ sed -e "s|#!/usr/bin/env python|#!%{_bindir}/python|" tuxmathscrabble > %buildroot%{_bindir}/%{name} chmod +x %buildroot%{_bindir}/%{name} cp -r %{name} %buildroot/%py_sitedir/ # below is the desktop file and icon stuff. install -D -m 644 %SOURCE1 %buildroot%{_datadir}/applications/%{name}.desktop install -D -m 644 %SOURCE2 %buildroot%{_datadir}/pixmaps/%{name}.png %suse_update_desktop_file -n %{name} Education Math # save discspace: symlink duplicates %if 0%{?suse_version} > 1020 %fdupes -s %buildroot %endif %clean rm -rf %buildroot %files %defattr(-, root, root, -) %doc README* VERSION CHANGES LICENSE VERSION %{_bindir}/%{name}* %py_sitedir/%{name} %{_datadir}/applications/%{name}.desktop %{_datadir}/pixmaps/%{name}.png %config(noreplace) /var/games/%{name}/Globals/globals/config /var/games/%{name} %changelog
Locations
Projects
Search
Status Monitor
Help
OpenBuildService.org
Documentation
API Documentation
Code of Conduct
Contact
Support
@OBShq
Terms
openSUSE Build Service is sponsored by
The Open Build Service is an
openSUSE project
.
Sign Up
Log In
Places
Places
All Projects
Status Monitor