File pgcalc.spec of Package pgcalc

#
# spec file for package pgcalc (Version 2.2)
#
# Copyright (c) 2007 SUSE LINUX Products GmbH, Nuernberg, Germany.
# This file and all modifications and additions to the pristine
# package are under the same license as the package itself.
#
# Please submit bugfixes or comments via http://bugs.opensuse.org/
#

# norootforbuild

Name:           pgcalc
BuildRequires:  kdelibs3-devel
License:        GNU General Public License (GPL), GNU Library General Public License v. 2.0 and 2.1 (LGPL)
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:        94
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
* Fri Jun 01 2007 - coolo@suse.de
- move kde_post_install
* Mon Jun 19 2006 - stbinner@suse.de
- update to version 2.2-6
  * bug in memory management fixed
  * fixed to compile with GCC 4.1.1
* Thu Jun 08 2006 - dmueller@suse.de
- fix crashes (#180109)
* Wed May 24 2006 - adrian@suse.de
- fix build for < 10.1
* Mon May 15 2006 - ltinkl@suse.cz
- initialize vars to prevent compiler warnings (#159989)
* Wed Feb 15 2006 - stbinner@suse.de
- add GenericName to .desktop files
* Wed Feb 08 2006 - ltinkl@suse.cz
- fix crash as described in #148289
* Wed Jan 25 2006 - mls@suse.de
- converted neededforbuild to BuildRequires
* Tue Oct 25 2005 - rguenther@suse.de
- fixes for gcc-4.1 compilation
* Fri Aug 19 2005 - coolo@suse.de
- fix file list for icons
* Thu Feb 17 2005 - adrian@suse.de
- update to version 2.2-4
- menu entry moved to xdg dir
* Wed Apr 21 2004 - adrian@suse.de
- initial package of version 2.1
openSUSE Build Service is sponsored by