diff --git a/README.md b/README.md index 520a8fe..7ddfc99 100644 --- a/README.md +++ b/README.md @@ -1,2 +1,6 @@ # tuxmath +"Tux, of Math Command" ("TuxMath," for short) is an educational arcade game starring Tux, the Linux mascot! +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. + diff --git a/tuxmath.spec b/tuxmath.spec new file mode 100644 index 0000000..f9f8bd0 --- /dev/null +++ b/tuxmath.spec @@ -0,0 +1,83 @@ +Epoch: 1 +Name: tuxmath +Version: 2.0.1 +Release: 1mamba +Summary: TuxMath is an educational arcade game starring Tux, the Linux mascot! +Group: Graphical Desktop/Applications/Educational +Vendor: openmamba +Distribution: openmamba +Packager: Tiziana Ferro +URL: http://tux4kids.alioth.debian.org +Source: http://downloads.sourceforge.net/project/tuxmath/tuxmath-source/TuxMath%20%{version}%20-%20Source/tuxmath_w_fonts-%{version}.tar.gz +License: GPL +BuildRoot: %{_tmppath}/%{name}-%{version}-root +## AUTOBUILDREQ-BEGIN +BuildRequires: glibc-devel +BuildRequires: libSDL-devel +BuildRequires: libSDL_image-devel +BuildRequires: libSDL_mixer-devel +BuildRequires: libSDL_ttf-devel +## AUTOBUILDREQ-END +BuildRequires: libt4k_common-devel + +%description +"Tux, of Math Command" ("TuxMath," for short) is an educational arcade game starring Tux, the Linux mascot! +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. + +%prep +%setup -q -n %{name}_w_fonts-%{version} + +%build +%configure +%make DATA_PREFIX=/usr/share/tuxmath BIN_PREFIX=/usr/bin + +%install +[ "%{buildroot}" != / ] && rm -rf %{buildroot} +%makeinstall DESTDIR="%{buildroot}" + +# Create the system menu entry +mkdir -p %{buildroot}%{_datadir}/applications +cat > %{buildroot}%{_datadir}/applications/%{name}.desktop << EOF +[Desktop Entry] +Name=%{name} +GenericName=TuxMath is an educational arcade game starring Tux, the Linux mascot! +GenericName[it]=Gioco matematico con Tux. +Comment=TuxMath is an educational arcade game starring Tux, the Linux mascot! +Exec=tuxmath +Icon=%{_datadir}/tuxmath/images/icon.png +Terminal=false +Type=Application +Category=Education;Math; +X-KDE-StartupNotify=false +EOF + +%find_lang %{name} + +%clean +[ "%{buildroot}" != / ] && rm -rf %{buildroot} + +%files -f %{name}.lang +%defattr(-,root,root) +%{_bindir}/generate_lesson +%{_bindir}/tuxmath +%{_bindir}/tuxmathadmin +%{_bindir}/tuxmathtestclient +%{_bindir}/tuxmathserver +%{_datadir}/applications/tuxmath.desktop +%{_datadir}/doc/tuxmath/* +%dir %{_datadir}/%{name} +%{_datadir}/%{name}/* + +%changelog +* Sun Jul 24 2011 Automatic Build System 2.0.1-1mamba +- automatic version update by autodist + +* Thu May 07 2009 Silvan Calarco 1.7.2-1mamba +- update to 1.7.2 + +* Thu Oct 02 2008 Tiziana Ferro 1.6.3-1mamba +- update to 1.6.3 + +* Fri Aug 05 2005 Alessandro Ramazzina 2001.09.07-1qilnx +- package created by autospec