tuxtype/tuxtype.spec

117 lines
3.3 KiB
RPMSpec

Name: tuxtype
Version: 1.8.3
Release: 1mamba
Summary: Tux Typing is an educational typing tutor for children.
Group: Graphical Desktop/Applications/Educational
Vendor: openmamba
Distribution: openmamba
Packager: Silvan Calarco <silvan.calarco@mambasoft.it>
URL: http://tux4kids.alioth.debian.org/
Source: https://github.com/tux4kids/tuxtype.git/upstream%2f%{version}/tuxtype-%{version}.tar.bz2
Patch0: %{name}2-1.5.3-settings.patch
Patch1: %{name}2-1.5.3-it.patch
License: GPL
BuildRequires: ImageMagick
## 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 Typing is an educational typing tutor for children. It features several different types of gameplay, at a variety of difficulty levels.
%debug_package
%prep
%setup -q
#-D -T
#:<< _EOF
#%patch0 -p1
#%patch1 -p1
sed -i "\,chown root:games,d" Makefile.*
autoreconf -f -i
%build
#:<< _EOF
%configure
%make LDFLAGS="-lm"
%install
[ "%{buildroot}" != / ] && rm -rf %{buildroot}
%makeinstall
convert -geometry 48x48 tuxtype.ico %{name}-48.png
install -D -m 644 %{name}-48.png %{buildroot}%{_datadir}/pixmaps/%{name}.png
# Create the system menu entry
mkdir -p %{buildroot}%{_datadir}/applications
cat > %{buildroot}%{_datadir}/applications/%{name}.desktop << EOF
[Desktop Entry]
Name=Tuxtyping
GenericName=Educational typing tutor for children
GenericName[it]=Gioco sulle parole con Tux
Comment=educational typing tutor for children
Exec=tuxtype -w
Icon=%{_datadir}/pixmaps/tuxtype.png
Terminal=false
Type=Application
Categories=Game;KidsGame;
X-KDE-StartupNotify=false
EOF
%clean
[ "%{buildroot}" != / ] && rm -rf %{buildroot}
%files
%defattr(-,root,root)
%{_bindir}/*
%dir %{_datadir}/tuxtype
%{_datadir}/tuxtype/*
%{_datadir}/applications/tuxtype.desktop
%{_datadir}/pixmaps/tuxtype.png
%dir %{_docdir}/tuxtype
%{_docdir}/tuxtype/*
%doc AUTHORS COPYING
#%doc ChangeLog INSTALL README README.Win32 TODO
%changelog
* Sat Nov 26 2022 Silvan Calarco <silvan.calarco@mambasoft.it> 1.8.3-1mamba
- update to 1.8.3
* Tue Aug 27 2013 Automatic Build System <autodist@mambasoft.it> 1.5.3-7mamba
- automatic rebuild by autodist
* Fri Aug 29 2008 Tiziana Ferro <tiziana.ferro@email.it> 1.5.3-6mamba
- update system menu entry, vendor, distribution, packager
- added buildrequirements list
* Tue Nov 15 2005 Alessandro Ramazzina <alessandro.ramazzina@qilinux.it> 1.5.3-5qilnx
- modified desktop file
* Mon Nov 14 2005 Alessandro Ramazzina <alessandro.ramazzina@qilinux.it> 1.5.3-4qilnx
- added patch for italian translation
* Fri Oct 21 2005 Alessandro Ramazzina <alessandro.ramazzina@qilinux.it> 1.5.3-3qilnx
- added -w parameter to the exec file
* Tue Aug 30 2005 Massimo Pintore <massimo.pintore@qilinux.it> 1.5.3-2qilnx
- package created by autospec
- patched to starts with italian language
* Mon Jul 11 2005 Alessandro Ramazzina <alessandro.ramazzina@qilinux.it> 1.5.3-1qilnx
- package created by autospec