File kpl.spec of Package kpl

#
# spec file for package kpl (Version 3.3)
#
# Copyright (c) 2010 SUSE LINUX Products GmbH, Nuernberg, Germany.
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
# upon. The license for this file, and modifications and additions to the
# file, is the same license as for the pristine package itself (unless the
# license for the pristine package is not an Open Source License, in which
# case the license is the MIT License). An "Open Source License" is a
# license that conforms to the Open Source Definition (Version 1.9)
# published by the Open Source Initiative.

# Please submit bugfixes or comments via http://bugs.opensuse.org/
#

# norootforbuild


Name:           kpl
BuildRequires:  kdelibs3-devel
License:        GPL-2.0-or-later
Group:          Productivity/Graphics/Visualization/Graph
Summary:        A Program for Graphically Presenting Data Sets and Functions
Version:        3.3
Release:        254
Source0:        kpl-%version.tar.bz2
Url:            http://frsl06.physik.uni-freiburg.de/privat/stille/kpl
Patch0:         %name.diff
Patch1:         fix-desktop-file.diff
Patch2:         gcc-45.diff
BuildRoot:      %{_tmppath}/%{name}-%{version}-build

%description
Kpl is a program for presenting two-dimensional graphical data sets and
functions.

All settings necessary for a complete description of the presentation
can be saved in plot files. These files as well as data files may be
chosen via command line parameters, using the File menu, or by drag and
drop.

Automatic scaling and normalization allow the easy graphical
presentation of data.

Presentation settings  may be changed using the Edit menu. Additional
data sets and functions can be included, which can be displayed in the
same and different data windows.



Authors:
--------
    Werner Stille   <stille@uni-freiburg.de>

%prep
%setup 
%patch0
%patch1
%patch2
. /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
%if %suse_version < 1010
%suse_update_desktop_file kpl Math
%else
%suse_update_desktop_file -G "Plotting Tool" kpl Graphics 2DGraphics
%endif
%find_lang %name
rm -rf $RPM_BUILD_ROOT/opt/kde3/include

%files -f %name.lang
%defattr(-,root,root)
%doc TODO INSTALL ChangeLog COPYING AUTHORS README 
%defattr(-,root,root)
/opt/kde3/bin/*
/opt/kde3/share/appl*/*/*.desktop
/opt/kde3/share/apps/kpl
/opt/kde3/share/icons/*
/opt/kde3/share/mimelnk/application/x-plo.desktop

%changelog
openSUSE Build Service is sponsored by