File speedcrunch.spec of Package speedcrunch

#
# spec file for package speedcrunch (Version 0.10.1)
#
# 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:           speedcrunch
BuildRequires:  cmake dos2unix freetype2-devel libpng-devel update-desktop-files
BuildRequires:  kde4-filesystem
%if %suse_version >1010
BuildRequires:  libqt4-devel
%else
BuildRequires:  qt-devel
%endif
Url:            http://speedcrunch.digitalfanatics.org
License:        GPL v2 or later
Group:          Productivity/Scientific/Math
Summary:        A calculator with history display
Version:        0.10.1
Release:        46
%define rversion %version
BuildRoot:      %{_tmppath}/%{name}-%{version}-build
Source0:        speedcrunch-%{rversion}.tar.bz2

%description
A calculator which shows results in a scrollable display



Authors:
--------
    Ariya Hidayat <ariya@kde.org>
    Johan Thelin <e8johan@gmail.com>

%prep
%setup -q -n speedcrunch-%{rversion}

%build
cd src
%cmake_kde4 -d build
%make_jobs

%install
cd src/build
%makeinstall
%suse_update_desktop_file -c %name "SpeedCrunch" "Scientific Calculator" speedcrunch speedcrunch "Utility Calculator"

%files
%defattr(-,root,root)
%doc  README ChangeLog COPYING
/usr/bin/speedcrunch
/usr/share/speedcrunch
/usr/share/pixmaps/speedcrunch.png
/usr/share/applications/speedcrunch.desktop

%changelog
* Mon Jun 16 2008 stbinner@suse.de
- update to 0.10.1:
  * several bugfixes, better internationalization
  * Better handling of math book translations with language codes
  that contain the country component and now correct behaviour
  defaulting to English when the system language (selected option)
  is not supported
* Thu Apr 03 2008 dmueller@suse.de
- update to 0.10:
  * see http://speedcrunch.googlecode.com/svn/tags/0.10/ChangeLog
* Wed Nov 21 2007 stbinner@suse.de
- update to 0.9:
  * greatly extended number range
  * factorials extended to real values
  * stay always-on-top (#106)
  * New functions: ARSINH, ARCOSH and ARTANH
  * Several other improvements and bug fixes
* Thu Jul 26 2007 stbinner@suse.de
- update to 0.8:
  * support for different bases: hex, octal and binary
  * postfix factorial operator (!)
  * support inserting important physics constants
  * history, functions, variables, constants in docked/floated windows
  * added engineering notation
  * added unmutable variable "phi" (golden number = 1.61803398874...)
  * option to hide from taskbar and minimize to system tray
  * support for right-to-left languages (not perfect, but very close)
  * added several new functions: MIN, MAX, SUM, PRODUCT, AVERAGE, ...
* Sun Apr 22 2007 stbinner@suse.de
- update to 0.7: Qt4 version, added keypad, bugfixes/new translations
* Fri May 12 2006 stbinner@suse.de
- Initial package
openSUSE Build Service is sponsored by