File gnome-calculator.spec of Package gnome-calculator

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

%define sover 2-1_0_1
%define gcisover 1-0_0_0

Name:           gnome-calculator
Version:        45.0.2
Release:        0
Summary:        A GNOME Calculator Application
License:        GPL-3.0-or-later
Group:          Productivity/Scientific/Math

BuildRequires:  fdupes
BuildRequires:  meson >= 0.52.0
BuildRequires:  mpc-devel
BuildRequires:  mpfr-devel
BuildRequires:  pkgconfig
BuildRequires:  vala
BuildRequires:  yelp-tools
BuildRequires:  pkgconfig(gee-0.8)
BuildRequires:  pkgconfig(gio-2.0) >= 2.40
BuildRequires:  pkgconfig(glib-2.0) >= 2.40
BuildRequires:  pkgconfig(gmodule-export-2.0)
BuildRequires:  pkgconfig(gobject-2.0) >= 2.40
BuildRequires:  pkgconfig(gtk4) >= 4.4.1
BuildRequires:  pkgconfig(gtksourceview-5) >= 5.2.0
BuildRequires:  pkgconfig(libadwaita-1) >= 1.4.alpha
BuildRequires:  pkgconfig(libsoup-3.0)
BuildRequires:  pkgconfig(libxml-2.0)

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
Requires:       %{name} = %{version}
Supplements:    (gnome-shell and %{name})

%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.

%package -n libgcalc-%{sover}
Summary:        Shared library for %{name}
Group:          System/Libraries

%description -n libgcalc-%{sover}
This package contains a shared library for %{name}.

%package -n libgci-%{gcisover}
Summary:        GNOME Calculator Library GTK Interface
Group:          System/Libraries

%description -n libgci-%{gcisover}
This package contains a shared library for %{name}.

%package devel
Summary:        Development files for %{name}
Group:          Development/Libraries/GNOME
Requires:       %{name} = %{version}
Requires:       libgcalc-%{sover} = %{version}
Requires:       libgci-%{gcisover} = %{version}

%description devel
The %{name}-devel package contains libraries and header files for
developing applications that use %{name}.


%autosetup -p1


%find_lang %{name} %{?no_lang_C}
%fdupes %{buildroot}%{_datadir}


%post -n libgcalc-%{sover} -p /sbin/ldconfig
%postun -n libgcalc-%{sover} -p /sbin/ldconfig
%post -n libgci-%{gcisover} -p /sbin/ldconfig
%postun -n libgci-%{gcisover} -p /sbin/ldconfig

%license COPYING
%doc NEWS
%doc %{_datadir}/help/C/%{name}

%files -n gnome-shell-search-provider-gnome-calculator
%dir %{_datadir}/gnome-shell
%dir %{_datadir}/gnome-shell/search-providers

%files -n libgcalc-%{sover}

%files -n libgci-%{gcisover}

%files devel
%dir %{_datadir}/gir-1.0
%dir %{_datadir}/vala
%dir %{_datadir}/vala/vapi

%files lang -f %{name}.lang

openSUSE Build Service is sponsored by