File tuxmath.spec of Package tuxmath
#
# spec file for package tuxmath
#
# This file and all modifications and additions to the pristine
# package are under the same license as the package itself.
#
# norootforbuild
Name: tuxmath
%define realname tuxmath_w_fonts
Summary: Tux Math - educational math game
Version: 1.6.3
Release: 1
License: GPL
Group: Productivity/Scientific/Math
Url: http://tux4kids.alioth.debian.org/
Vendor: openSUSE-Education
Obsoletes: tuxmath = 2001.09.07
BuildRequires: SDL_image-devel >= 1.2.2
BuildRequires: SDL_ttf
BuildRequires: SDL-devel
BuildRequires: SDL_mixer-devel
BuildRequires: SDL_Pango-devel
%if 0%{?suse_version}
BuildRequires: update-desktop-files
%endif
%if 0%{?suse_version} > 1020
BuildRequires: fdupes
%endif
Source0: %realname-%version.tar.bz2
Source1: %name.desktop
Source2: tuxmath-de.po
Patch1: tuxmath-1.6.2-german.patch
BuildRoot: %{_tmppath}/%{name}-%{version}-build
%description
An educational math tutorial game starring Tux, the Linux Penguin.
Based on the classic arcade game "Missile Command," Tux must defend his cities.
In this case, though, he must do it by solving math problems.
Authors:
========
Bill Kendrick
Sam 'Criswell' Hart
Larry Ewing
%prep
%setup -q -n %realname-%version
rm -rf $(find . -type d -name CVS)
rm -rf $(find . -type d -name .svn)
rm -rf $(find . -type d -name .xvpics)
install -m644 %{SOURCE2} po/de.po
%patch1 -p1
%build
%configure --enable-sdlpango
make %{?jobs:-j %jobs}
%install
install -d %buildroot/{%_bindir,%_datadir/pixmaps,%_datadir/applications,%_datadir/%name,%_defaultdocdir/%name}
%makeinstall
mv %buildroot/%_datadir/doc/%name/* %buildroot/%_defaultdocdir/%name/
rm -rf %buildroot/%_datadir/doc/%name
install -m 644 data/images/icons/icon.png %buildroot%_datadir/pixmaps/%name.png
%if 0%{?suse_version}
%suse_update_desktop_file -i tuxmath Education Math
%endif
# remove invalid locale directories
rm -rf %buildroot/%{_datadir}/locale/en@*
%if 0%{?suse_version} > 1020
%fdupes -s %buildroot
%endif
%find_lang %name
%clean
rm -rf %buildroot
%files -f %name.lang
%defattr(-,root,root)
%doc %_defaultdocdir/%name
%_bindir/*
%_datadir/pixmaps/*
%_datadir/applications/*
%_datadir/%name
%changelog