File plutimikation.spec of Package plutimikation

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

# norootforbuild

Name:         plutimikation
Summary:      A math learning game for children
Version:      0.2
Release:      0
License:      GPL
Group:        System/GUI/KDE
Url:          http://www.lst.de/~cs/plutimikation/
Vendor:       openSUSE-Education
BuildRequires: kdelibs3-devel kdegames3 flex
%if 0%{?suse_version}
BuildRequires: update-desktop-files
%endif
%if 0%{?suse_version} >= 1030
BuildRequires: kdegames3-devel
%endif
Source0:      %name-%{version}.tar.gz
Patch1:       plutimikation-0.1-desktop.patch
BuildRoot:    %{_tmppath}/%{name}-%{version}-build

%description
Mathematics made easy!
This is a math learning game for children. It asks questions, checks the
answers of the child and gives feedback and statistics about the results.



Authors:
--------
    Cornelius Schumacher <schumacher@kde.org>

%prep
%setup
%patch1 -p0
. "/etc/opt/kde3/common_options"
update_admin

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

%install
. /etc/opt/kde3/common_options
make DESTDIR=$RPM_BUILD_ROOT $INSTALL_TARGET
install -Dm644 ./src/lo32-app-plutimikation.png %buildroot%{_datadir}/pixmaps/%{name}.png
%if 0%{?suse_version}
%suse_update_desktop_file -n %{name} Education Math
%endif

%clean
rm -rf $RPM_BUILD_ROOT

%files
%defattr(-,root,root)
%{_datadir}/pixmaps/%{name}.png
/opt/kde3/bin/*
/opt/kde3/share/*

%changelog