File gnome-dictionary.spec of Package gnome-dictionary

#
# spec file for package gnome-dictionary
#
# Copyright (c) 2018 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-dictionary
Version:        3.26.1+20180313.ac6d4c0
Release:        0
Summary:        Utility to look up words in dictionary sources
License:        GPL-2.0-or-later
Group:          System/GUI/GNOME
URL:            https://wiki.gnome.org/Apps/Dictionary
#Source0:       https://download.gnome.org/sources/gnome-dictionary/3.26/%%{name}-%%{version}.tar.xz
Source:         %{name}-%{version}.tar.xz
BuildRequires:  fdupes
BuildRequires:  gobject-introspection-devel
BuildRequires:  gtk-doc
BuildRequires:  meson
BuildRequires:  pkgconfig
BuildRequires:  translation-update-upstream
BuildRequires:  update-desktop-files
BuildRequires:  yelp-tools
BuildRequires:  pkgconfig(glib-2.0) >= 2.39.0
BuildRequires:  pkgconfig(gtk+-3.0) >= 3.16
Recommends:     %{name}-lang
Conflicts:      gnome-utils < 3.3.1
# libgdict is no longer a public library, and thus no external tool can make use of the data
# Merge the package back into the main package, obsoleting libgdict-data
Obsoletes:      libgdict-data < %{version}

%description
The Dictionary application enables you to search words and terms on a
dictionary source.

%lang_package

%prep
%autosetup
translation-update-upstream po gnome-dictionary

%build
%meson \
        -D use_ipv6=true \
        -D build_man=true \
        %{nil}
%meson_build

%install
%meson_install
%fdupes %{buildroot}%{_datadir}/help
%find_lang %{name} %{?no_lang_C}

%files
%license COPYING
%doc NEWS
%doc %{_datadir}/help/C/%{name}/
%{_mandir}/man1/%{name}.1%{?ext_man}
%{_bindir}/%{name}
%dir %{_datadir}/appdata
%{_datadir}/appdata/org.gnome.Dictionary.appdata.xml
%{_datadir}/applications/org.gnome.Dictionary.desktop
%{_datadir}/dbus-1/services/org.gnome.Dictionary.service
%{_datadir}/gdict-1.0
%{_datadir}/glib-2.0/schemas/org.gnome.dictionary.gschema.xml

%files lang -f %{name}.lang

%changelog
openSUSE Build Service is sponsored by