File speedcrunch.spec of Package speedcrunch

#
# spec file for package speedcrunch
#
# Copyright (c) 2011 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 fdupes freetype2-devel libpng-devel update-desktop-files
BuildRequires:  kde4-filesystem
BuildRequires:  libqt4-devel
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:        56
%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"
%fdupes %{buildroot}%{_datadir}/speedcrunch/books/*/

%files
%defattr(-,root,root)
%doc  README ChangeLog COPYING
%{_bindir}/speedcrunch
%{_datadir}/speedcrunch
%{_datadir}/pixmaps/speedcrunch.png
%{_datadir}/applications/speedcrunch.desktop

%changelog
openSUSE Build Service is sponsored by