tuxtype/tuxtype.spec

103 lines
3.1 KiB
RPMSpec

Name: tuxtype
Version: 1.5.3
Release: 7mamba
Summary: Tux Typing is an educational typing tutor for children.
Group: Graphical Desktop/Applications/Educational
Vendor: openmamba
Distribution: openmamba
Packager: Tiziana Ferro <tiziana.ferro@email.it>
URL: http://tuxtype.sourceforge.net/
Source: http://downloads.sourceforge.net/sourceforge/tuxtype/%{name}2-%{version}.tar.bz2
Patch0: %{name}2-1.5.3-settings.patch
Patch1: %{name}2-1.5.3-it.patch
License: GPL
BuildRoot: %{_tmppath}/%{name}-%{version}-root
BuildRequires: ImageMagick
## AUTOBUILDREQ-BEGIN
BuildRequires: glibc-devel
BuildRequires: libSDL-devel
BuildRequires: libSDL_image-devel
BuildRequires: libSDL_mixer-devel
BuildRequires: libSDL_ttf-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.
%prep
%setup -q -n %{name}2-%{version}
%patch0 -p1
%patch1 -p1
%build
%configure
%make LDFLAGS="-lm"
%install
[ "%{buildroot}" != / ] && rm -rf %{buildroot}
%makeinstall
mkdir -p %{buildroot}/usr/share/doc/tuxtype2
mv %{buildroot}/usr/doc/tuxtype2/* %{buildroot}/usr/share/doc/tuxtype2
convert -geometry 48x48 tuxtype2.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=tuxtype2 -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}/*
%{_datadir}/doc/tuxtype2/*
%dir %{_datadir}/tuxtype2
%dir %{_datadir}/tuxtype2/data/
%{_datadir}/tuxtype2/data/*
%{_datadir}/tuxtype2/tuxtype2.ico
%{_datadir}/tuxtype2/autorun.inf
%{_datadir}/applications/tuxtype.desktop
%{_datadir}/pixmaps/tuxtype.png
%doc AUTHORS COPYING
#%doc ChangeLog INSTALL README README.Win32 TODO
%changelog
* 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