tuxmath/tuxmath.spec

100 lines
3.0 KiB
RPMSpec
Raw Normal View History

Epoch: 1
Name: tuxmath
Version: 2.0.3
Release: 1mamba
Summary: TuxMath is an educational arcade game starring Tux, the Linux mascot!
Group: Graphical Desktop/Applications/Educational
Vendor: openmamba
Distribution: openmamba
Packager: Silvan Calarco <silvan.calarco@mambasoft.it>
URL: https://github.com/tux4kids/tuxmath
Source: https://github.com/tux4kids/tuxmath.git/debian%2f%{version}-1/tuxmath-%{version}.tar.bz2
Patch0: tuxmath-2.0.3-src-menu_lan.c-Remove-unused-duplicate-lan_player_in.patch
Patch1: tuxmath-2.0.3-rename-blits-to-tmblits.patch
License: GPL
## AUTOBUILDREQ-BEGIN
BuildRequires: glibc-devel
BuildRequires: libSDL-devel
BuildRequires: libSDL_Pango-devel
BuildRequires: libSDL_image-devel
BuildRequires: libSDL_mixer-devel
BuildRequires: libSDL_net-devel
BuildRequires: libcairo-devel
BuildRequires: libgdk-pixbuf-devel
BuildRequires: libglib-devel
BuildRequires: libharfbuzz-devel
BuildRequires: libpango-devel
BuildRequires: librsvg-devel
BuildRequires: libt4kcommon-devel
BuildRequires: libxml2-devel
## AUTOBUILDREQ-END
%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.
%debug_package
%prep
%setup -q
%patch0 -p1 -b .src-menu_lan.c-Remove-unused-duplicate-lan_player_in
%patch1 -p1 -b .rename-blits-to-tmblits
%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
* Sat Nov 26 2022 Silvan Calarco <silvan.calarco@mambasoft.it> 2.0.3-1mamba
- update to 2.0.3
* 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