File pgcalc.spec of Package pgcalc

#
# spec file for package pgcalc (Version 2.2)
#
# Copyright (c) 2009 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:           pgcalc
BuildRequires:  kdelibs3-devel
License:        GPL v2 or later ; LGPL v2.1 or later
Group:          Productivity/Scientific/Math
Summary:        Scientific Calculator, working in reversed polish notation mode
BuildRoot:      %{_tmppath}/%{name}-%{version}-build
Url:            http://www.pgcalc.net
Version:        2.2
Release:        264
Source:         %{name}2-%{version}-6.tar.gz
Patch:          pgcalc.diff
Patch2:         pgcalc-lcdcrash.diff
Patch3:         pgcalc-initvars.diff
Patch4:         fix-desktop-icon.diff

%description
PG Calculator works in RPN mode. It recognizes real and complex numbers
and allows vectors manipulations. There are up to 120 recognized units
of measure with possibility to make ease conversions between consistent
units.



Authors:
--------
    Piotr Gridniew <gridniew@pgcalc.net>

%prep
%setup -q -n pgcalc2-%version-6
%patch
%patch2
%patch3
%patch4
. /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 DESTDIR=$RPM_BUILD_ROOT install
%if %suse_version < 1010
%define string  pgcalc
%else
%define string -G "Scientific Calculator" pgcalc
%endif
%suse_update_desktop_file %string Utility Calculator
kde_post_install

%files
%defattr(-,root,root)
%doc AUTHORS COPYING ChangeLog
/opt/kde3/bin/*
/opt/kde3/share/appl*/*/*.desktop
/opt/kde3/share/apps/pgcalc2
%doc /opt/kde3/share/doc/HTML/en/pgcalc
%doc /opt/kde3/share/doc/pgcalc2
/opt/kde3/share/icons/*

%changelog
openSUSE Build Service is sponsored by