Name: karelj Version: 1.1 Release: 2mamba Summary: A robot simulator. Group: Graphical Desktop/Applications/Educational Vendor: openmamba Distribution: openmamba Packager: Tiziana Ferro URL: http://karel.sourceforge.net/ Source: http://heanet.dl.sourceforge.net/sourceforge/karel/%{name}-%{version}.tar.gz License: GPL BuildRoot: %{_tmppath}/%{name}-%{version}-root %description "Karel The Robot" is a robot simulator that affords a gentle introduction to computer programming. Users write Karel programs and feed them to the simulator to watch them execute. Karel's programming language is similar to Pascal. %prep %setup -q %build JAVA_HOME=/opt/java/jdk ant %install [ "%{buildroot}" != / ] && rm -rf %{buildroot} mkdir -p %{buildroot}/usr/bin mkdir -p %{buildroot}/usr/lib/ mkdir -p %{buildroot}/usr/share/%{name}-%{version}/examples mkdir -p %{buildroot}/usr/share/%{name}-%{version}/doc install -m 755 bin/* %{buildroot}/usr/bin/ cp -a examples/* %{buildroot}/usr/share/%{name}-%{version}/examples cp -a doc/* %{buildroot}/usr/share/%{name}-%{version}/doc cp lib/* %{buildroot}/usr/lib/ # Create the system menu entry mkdir -p %{buildroot}%{_datadir}/applications cat > %{buildroot}%{_datadir}/applications/%{name}.desktop << EOF [Desktop Entry] Name=%{name} GenericName=A robot simulator. GenericName[it]=simulatore di robot Comment=A robot simulator. Exec=karel Icon=kgamma Terminal=false Type=Application Categories=Game;Simulation; X-KDE-StartupNotify=false EOF %clean [ "%{buildroot}" != / ] && rm -rf %{buildroot} %files %defattr(-,root,root) %doc ChangeLog LICENSE THANKS %{_bindir}/* %dir %{_datadir}/karelj-1.1 %{_datadir}/karelj-1.1/* %{_datadir}/applications/karelj.desktop %{_libdir}/* %changelog * Tue Sep 02 2008 Tiziana Ferro 1.1-2mamba - update JAVA_HOME path in specfile - update system menu entry - update mantainer * Mon Aug 01 2005 Alessandro Ramazzina 1.1-1qilnx - package created by autospec