gnome-calculator/gnome-calculator.spec

111 lines
3.5 KiB
RPMSpec
Raw Normal View History

#
# spec file for package gnome-calculator
#
# Copyright (c) 2015 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: gnome-calculator
Version: 3.18.1
Release: 0
Summary: A GNOME Calculator Application
License: GPL-3.0+
Group: Productivity/Scientific/Math
Url: http://www.gnome.org
Source: http://download.gnome.org/sources/gnome-calculator/3.18/%{name}-%{version}.tar.xz
BuildRequires: fdupes
BuildRequires: intltool >= 0.50
BuildRequires: mpfr-devel
BuildRequires: translation-update-upstream
BuildRequires: update-desktop-files
BuildRequires: yelp-tools
BuildRequires: pkgconfig(gio-2.0) >= 2.40
BuildRequires: pkgconfig(gtk+-3.0) >= 3.11.6
BuildRequires: pkgconfig(gtksourceview-3.0) >= 3.15.1
BuildRequires: pkgconfig(libxml-2.0)
Recommends: %{name}-lang
# gcactool was renamed to gnome-calculator. Last known version was 6.6.2
Obsoletes: gcalctool <= 6.6.2
# gcalctool-lang package should be obsoleted, obviously by the -lang package, but that's not possible.
# So for an easy upgrade path, we obsolete it in the main package.
Obsoletes: gcalctool-lang <= 6.6.2
BuildRoot: %{_tmppath}/%{name}-%{version}-build
%glib2_gsettings_schema_requires
%description
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.
%lang_package
%prep
%setup -q
translation-update-upstream
%build
%configure \
--disable-static
make %{?_smp_mflags}
%install
%make_install
find %{buildroot}%{_libdir} -type f -name '*.la' -delete -print
%suse_update_desktop_file %{name} Calculator
%find_lang %{name} %{?no_lang_C}
%fdupes %{buildroot}
%clean
rm -rf %{buildroot}
%post
%glib2_gsettings_schema_post
%desktop_database_post
%postun
%glib2_gsettings_schema_postun
%desktop_database_postun
%files
%defattr(-,root,root)
%doc COPYING NEWS
%doc %{_datadir}/help/C/%{name}
%{_bindir}/*
%dir %{_datadir}/appdata
%{_datadir}/appdata/%{name}.appdata.xml
%{_datadir}/applications/*.desktop
%{_datadir}/glib-2.0/schemas/org.gnome.calculator.gschema.xml
%dir %{_libdir}/gnome-calculator/
%{_libdir}/gnome-calculator/libcalculator.so
%doc %{_mandir}/man?/*.*
%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
%{_datadir}/gnome-shell/search-providers/gnome-calculator-search-provider.ini
%{_libexecdir}/gnome-calculator-search-provider
%files lang -f %{name}.lang
%changelog