2013-03-13 20:55:02 +01:00
|
|
|
#
|
|
|
|
# spec file for package gnome-calculator
|
|
|
|
#
|
2017-02-15 12:06:53 +01:00
|
|
|
# Copyright (c) 2017 SUSE LINUX GmbH, Nuernberg, Germany.
|
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.
|
|
|
|
|
|
|
|
# Please submit bugfixes or comments via http://bugs.opensuse.org/
|
|
|
|
#
|
|
|
|
|
|
|
|
|
|
|
|
Name: gnome-calculator
|
2017-08-31 09:43:06 +02:00
|
|
|
Version: 3.25.91
|
2013-03-13 20:55:02 +01:00
|
|
|
Release: 0
|
|
|
|
Summary: A GNOME Calculator Application
|
2015-03-19 15:33:04 +01:00
|
|
|
License: GPL-3.0+
|
2013-03-13 20:55:02 +01:00
|
|
|
Group: Productivity/Scientific/Math
|
|
|
|
Url: http://www.gnome.org
|
2017-08-31 09:43:06 +02:00
|
|
|
Source: https://download.gnome.org/sources/gnome-calculator/3.25/%{name}-%{version}.tar.xz
|
2013-03-13 20:55:02 +01:00
|
|
|
BuildRequires: fdupes
|
2017-02-22 21:42:13 +01:00
|
|
|
BuildRequires: mpc-devel
|
2015-03-19 15:33:04 +01:00
|
|
|
BuildRequires: mpfr-devel
|
2016-09-08 23:22:28 +02:00
|
|
|
%if !0%{?is_opensuse}
|
2013-03-13 20:55:02 +01:00
|
|
|
BuildRequires: translation-update-upstream
|
2016-09-08 23:22:28 +02:00
|
|
|
%endif
|
2013-03-13 20:55:02 +01:00
|
|
|
BuildRequires: update-desktop-files
|
|
|
|
BuildRequires: yelp-tools
|
2014-08-23 13:54:17 +02:00
|
|
|
BuildRequires: pkgconfig(gio-2.0) >= 2.40
|
2016-02-19 15:47:50 +01:00
|
|
|
BuildRequires: pkgconfig(gobject-2.0)
|
2017-02-22 21:42:13 +01:00
|
|
|
BuildRequires: pkgconfig(gtk+-3.0) >= 3.19.3
|
2015-03-21 10:20:21 +01:00
|
|
|
BuildRequires: pkgconfig(gtksourceview-3.0) >= 3.15.1
|
2016-02-19 15:47:50 +01:00
|
|
|
BuildRequires: pkgconfig(libsoup-2.4) >= 2.42
|
2013-03-13 20:55:02 +01:00
|
|
|
BuildRequires: pkgconfig(libxml-2.0)
|
|
|
|
Recommends: %{name}-lang
|
|
|
|
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
|
|
|
%glib2_gsettings_schema_requires
|
|
|
|
|
|
|
|
%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
|
|
|
|
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.
|
|
|
|
|
2013-03-13 20:55:02 +01:00
|
|
|
%lang_package
|
|
|
|
%prep
|
|
|
|
%setup -q
|
2016-09-08 23:22:28 +02:00
|
|
|
%if !0%{?is_opensuse}
|
2013-03-13 20:55:02 +01:00
|
|
|
translation-update-upstream
|
2016-09-08 23:22:28 +02:00
|
|
|
%endif
|
2013-03-13 20:55:02 +01:00
|
|
|
|
|
|
|
%build
|
2015-09-04 13:31:02 +02:00
|
|
|
%configure \
|
|
|
|
--disable-static
|
2013-03-13 20:55:02 +01:00
|
|
|
make %{?_smp_mflags}
|
|
|
|
|
|
|
|
%install
|
|
|
|
%make_install
|
2015-09-04 13:31:02 +02:00
|
|
|
find %{buildroot}%{_libdir} -type f -name '*.la' -delete -print
|
2017-02-22 21:42:13 +01:00
|
|
|
%suse_update_desktop_file org.gnome.Calculator
|
2013-03-13 20:55:02 +01:00
|
|
|
%find_lang %{name} %{?no_lang_C}
|
|
|
|
%fdupes %{buildroot}
|
|
|
|
|
|
|
|
%files
|
|
|
|
%defattr(-,root,root)
|
|
|
|
%doc COPYING NEWS
|
|
|
|
%doc %{_datadir}/help/C/%{name}
|
|
|
|
%{_bindir}/*
|
2013-09-19 21:26:39 +02:00
|
|
|
%dir %{_datadir}/appdata
|
2017-02-22 21:42:13 +01:00
|
|
|
%{_datadir}/appdata/org.gnome.Calculator.appdata.xml
|
2013-03-13 20:55:02 +01:00
|
|
|
%{_datadir}/applications/*.desktop
|
|
|
|
%{_datadir}/glib-2.0/schemas/org.gnome.calculator.gschema.xml
|
2015-09-04 13:31:02 +02:00
|
|
|
%dir %{_libdir}/gnome-calculator/
|
|
|
|
%{_libdir}/gnome-calculator/libcalculator.so
|
2013-03-13 20:55:02 +01:00
|
|
|
%doc %{_mandir}/man?/*.*
|
|
|
|
|
2014-08-23 13:54:17 +02:00
|
|
|
%files -n gnome-shell-search-provider-gnome-calculator
|
|
|
|
%defattr (-, root, root)
|
|
|
|
%{_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
|
|
|
|
|
2013-03-13 20:55:02 +01:00
|
|
|
%files lang -f %{name}.lang
|
|
|
|
|
|
|
|
%changelog
|