LogoopenSUSE Build Service > Projects
Sign Up | Log In

View File galculator.spec of Package galculator (Project X11:lxde)

# spec file for package galculator
# Copyright (c) 2018 SUSE LINUX 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/

Name:           galculator
Version:        2.1.4
Release:        0
Summary:        A GTK 3 based calculator
License:        GPL-2.0+
Group:          System/GUI/GNOME
Url:            http://galculator.mnim.org/
Source0:        http://galculator.mnim.org/downloads/%{name}-%{version}.tar.bz2
BuildRequires:  flex
BuildRequires:  intltool
BuildRequires:  libtool
BuildRequires:  pkgconfig
BuildRequires:  update-desktop-files
BuildRequires:  pkgconfig(gtk+-3.0)
Recommends:     %{name}-lang
Provides:       mate-calc = %{version}
Obsoletes:      mate-calc < %{version}

galculator is a GTK 3 based calculator with ordinary notation/reverse
polish notation (RPN), a formula entry mode, different number bases
(DEC, HEX, OCT, BIN) and different units of angular measure (DEG, RAD, GRAD).
It supports quad-precision floating point and 112-bit binary arithmetic.


%setup -q

make %{?_smp_mflags}

%if 0%{?suse_version} == 1310
rm  %{buildroot}/%{_datadir}/appdata/galculator.appdata.xml
%suse_update_desktop_file -r %{name} GTK Utility Calculator
%find_lang %{name}



%if 0%{?suse_version} > 1310
%dir %{_datadir}/appdata

%files lang -f %{name}.lang