File klogoturtle.spec of Package klogoturtle

#
# spec file for package klogoturtle
#
# This file and all modifications and additions to the pristine
# package are under the same license as the package itself.
#

# norootforbuild

Name:           klogoturtle
Group:          Development/Tools/IDE
Summary:        An interpreter of the LOGO language for KDE desktops
Url:            http://klogoturtle.sourceforge.net/
Version:        0.6
Release:        1
License:        GPL
Vendor:         openSUSE-Education
Source0:        %{name}-%{version}.tar.bz2
Patch1:         klogoturtle-0.6-buildroot.patch
Patch2:         klogoturtle-0.6-desktopfile.patch
BuildRequires:  kdelibs3-devel
%if 0%{?suse_version}
BuildRequires:  update-desktop-files
%endif
%if 0%{?suse_version} > 1020
BuildRequires:  fdupes
%endif
BuildRoot:      %{_tmppath}/%{name}-%{version}-build
%define         kdeprefix /opt/kde3


%description
The KLogo-Turtle is a useful tool for teaching geometry and the basic
principles of the programming of computer. Children can study the mathematics
of geometry in an interactive and constructive way.

KLogo-Turtle has syntax a little different than the LOGO language developed at
MIT. Look at the documents link. Comments, doubts and suggestions, please use
the e-mail link.

KLogo-Turtle supports commands in the languages english, portuguese, german,
italian and french.


Authors:
--------
	Carlos Eduardo Sarmento
	Jens Schulz
	Robert P. Nix
	Andrea Centomo
	Mehmet Arý
	Kevin Donnelly
	Anne-Marie Mahfouf
	Pino Toscano
	Danilo Rodrigues César 


%prep
%setup -q 
%patch1 -p1
%patch2 -p1
. /etc/opt/kde3/common_options
update_admin 

%build
. /etc/opt/kde3/common_options
%configure $configkde

%__make %{?jobs:-j%jobs}

%install
. /etc/opt/kde3/common_options
%__make $INSTALL_TARGET DESTDIR=%{buildroot}
install -D -m644 klogoturtle/turtle.png %{buildroot}/%{_datadir}/pixmaps/%{name}.png
%if 0%{?suse_version}
%suse_update_desktop_file %{buildroot}%{kdeprefix}/share/applnk/Edutainment/Miscellaneous/%{name}.desktop Education ComputerScience
%suse_update_desktop_file %{buildroot}%{kdeprefix}/share/applnk/Applications/%{name}.desktop Education ComputerScience
%endif
if [ -f %{buildroot}%{kdeprefix}/share/applications/kde/klogoturtle.desktop ]; then
	rm %{buildroot}%{kdeprefix}/share/applications/kde/klogoturtle.desktop
fi
%if 0%{?suse_version} > 1020
%fdupes -s %buildroot
%endif

%find_lang %name

%clean
%{__rm} -rf %{buildroot}

%files -f %{name}.lang 
%defattr(-,root,root,0755)
%doc AUTHORS COPYING README TODO
%{kdeprefix}/bin/
%{_datadir}/pixmaps/*.png
%{kdeprefix}/share/applnk/
%{kdeprefix}/share/apps/
%{kdeprefix}/share/icons/
%{kdeprefix}/share/apps/%name/klogoturtleui.rc

%changelog
openSUSE Build Service is sponsored by