84 lines
2.6 KiB
RPMSpec
84 lines
2.6 KiB
RPMSpec
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 <tiziana.ferro@email.it>
|
|
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 <autodist@mambasoft.it> 2.0.1-1mamba
|
|
- automatic version update by autodist
|
|
|
|
* Thu May 07 2009 Silvan Calarco <silvan.calarco@mambasoft.it> 1.7.2-1mamba
|
|
- update to 1.7.2
|
|
|
|
* Thu Oct 02 2008 Tiziana Ferro <tiziana.ferro@email.it> 1.6.3-1mamba
|
|
- update to 1.6.3
|
|
|
|
* Fri Aug 05 2005 Alessandro Ramazzina <alessandro.ramazzina@qilinux.it> 2001.09.07-1qilnx
|
|
- package created by autospec
|