2013-03-13 20:55:02 +01:00
|
|
|
#
|
|
|
|
# spec file for package gnome-calculator
|
|
|
|
#
|
2022-03-21 09:36:23 +01:00
|
|
|
# Copyright (c) 2022 SUSE LLC
|
2013-03-13 20:55:02 +01:00
|
|
|
#
|
|
|
|
# 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.
|
|
|
|
|
2018-09-26 18:44:28 +02:00
|
|
|
# Please submit bugfixes or comments via https://bugs.opensuse.org/
|
2013-03-13 20:55:02 +01:00
|
|
|
#
|
|
|
|
|
|
|
|
|
2020-04-18 00:44:45 +02:00
|
|
|
%define sover 2-1_0_1
|
|
|
|
%define gcisover 1-0_0_0
|
2019-10-04 17:38:25 +02:00
|
|
|
|
2013-03-13 20:55:02 +01:00
|
|
|
Name: gnome-calculator
|
2022-09-19 18:18:36 +02:00
|
|
|
Version: 43.0.1
|
2013-03-13 20:55:02 +01:00
|
|
|
Release: 0
|
|
|
|
Summary: A GNOME Calculator Application
|
2018-03-09 11:03:21 +01:00
|
|
|
License: GPL-3.0-or-later
|
2013-03-13 20:55:02 +01:00
|
|
|
Group: Productivity/Scientific/Math
|
2018-03-09 11:03:21 +01:00
|
|
|
URL: https://wiki.gnome.org/Apps/Calculator
|
2022-09-13 09:37:50 +02:00
|
|
|
Source0: https://download.gnome.org/sources/gnome-calculator/43/%{name}-%{version}.tar.xz
|
2018-09-24 09:19:39 +02:00
|
|
|
|
2013-03-13 20:55:02 +01:00
|
|
|
BuildRequires: fdupes
|
2021-03-24 17:33:21 +01:00
|
|
|
BuildRequires: meson >= 0.52.0
|
2017-02-22 21:42:13 +01:00
|
|
|
BuildRequires: mpc-devel
|
2015-03-19 15:33:04 +01:00
|
|
|
BuildRequires: mpfr-devel
|
2018-03-09 11:03:21 +01:00
|
|
|
BuildRequires: pkgconfig
|
|
|
|
BuildRequires: vala
|
2013-03-13 20:55:02 +01:00
|
|
|
BuildRequires: yelp-tools
|
2019-10-04 17:38:25 +02:00
|
|
|
BuildRequires: pkgconfig(gee-0.8)
|
2014-08-23 13:54:17 +02:00
|
|
|
BuildRequires: pkgconfig(gio-2.0) >= 2.40
|
2018-03-09 11:03:21 +01:00
|
|
|
BuildRequires: pkgconfig(glib-2.0) >= 2.40
|
|
|
|
BuildRequires: pkgconfig(gmodule-export-2.0)
|
|
|
|
BuildRequires: pkgconfig(gobject-2.0) >= 2.40
|
2022-03-21 09:36:23 +01:00
|
|
|
BuildRequires: pkgconfig(gtk4) >= 4.4.1
|
|
|
|
BuildRequires: pkgconfig(gtksourceview-5) >= 5.2.0
|
|
|
|
BuildRequires: pkgconfig(libadwaita-1) >= 1.0.0
|
2022-09-13 09:37:50 +02:00
|
|
|
BuildRequires: pkgconfig(libsoup-3.0)
|
2013-03-13 20:55:02 +01:00
|
|
|
BuildRequires: pkgconfig(libxml-2.0)
|
|
|
|
|
|
|
|
%description
|
|
|
|
A GNOME calculator package based on calctool and MP library.
|
|
|
|
|
2014-08-23 13:54:17 +02:00
|
|
|
%package -n gnome-shell-search-provider-gnome-calculator
|
|
|
|
Summary: GNOME Calculator -- Search Provider for GNOME Shell
|
|
|
|
Group: Productivity/Scientific/Math
|
|
|
|
Requires: %{name} = %{version}
|
2022-03-21 09:36:23 +01:00
|
|
|
Supplements: (gnome-shell and %{name})
|
2014-08-23 13:54:17 +02:00
|
|
|
|
|
|
|
%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.
|
|
|
|
|
2019-10-04 17:38:25 +02:00
|
|
|
%package -n libgcalc-%{sover}
|
|
|
|
Summary: Shared library for %{name}
|
|
|
|
Group: System/Libraries
|
|
|
|
|
|
|
|
%description -n libgcalc-%{sover}
|
2020-04-18 00:44:45 +02:00
|
|
|
GNOME Calculator Library
|
|
|
|
|
|
|
|
%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}.
|
2019-10-04 17:38:25 +02:00
|
|
|
|
|
|
|
%package devel
|
|
|
|
Summary: Development files for %{name}
|
|
|
|
Group: Development/Libraries/GNOME
|
|
|
|
Requires: %{name} = %{version}
|
|
|
|
Requires: libgcalc-%{sover} = %{version}
|
2020-04-18 00:44:45 +02:00
|
|
|
Requires: libgci-%{gcisover} = %{version}
|
2019-10-04 17:38:25 +02:00
|
|
|
|
|
|
|
%description devel
|
|
|
|
The %{name}-devel package contains libraries and header files for
|
|
|
|
developing applications that use %{name}.
|
|
|
|
|
2013-03-13 20:55:02 +01:00
|
|
|
%lang_package
|
2018-03-09 11:03:21 +01:00
|
|
|
|
2013-03-13 20:55:02 +01:00
|
|
|
%prep
|
2019-04-18 15:18:10 +02:00
|
|
|
%autosetup -p1
|
2013-03-13 20:55:02 +01:00
|
|
|
|
|
|
|
%build
|
2018-03-09 11:03:21 +01:00
|
|
|
%meson
|
|
|
|
%meson_build
|
2013-03-13 20:55:02 +01:00
|
|
|
|
|
|
|
%install
|
2018-03-09 11:03:21 +01:00
|
|
|
%meson_install
|
2013-03-13 20:55:02 +01:00
|
|
|
%find_lang %{name} %{?no_lang_C}
|
2018-03-09 11:03:21 +01:00
|
|
|
%fdupes %{buildroot}%{_datadir}
|
2013-03-13 20:55:02 +01:00
|
|
|
|
2021-03-24 17:33:21 +01:00
|
|
|
#check
|
|
|
|
#meson_test
|
2019-04-18 15:18:10 +02:00
|
|
|
|
2019-10-04 17:38:25 +02:00
|
|
|
%post -n libgcalc-%{sover} -p /sbin/ldconfig
|
|
|
|
%postun -n libgcalc-%{sover} -p /sbin/ldconfig
|
2020-04-18 00:44:45 +02:00
|
|
|
%post -n libgci-%{gcisover} -p /sbin/ldconfig
|
|
|
|
%postun -n libgci-%{gcisover} -p /sbin/ldconfig
|
2019-10-04 17:38:25 +02:00
|
|
|
|
2013-03-13 20:55:02 +01:00
|
|
|
%files
|
2018-03-09 11:03:21 +01:00
|
|
|
%license COPYING
|
|
|
|
%doc NEWS
|
2013-03-13 20:55:02 +01:00
|
|
|
%doc %{_datadir}/help/C/%{name}
|
2018-03-09 11:03:21 +01:00
|
|
|
%{_bindir}/gnome-calculator
|
|
|
|
%{_bindir}/gcalccmd
|
|
|
|
%{_datadir}/metainfo/org.gnome.Calculator.appdata.xml
|
|
|
|
%{_datadir}/applications/org.gnome.Calculator.desktop
|
2013-03-13 20:55:02 +01:00
|
|
|
%{_datadir}/glib-2.0/schemas/org.gnome.calculator.gschema.xml
|
2019-04-18 15:18:10 +02:00
|
|
|
%{_datadir}/icons/hicolor/*/apps/org.gnome.Calculator*.svg
|
2018-03-09 11:03:21 +01:00
|
|
|
%{_mandir}/man1/gnome-calculator.1%{?ext_man}
|
|
|
|
%{_mandir}/man1/gcalccmd.1%{?ext_man}
|
2013-03-13 20:55:02 +01:00
|
|
|
|
2014-08-23 13:54:17 +02:00
|
|
|
%files -n gnome-shell-search-provider-gnome-calculator
|
|
|
|
%{_datadir}/dbus-1/services/org.gnome.Calculator.SearchProvider.service
|
|
|
|
%dir %{_datadir}/gnome-shell
|
|
|
|
%dir %{_datadir}/gnome-shell/search-providers
|
2017-02-22 21:42:13 +01:00
|
|
|
%{_datadir}/gnome-shell/search-providers/org.gnome.Calculator-search-provider.ini
|
2014-08-23 13:54:17 +02:00
|
|
|
%{_libexecdir}/gnome-calculator-search-provider
|
|
|
|
|
2019-10-04 17:38:25 +02:00
|
|
|
%files -n libgcalc-%{sover}
|
2020-04-18 00:44:45 +02:00
|
|
|
%{_libdir}/libgcalc-2.so.*
|
|
|
|
|
|
|
|
%files -n libgci-%{gcisover}
|
|
|
|
%{_libdir}/libgci-1.so.*
|
2019-10-04 17:38:25 +02:00
|
|
|
|
|
|
|
%files devel
|
2020-04-18 00:44:45 +02:00
|
|
|
%{_includedir}/gcalc-2/
|
|
|
|
%{_includedir}/gci-2/
|
|
|
|
%{_libdir}/libgcalc-2.so
|
|
|
|
%{_libdir}/pkgconfig/gcalc-2.pc
|
|
|
|
%{_libdir}/pkgconfig/gci-1.pc
|
|
|
|
%{_libdir}/libgci-1.so
|
2019-10-04 17:38:25 +02:00
|
|
|
%dir %{_datadir}/gir-1.0
|
2020-04-18 00:44:45 +02:00
|
|
|
%{_datadir}/gir-1.0/GCalc-2.gir
|
|
|
|
%{_datadir}/gir-1.0/GCi-1.gir
|
2019-10-04 17:38:25 +02:00
|
|
|
%dir %{_datadir}/vala
|
|
|
|
%dir %{_datadir}/vala/vapi
|
2020-04-18 00:44:45 +02:00
|
|
|
%{_datadir}/vala/vapi/gcalc-2.*
|
|
|
|
%{_datadir}/vala/vapi/gci-1.*
|
2019-10-04 17:38:25 +02:00
|
|
|
|
2013-03-13 20:55:02 +01:00
|
|
|
%files lang -f %{name}.lang
|
|
|
|
|
|
|
|
%changelog
|