File gnome-calculator.spec of Package gnome-calculator

# spec file for package gnome-calculator
# Copyright (c) 2017 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

Name:           gnome-calculator
Version:        3.26.0
Release:        0
Summary:        A GNOME Calculator Application
License:        GPL-3.0+
Group:          Productivity/Scientific/Math
BuildRequires:  fdupes
BuildRequires:  mpc-devel
BuildRequires:  mpfr-devel
%if !0%{?is_opensuse}
BuildRequires:  translation-update-upstream
BuildRequires:  update-desktop-files
BuildRequires:  yelp-tools
BuildRequires:  pkgconfig(gio-2.0) >= 2.40
BuildRequires:  pkgconfig(gobject-2.0)
BuildRequires:  pkgconfig(gtk+-3.0) >= 3.19.3
BuildRequires:  pkgconfig(gtksourceview-3.0) >= 3.15.1
BuildRequires:  pkgconfig(libsoup-2.4) >= 2.42
BuildRequires:  pkgconfig(libxml-2.0)
Recommends:     %{name}-lang
BuildRoot:      %{_tmppath}/%{name}-%{version}-build

A GNOME calculator package based on calctool and MP library.

%package -n gnome-shell-search-provider-gnome-calculator
Summary:        GNOME Calculator -- Search Provider for GNOME Shell
Group:          Productivity/Scientific/Math
Supplements:    packageand(gnome-shell:%{name})
Requires:       %{name} = %{version}

%description -n gnome-shell-search-provider-gnome-calculator
This package contains a search provider to enable GNOME Shell to get
search results from GNOME Calculator.

%setup -q
%if !0%{?is_opensuse}

%configure \
make %{?_smp_mflags}

find %{buildroot}%{_libdir} -type f -name '*.la' -delete -print
%suse_update_desktop_file org.gnome.Calculator
%find_lang %{name} %{?no_lang_C}
%fdupes %{buildroot}

%doc %{_datadir}/help/C/%{name}
%dir %{_datadir}/appdata
%dir %{_libdir}/gnome-calculator/
%doc %{_mandir}/man?/*.*

%files -n gnome-shell-search-provider-gnome-calculator
%defattr (-, root, root)
%dir %{_datadir}/gnome-shell
%dir %{_datadir}/gnome-shell/search-providers

%files lang -f %{name}.lang

openSUSE Build Service is sponsored by